Changeset 1316 in josm
- Timestamp:
- 2009-01-21T11:56:25+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java
r1288 r1316 94 94 ImageIcon inIcon = ImageProvider.get("dialogs", iconName); 95 95 ImageIcon smallIcon = new ImageIcon(inIcon.getImage().getScaledInstance(16 , 16, Image.SCALE_SMOOTH)); 96 JLabel labelSmallIcon = new JLabel(smallIcon); 97 titleBar.add(labelSmallIcon); 96 JLabel firstPart = new JLabel(name, smallIcon, JLabel.TRAILING); 97 firstPart.setIconTextGap(8); 98 titleBar.add(firstPart, GBC.std()); 99 titleBar.add(Box.createHorizontalGlue(),GBC.std().fill(GBC.HORIZONTAL)); 98 100 99 101 final ActionListener hideActionListener = new ActionListener(){ … … 144 146 }; 145 147 titleBar.addMouseListener(titleMouseListener); 146 147 // add some padding space (there must be a better way to do this!)148 JLabel padding = new JLabel(" ");149 titleBar.add(padding);150 151 // show the title label152 label.setText(name);153 titleBar.add(label, GBC.std());154 titleBar.add(Box.createHorizontalGlue(),GBC.std().fill(GBC.HORIZONTAL));155 148 156 149 // show the sticky button
Note: See TracChangeset
for help on using the changeset viewer.