Ignore:
Timestamp:
2011-03-25T17:34:52+01:00 (14 years ago)
Author:
zverik
Message:

fix layout (reltoolbox plugin)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/relcontext/src/relcontext/RelContextDialog.java

    r25711 r25713  
    6464    private MultipolygonSettingsPopup multiPopupMenu;
    6565    private RoleComboBoxModel roleBoxModel;
     66    private SortAndFixAction sortAndFixAction;
    6667
    6768    public RelContextDialog() {
     
    111112        chosenRelationPanel.add(chosenRelationComponent, GBC.std().fill().insets(5, 0, 5, 0));
    112113        chosenRelationPanel.add(roleBox, GBC.std().fill().insets(5, 0, 5, 0));
    113         final Action sortAndFixAction = new SortAndFixAction(chosenRelation);
    114         final JButton sortAndFixButton = (JButton) sizeButton(new JButton(sortAndFixAction), 32, 24);
    115         chosenRelationPanel.add(sortAndFixButton, GBC.std());
     114        sortAndFixAction = new SortAndFixAction(chosenRelation);
     115        final JButton sortAndFixButton = (JButton) sizeButton(new JButton(sortAndFixAction), 32, 0);
     116        chosenRelationPanel.add(sortAndFixButton, GBC.std().fill(GBC.VERTICAL));
    116117        final Action downloadChosenRelationAction = new DownloadChosenRelationAction(chosenRelation);
    117         final JButton downloadButton = (JButton) sizeButton(new JButton(downloadChosenRelationAction), 32, 24);
    118         chosenRelationPanel.add(downloadButton, GBC.std());
     118        final JButton downloadButton = (JButton) sizeButton(new JButton(downloadChosenRelationAction), 32, 0);
     119        chosenRelationPanel.add(downloadButton, GBC.std().fill(GBC.VERTICAL));
    119120        chosenRelationPanel.add(new JButton(new EditChosenRelationAction(chosenRelation)), GBC.eol().fill(GBC.VERTICAL));
    120121
     
    274275        // repopulate relations table
    275276        relationsData.setRowCount(0);
     277        sortAndFixAction.chosenRelationChanged(chosenRelation.get(), chosenRelation.get());
    276278        if( newSelection == null )
    277279            return;
Note: See TracChangeset for help on using the changeset viewer.