Subversion Repository Public Repository

litesoft

Diff Revisions 2 vs 17 for /trunk/Java/KeyHole/src/org/litesoft/aokeyhole/swing/AttributeTypeSelectorJPanel.java

Diff revisions: vs.
  @@ -60,10 +60,13 @@
60 60 return null;
61 61 }
62 62 JPanel rv = new JPanel( new GridLayout( 2, zOptions.size() ) );
63 + // Populate Left (Spacers)
64 + //noinspection ForLoopReplaceableByForEach
63 65 for ( int i = 0; i < zOptions.size(); i++ )
64 66 {
65 67 rv.add( new JLabel( " " ) );
66 68 }
69 + // Populate Right (Options)
67 70 for ( JRadioButton zOption : zOptions )
68 71 {
69 72 rv.add( zOption );
  @@ -71,6 +74,7 @@
71 74 return rv;
72 75 }
73 76
77 + @Override
74 78 public void stateChanged( ChangeEvent e )
75 79 {
76 80 showAppropriateCard();