Changeset 28523 in osm


Ignore:
Timestamp:
2012-07-31T16:48:07+02:00 (12 years ago)
Author:
donvip
Message:

[josm_utilsplugin2] Fix #josm7543 - Add standard JOSM scroll pane to utilsplugin2 preferences panel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/customurl/UtilsPluginPreferences.java

    r28028 r28523  
    1313import org.openstreetmap.josm.gui.widgets.HistoryComboBox;
    1414import org.openstreetmap.josm.gui.widgets.HtmlPanel;
    15 import java.awt.GridBagConstraints;
    1615import java.awt.event.ActionListener;
    1716import javax.swing.JPanel;
     
    3837    @Override
    3938    public void addGui(PreferenceTabbedPane gui) {
    40         JPanel pp = gui.createPreferenceTab(this);
    41         JPanel all = new JPanel();
    42         GridBagLayout layout = new GridBagLayout();
    43         all.setLayout(layout);
     39        JPanel all = new JPanel(new GridBagLayout());
    4440
    4541        // FIXME: get rid of hardcoded URLS
     
    10399        });
    104100        all.add(table,GBC.eop().fill());
    105 
    106         pp.add(all, GBC.eol().fill(GridBagConstraints.BOTH));
     101        createPreferenceTabWithScrollPane(gui, all);
    107102    }
    108103
Note: See TracChangeset for help on using the changeset viewer.