Resolves #234 - hard codes alias name truncation when name exceeds 33 characters in length.

This commit is contained in:
Denny
2017-03-30 20:03:48 -04:00
parent 5fe8ccd478
commit 25f71a76c4

View File

@@ -168,7 +168,18 @@ public class AudioChannelPanel extends JPanel
if(alias != null)
{
iconLabel.setIcon(mIconManager.getIcon(alias.getIconName(), 18));
textLabel.setText(alias.getName());
String aliasName = alias.getName();
//Truncate label if length exceeds 33 characters - hack!
if(aliasName.length() > 33)
{
textLabel.setText(aliasName.substring(0,30) + "...");
}
else
{
textLabel.setText(aliasName);
}
}
else
{