use multimaint-merge to make Debian changelogs less ugly
[fw/altos] / altosui / AltosRomconfigUI.java
index e1dc974e67ac4e520b0a0cf89594bf4ac926a243..7e21735cd91ee152301ed70b3f22968127d63e19 100644 (file)
@@ -126,6 +126,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 +188,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();
+       }
 }