Ignore:
Timestamp:
2010-06-03T08:45:33+02:00 (15 years ago)
Author:
stoecker
Message:

fix josm bug 4830

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/colorscheme/src/at/dallermassl/josm/plugin/colorscheme/ColorSchemePreference.java

    r19290 r21563  
    1717import java.util.StringTokenizer;
    1818
     19import javax.swing.BorderFactory;
    1920import javax.swing.Box;
    2021import javax.swing.DefaultListModel;
     
    5354     */
    5455    public void addGui(final PreferenceTabbedPane gui) {
     56        JPanel panel = new JPanel(new GridBagLayout());
     57        panel.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
     58
    5559        Map<String, String> colorMap = Main.pref.getAllPrefix(PREF_KEY_COLOR_PREFIX);
    5660        colorKeys = new ArrayList<String>(colorMap.keySet());
     
    110114        deleteScheme.setToolTipText(tr("Delete the selected scheme from the list."));
    111115
    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));
    114118        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));
    116120        buttonPanel.add(Box.createHorizontalGlue(), GBC.std().fill(GBC.HORIZONTAL));
    117121        buttonPanel.add(useScheme, GBC.std().insets(0,5,5,0));
    118122        buttonPanel.add(addScheme, GBC.std().insets(0,5,5,0));
    119123        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);
    120128    }
    121129
Note: See TracChangeset for help on using the changeset viewer.