Reverted package name to 'altosui' from 'AltosUI'
[fw/altos] / altosui / AltosRomconfigUI.java
index e1dc974e67ac4e520b0a0cf89594bf4ac926a243..306b8623d4cc7e6079d85b43aede1d34317e2950 100644 (file)
@@ -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();
+       }
 }