From 3657e11894db33ba2ff90955838f72111f78c211 Mon Sep 17 00:00:00 2001 From: Jeroen Hoek Date: Tue, 5 May 2020 13:33:28 +0200 Subject: [PATCH] Add root panel --- de.lang | Bin 0 -> 299 bytes en.lang | Bin 0 -> 242 bytes ja.lang | Bin 0 -> 385 bytes nl.lang | Bin 0 -> 293 bytes .../josm/gridify/ui/GridifySettingsDialog.java | 12 ++++++------ 5 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 de.lang create mode 100644 en.lang create mode 100644 ja.lang create mode 100644 nl.lang diff --git a/de.lang b/de.lang new file mode 100644 index 0000000000000000000000000000000000000000..f9c6b216b0e3a5fa4df3ccac72942de6f0e4be80 GIT binary patch literal 299 zcmZ8dJqp4w6waim&`EH82M}>~QxF#gU35;{uQoJIBuyL?&*I`4yg(18sV!FA9`AeK z-(%f{ET2&Z)|-c+L6kx<+Q4Kvm!Pv&v~!SB3MD|9J_#6qG5lFV*#t)U?PO^#a7Pe? zqLr`~=A*E#$cnft=L#FERZXxxN30Gwd|M;?2#g@q?8Hbg XuIkW3B!%gDSU$Nh+a10)pYQhvRcBJW literal 0 HcmV?d00001 diff --git a/ja.lang b/ja.lang new file mode 100644 index 0000000000000000000000000000000000000000..14bea40e04dc8f5f243b8ae2245f4548cdbaddef GIT binary patch literal 385 zcmZvY!Ae3=5QY!53IbO_tF~=>gI=Zgh`^aK@?In3W{MUOWd>R*NECLZhxs~&D<8qm zH7dHe8|I(?pKr!(V0G*XGj!kzXejTn5&DMp+z$GV4$;IP8PZ2P=mXkDDrkg`uo{-S zt-Kx_Q9Nt5-QGN{A;HkcPQxe`AtB;7D1;8NZiWyfO+F@9)AAY8L@N~4ZT{Dvv+X+0 zSpRJPr0%wJ4XlAZV&~X>hPd|m(sJwmcfy34bF;5C`a k>omSb8b}AJA~(ndQp(5+xu*nXD=lBpo2RXV-NVJ=3tZv!X8-^I literal 0 HcmV?d00001 diff --git a/nl.lang b/nl.lang new file mode 100644 index 0000000000000000000000000000000000000000..9fd748aee5fefa5e4ae95b8c0e0b76a17f3d5b65 GIT binary patch literal 293 zcmYjMv2Map415y^+5u)5`~e7cLqaUDFtigD>`vkYlVC?LFUf%TcIrSXv7PSD=Q}st z6`JQHZnPDt3-ShM-&!(}hk#iH4GJU#kymLcbJG*~mM@9P|I}(vVu!{M33#l6!S2lb zMra8UR{Tn8*tA@;8EB0o6HZ AOaK4? literal 0 HcmV?d00001 diff --git a/src/nl/jeroenhoek/josm/gridify/ui/GridifySettingsDialog.java b/src/nl/jeroenhoek/josm/gridify/ui/GridifySettingsDialog.java index e2988b0..f0fcf7e 100644 --- a/src/nl/jeroenhoek/josm/gridify/ui/GridifySettingsDialog.java +++ b/src/nl/jeroenhoek/josm/gridify/ui/GridifySettingsDialog.java @@ -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; @@ -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()); @@ -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);