GridBagConstraints c = new GridBagConstraints();
c.insets = new Insets (4,4,4,4);
-
+
c.fill = GridBagConstraints.NONE;
c.anchor = GridBagConstraints.WEST;
c.gridx = 0;
c.weightx = 0;
c.weighty = 0;
pane.add(ok_button, c);
-
+
cancel_button = new JButton("Cancel");
cancel_button.setActionCommand("cancel");
cancel_button.addActionListener(this);
c.weightx = 0;
c.weighty = 0;
pane.add(cancel_button, c);
-
+
if (existing == null)
setTitle("Add New Frequency");
else {
pack();
setLocationRelativeTo(frame);
-
+
}
public AltosEditFreqUI(Frame in_frame) {
public AltosFrequency[] frequencies() {
return frequencies.frequencies();
}
-
+
public AltosConfigFreqUI(Frame in_frame,
AltosFrequency[] in_frequencies) {
super(in_frame, "Manage Frequencies", true);