Changeset 8912 in josm for trunk/src/org
- Timestamp:
- 2015-10-19T23:06:42+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/SaveLayersDialog.java
r8855 r8912 8 8 import java.awt.Component; 9 9 import java.awt.Dimension; 10 import java.awt.FlowLayout;11 10 import java.awt.Graphics2D; 12 11 import java.awt.GridBagConstraints; … … 50 49 import org.openstreetmap.josm.gui.progress.SwingRenderingProgressMonitor; 51 50 import org.openstreetmap.josm.gui.util.GuiHelper; 51 import org.openstreetmap.josm.tools.GBC; 52 52 import org.openstreetmap.josm.tools.ImageProvider; 53 53 import org.openstreetmap.josm.tools.Utils; … … 101 101 protected JPanel buildButtonRow() { 102 102 JPanel pnl = new JPanel(); 103 pnl.setLayout(new FlowLayout(FlowLayout.CENTER));103 pnl.setLayout(new GridBagLayout()); 104 104 105 105 saveAndProceedAction = new SaveAndProceedAction(); 106 106 model.addPropertyChangeListener(saveAndProceedAction); 107 pnl.add(saveAndProceedActionButton = new JButton(saveAndProceedAction) );107 pnl.add(saveAndProceedActionButton = new JButton(saveAndProceedAction), GBC.std().insets(5, 5, 5, 5).fill(GBC.HORIZONTAL)); 108 108 109 109 discardAndProceedAction = new DiscardAndProceedAction(); 110 110 model.addPropertyChangeListener(discardAndProceedAction); 111 pnl.add(new JButton(discardAndProceedAction) );111 pnl.add(new JButton(discardAndProceedAction), GBC.std().insets(0, 0, 5, 0).fill(GBC.HORIZONTAL)); 112 112 113 113 cancelAction = new CancelAction(); 114 pnl.add(new JButton(cancelAction) );114 pnl.add(new JButton(cancelAction), GBC.std().insets(0, 0, 5, 0).fill(GBC.HORIZONTAL)); 115 115 116 116 JPanel pnl2 = new JPanel();
Note:
See TracChangeset
for help on using the changeset viewer.