Changeset 30006 in osm for applications/editors/josm/plugins/smed2/src/panels
- Timestamp:
- 2013-10-07T10:29:15+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed2/src/panels/PanelMain.java
r29997 r30006 5 5 import java.awt.Color; 6 6 import java.awt.Dimension; 7 import java.awt.Rectangle;8 7 import java.awt.event.ActionListener; 9 8 import java.util.ArrayList; … … 23 22 public class PanelMain extends JPanel { 24 23 24 /** 25 * 26 */ 27 private static final long serialVersionUID = 1L; 25 28 public static JTextArea decode = null; 26 29 public static JTextField messageBar = null; … … 107 110 switch (item.conv) { 108 111 case E: 109 decode.append("\t\t\t" + Messages.getString(att.name()) + ": " + Messages.getString(((Enum)item.val).name()) + "\n"); 112 decode.append("\t\t\t" + Messages.getString(att.name()) + ": " + Messages.getString(((Enum<?>)item.val).name()) + "\n"); 110 113 break; 111 114 case L: 112 115 decode.append("\t\t\t" + Messages.getString(att.name()) + ": "); 113 Iterator it = ((ArrayList)item.val).iterator(); 116 Iterator<?> it = ((ArrayList<?>)item.val).iterator(); 114 117 while (it.hasNext()) { 115 118 Object val = it.next(); 116 decode.append(Messages.getString(((Enum)val).name())); 119 decode.append(Messages.getString(((Enum<?>)val).name())); 117 120 if (it.hasNext()) { 118 121 decode.append(", "); … … 134 137 } 135 138 136 private JRadioButton getButton(JRadioButton button, int x, int y, int w, int h, String title) {137 button.setBounds(new Rectangle(x, y, w, h));138 button.setBorder(BorderFactory.createLoweredBevelBorder());139 button.setText(title);140 return button;141 }142 143 139 }
Note:
See TracChangeset
for help on using the changeset viewer.