Changeset 1661 in josm for trunk/src


Ignore:
Timestamp:
2009-06-10T16:23:33+02:00 (15 years ago)
Author:
stoecker
Message:

minor fix to dialog - patch by xeen

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/ExtendedDialog.java

    r1432 r1661  
    3030
    3131    // For easy access when inherited
    32     protected Object contentConstraints = GBC.eol().anchor(GBC.CENTER).insets(5,10,5,0);
     32    protected Object contentConstraints = GBC.eol().anchor(GBC.CENTER).fill(GBC.HORIZONTAL).insets(5,10,5,0);
    3333    protected ArrayList<JButton> buttons = new ArrayList<JButton>();
    3434
     
    175175        Action actionListener = new AbstractAction() {
    176176            public void actionPerformed(ActionEvent actionEvent) {
     177                // 0 means that the dialog has been closed otherwise.
     178                // We need to set it to zero again, in case the dialog has been re-used
     179                // and the result differs from its default value
     180                result = 0;
    177181                setVisible(false);
    178182            }
Note: See TracChangeset for help on using the changeset viewer.