Changeset 21563 in osm for applications/editors/josm/plugins
- Timestamp:
- 2010-06-03T08:45:33+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/colorscheme/src/at/dallermassl/josm/plugin/colorscheme/ColorSchemePreference.java
r19290 r21563 17 17 import java.util.StringTokenizer; 18 18 19 import javax.swing.BorderFactory; 19 20 import javax.swing.Box; 20 21 import javax.swing.DefaultListModel; … … 53 54 */ 54 55 public void addGui(final PreferenceTabbedPane gui) { 56 JPanel panel = new JPanel(new GridBagLayout()); 57 panel.setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); 58 55 59 Map<String, String> colorMap = Main.pref.getAllPrefix(PREF_KEY_COLOR_PREFIX); 56 60 colorKeys = new ArrayList<String>(colorMap.keySet()); … … 110 114 deleteScheme.setToolTipText(tr("Delete the selected scheme from the list.")); 111 115 112 gui.map.add(new JLabel(tr("Color Schemes")), GBC.eol().insets(0,5,0,0));113 gui.map.add(new JScrollPane(schemesList), GBC.eol().fill(GBC.BOTH));116 panel.add(new JLabel(tr("Color Schemes")), GBC.eol().insets(0,5,0,0)); 117 panel.add(new JScrollPane(schemesList), GBC.eol().fill(GBC.BOTH)); 114 118 JPanel buttonPanel = new JPanel(new GridBagLayout()); 115 gui.map.add(buttonPanel, GBC.eol().fill(GBC.HORIZONTAL));119 panel.add(buttonPanel, GBC.eol().fill(GBC.HORIZONTAL)); 116 120 buttonPanel.add(Box.createHorizontalGlue(), GBC.std().fill(GBC.HORIZONTAL)); 117 121 buttonPanel.add(useScheme, GBC.std().insets(0,5,5,0)); 118 122 buttonPanel.add(addScheme, GBC.std().insets(0,5,5,0)); 119 123 buttonPanel.add(deleteScheme, GBC.std().insets(0,5,5,0)); 124 125 JScrollPane scrollpane = new JScrollPane(panel); 126 scrollpane.setBorder(BorderFactory.createEmptyBorder( 0, 0, 0, 0 )); 127 gui.displaycontent.addTab(tr("Color Schemes"), scrollpane); 120 128 } 121 129
Note:
See TracChangeset
for help on using the changeset viewer.