import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
-import javax.swing.filechooser.FileNameExtensionFilter;
-import javax.swing.table.*;
-import javax.swing.event.*;
-import java.io.*;
-import java.util.*;
-import java.text.*;
-import java.util.prefs.*;
+import org.altusmetrum.altoslib_3.*;
+import org.altusmetrum.altosuilib_1.*;
public class AltosRomconfigUI
- extends JDialog
+ extends AltosUIDialog
implements ActionListener
{
Container pane;
c.weightx = 1;
c.anchor = GridBagConstraints.LINE_START;
c.insets = ir;
- serial_value = new JTextField("0");
+ serial_value = new JTextField("00000000");
pane.add(serial_value, c);
/* Radio calibration value */
c.anchor = GridBagConstraints.LINE_START;
c.insets = ir;
c.ipady = 5;
- radio_calibration_value = new JTextField("1186611");
+ radio_calibration_value = new JTextField("00000000");
pane.add(radio_calibration_value, c);
/* Buttons */
setLocationRelativeTo(owner);
}
+ public AltosRomconfigUI(JFrame frame, AltosRomconfig config) {
+ this(frame);
+ set(config);
+ }
+
boolean selected;
/* Listen for events from our buttons */
return romconfig();
return null;
}
+
+ public static AltosRomconfig show(JFrame frame, AltosRomconfig config) {
+ AltosRomconfigUI ui = new AltosRomconfigUI(frame, config);
+ return ui.showDialog();
+ }
}