mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-17 02:57:35 -05:00
Resolves #234 - hard codes alias name truncation when name exceeds 33 characters in length.
This commit is contained in:
@@ -168,7 +168,18 @@ public class AudioChannelPanel extends JPanel
|
|||||||
if(alias != null)
|
if(alias != null)
|
||||||
{
|
{
|
||||||
iconLabel.setIcon(mIconManager.getIcon(alias.getIconName(), 18));
|
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
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user