Skip to content

Commit

Permalink
Add root panel
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhoek committed May 5, 2020
1 parent 73eb49c commit 3657e11
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Binary file added de.lang
Binary file not shown.
Binary file added en.lang
Binary file not shown.
Binary file added ja.lang
Binary file not shown.
Binary file added nl.lang
Binary file not shown.
12 changes: 6 additions & 6 deletions src/nl/jeroenhoek/josm/gridify/ui/GridifySettingsDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import org.openstreetmap.josm.gui.ExtendedDialog;
import org.openstreetmap.josm.gui.MainApplication;

import javax.swing.JLabel;
import javax.swing.*;
import java.awt.Dimension;

import static org.openstreetmap.josm.tools.I18n.tr;
Expand Down Expand Up @@ -41,9 +41,9 @@ public void setupDialog() {
//Preview preview = new Preview(inputData.getGridExtrema(), this);
// JLabel preview = new JLabel("Preview");

// JPanel rootPanel = new JPanel();
// setMinimumSize(new Dimension(550, 360));
// rootPanel.setLayout(new BoxLayout(rootPanel, BoxLayout.X_AXIS));
JPanel rootPanel = new JPanel();
setMinimumSize(new Dimension(550, 360));
rootPanel.setLayout(new BoxLayout(rootPanel, BoxLayout.X_AXIS));

// JPanel controlPanel = new JPanel();
// controlPanel.setLayout(new GridBagLayout());
Expand Down Expand Up @@ -99,12 +99,12 @@ public void setupDialog() {
// controlPanel.add(sourceWayPanel, constraints);
// }

// rootPanel.add(new JLabel("Test"));
rootPanel.add(new JLabel("Test-9"));
// rootPanel.add(Box.createHorizontalGlue());
//
// rootPanel.add(preview);

setContent(new JLabel("Test"), false);
setContent(rootPanel, false);
setButtonIcons("ok.png", "cancel.png");
setDefaultButton(1);

Expand Down

0 comments on commit 3657e11

Please sign in to comment.