Ticket #2713: 1_improve_extended_dialog.patch
File 1_improve_extended_dialog.patch, 1.1 KB (added by , 16 years ago) |
---|
-
src/org/openstreetmap/josm/gui/ExtendedDialog.java
29 29 private final String[] bTexts; 30 30 31 31 // 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); 33 33 protected ArrayList<JButton> buttons = new ArrayList<JButton>(); 34 34 35 35 /** … … 174 174 private void setupEscListener() { 175 175 Action actionListener = new AbstractAction() { 176 176 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; 177 181 setVisible(false); 178 182 } 179 183 };