Ignore:
Timestamp:
2009-12-06T10:55:55+01:00 (15 years ago)
Author:
stoecker
Message:

cleanup prefs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/osmarender/src/org/openstreetmap/josm/plugins/osmarender/OsmarenderPlugin.java

    r18922 r18969  
    33import static org.openstreetmap.josm.tools.I18n.tr;
    44
     5import java.awt.GridBagLayout;
    56import java.awt.event.ActionEvent;
    67import java.io.BufferedReader;
     
    1314import java.util.Set;
    1415
     16import javax.swing.BorderFactory;
     17import javax.swing.Box;
    1518import javax.swing.JLabel;
    1619import javax.swing.JMenuItem;
    1720import javax.swing.JOptionPane;
     21import javax.swing.JPanel;
    1822import javax.swing.JTextField;
    1923
     
    124128            private JTextField firefox = new JTextField(10);
    125129            public void addGui(PreferenceDialog gui) {
    126                 gui.map.add(new JLabel(tr("osmarender options")), GBC.eol().insets(0,5,0,0));
    127                 gui.map.add(new JLabel(tr("Firefox executable")), GBC.std().insets(10,5,5,0));
    128                 gui.map.add(firefox, GBC.eol().insets(0,5,0,0).fill(GBC.HORIZONTAL));
     130                final JPanel panel = new JPanel(new GridBagLayout());
     131                panel.setBorder(BorderFactory.createEmptyBorder( 0, 0, 0, 0 ));
     132
     133                panel.add(new JLabel(tr("Firefox executable")), GBC.std().insets(10,5,5,0));
     134                panel.add(firefox, GBC.eol().insets(0,5,0,0).fill(GBC.HORIZONTAL));
     135                panel.add(Box.createVerticalGlue(), GBC.eol().fill(GBC.BOTH));
    129136                firefox.setText(Main.pref.get("osmarender.firefox"));
     137                gui.mapcontent.addTab(tr("Osmarender"), panel);
    130138            }
    131139            public boolean ok() {
Note: See TracChangeset for help on using the changeset viewer.