X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=altosui%2FAltosRomconfigUI.java;h=306b8623d4cc7e6079d85b43aede1d34317e2950;hb=75d6aa6f798606f1a6c5a46542065dda81e63b2a;hp=e1dc974e67ac4e520b0a0cf89594bf4ac926a243;hpb=f01096c4b42f9a4720ed0414826c2a283a992545;p=fw%2Faltos diff --git a/altosui/AltosRomconfigUI.java b/altosui/AltosRomconfigUI.java index e1dc974e..306b8623 100644 --- a/altosui/AltosRomconfigUI.java +++ b/altosui/AltosRomconfigUI.java @@ -27,9 +27,10 @@ import java.io.*; import java.util.*; import java.text.*; import java.util.prefs.*; +import org.altusmetrum.AltosLib.*; public class AltosRomconfigUI - extends JDialog + extends AltosDialog implements ActionListener { Container pane; @@ -126,6 +127,11 @@ public class AltosRomconfigUI setLocationRelativeTo(owner); } + public AltosRomconfigUI(JFrame frame, AltosRomconfig config) { + this(frame); + set(config); + } + boolean selected; /* Listen for events from our buttons */ @@ -183,4 +189,9 @@ public class AltosRomconfigUI return romconfig(); return null; } + + public static AltosRomconfig show(JFrame frame, AltosRomconfig config) { + AltosRomconfigUI ui = new AltosRomconfigUI(frame, config); + return ui.showDialog(); + } }