mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-17 02:57:35 -05:00
Gui formatting/cleanup
This commit is contained in:
@@ -64,18 +64,18 @@ public class AliasEditor extends JPanel implements ActionListener
|
|||||||
|
|
||||||
private void initGUI()
|
private void initGUI()
|
||||||
{
|
{
|
||||||
setLayout( new MigLayout() );
|
setLayout( new MigLayout( "", "[right][grow,fill]", "[][][][][][grow][]" ) );
|
||||||
|
|
||||||
setBorder( BorderFactory.createTitledBorder( "Alias" ) );
|
setBorder( BorderFactory.createTitledBorder( "Alias" ) );
|
||||||
|
|
||||||
mLabelName = new JLabel( "Name:" );
|
mLabelName = new JLabel( "Name:" );
|
||||||
add( mLabelName, "align right" );
|
add( mLabelName );
|
||||||
|
|
||||||
mTextAlias = new JTextField( mAliasNode.getAlias().getName() );
|
mTextAlias = new JTextField( mAliasNode.getAlias().getName() );
|
||||||
add( mTextAlias, "grow, wrap" );
|
add( mTextAlias, "wrap" );
|
||||||
|
|
||||||
mLabelMapColor = new JLabel( "Map Color:" );
|
mLabelMapColor = new JLabel( "Map Color:" );
|
||||||
add( mLabelMapColor, "align right" );
|
add( mLabelMapColor );
|
||||||
|
|
||||||
mButtonColor = new JButton( "Map Color" );
|
mButtonColor = new JButton( "Map Color" );
|
||||||
mButtonColor.setBackground( mAliasNode.getAlias().getMapColor() );
|
mButtonColor.setBackground( mAliasNode.getAlias().getMapColor() );
|
||||||
@@ -96,7 +96,7 @@ public class AliasEditor extends JPanel implements ActionListener
|
|||||||
} );
|
} );
|
||||||
add( mButtonColor, "wrap" );
|
add( mButtonColor, "wrap" );
|
||||||
|
|
||||||
add( new JLabel( "Map Icon:" ), "align right" );
|
add( new JLabel( "Icon:" ) );
|
||||||
|
|
||||||
mComboMapIcon = new JComboBox<MapIcon>(
|
mComboMapIcon = new JComboBox<MapIcon>(
|
||||||
mResourceManager.getSettingsManager().getMapIcons() );
|
mResourceManager.getSettingsManager().getMapIcons() );
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ public class GroupEditor extends JPanel implements ActionListener
|
|||||||
|
|
||||||
private void initGUI()
|
private void initGUI()
|
||||||
{
|
{
|
||||||
setLayout( new MigLayout() );
|
setLayout( new MigLayout( "", "[right][grow,fill]", "[][][grow]" ) );
|
||||||
|
|
||||||
setBorder( BorderFactory.createTitledBorder( "Group" ) );
|
setBorder( BorderFactory.createTitledBorder( "Group" ) );
|
||||||
|
|
||||||
@@ -56,7 +56,7 @@ public class GroupEditor extends JPanel implements ActionListener
|
|||||||
add( mLabelName, "align right" );
|
add( mLabelName, "align right" );
|
||||||
|
|
||||||
mTextGroup = new JTextField( mGroupNode.getGroup().getName() );
|
mTextGroup = new JTextField( mGroupNode.getGroup().getName() );
|
||||||
add( mTextGroup, "grow, wrap" );
|
add( mTextGroup, "wrap" );
|
||||||
|
|
||||||
JButton btnSave = new JButton( "Save" );
|
JButton btnSave = new JButton( "Save" );
|
||||||
btnSave.addActionListener( GroupEditor.this );
|
btnSave.addActionListener( GroupEditor.this );
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ public class ListEditor extends JPanel implements ActionListener
|
|||||||
|
|
||||||
private void initGUI()
|
private void initGUI()
|
||||||
{
|
{
|
||||||
setLayout( new MigLayout() );
|
setLayout( new MigLayout( "", "[right][grow,fill]", "[][][grow]" ) );
|
||||||
|
|
||||||
setBorder( BorderFactory.createTitledBorder( "List" ) );
|
setBorder( BorderFactory.createTitledBorder( "List" ) );
|
||||||
|
|
||||||
|
|||||||
@@ -70,6 +70,7 @@ public class FleetsyncIDEditor extends JPanel implements ActionListener
|
|||||||
|
|
||||||
JTextArea helpText = new JTextArea( mHelpText );
|
JTextArea helpText = new JTextArea( mHelpText );
|
||||||
helpText.setLineWrap( true );
|
helpText.setLineWrap( true );
|
||||||
|
helpText.setBackground( getBackground() );
|
||||||
add( helpText, "span,grow,push" );
|
add( helpText, "span,grow,push" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -97,6 +97,7 @@ public class TalkgroupIDEditor extends JPanel implements ActionListener
|
|||||||
add( btnReset, "growx,push" );
|
add( btnReset, "growx,push" );
|
||||||
|
|
||||||
JTextArea helpText = new JTextArea( mHelpText );
|
JTextArea helpText = new JTextArea( mHelpText );
|
||||||
|
helpText.setBackground( getBackground() );
|
||||||
helpText.setLineWrap( true );
|
helpText.setLineWrap( true );
|
||||||
add( helpText, "span,grow,push" );
|
add( helpText, "span,grow,push" );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user