X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=altosuilib%2FAltosRomconfigUI.java;h=f2c038a9afaae9d3c7f314f037985a5a4a48fd61;hb=075999e274dd1815b15c0d717d1af4e7717e5da9;hp=f8dcc3e1fe9ba83e8f21ca819b5673407a7c0d68;hpb=9abacdaacf5ad1211da4fc72f5320ba9c43ff509;p=fw%2Faltos diff --git a/altosuilib/AltosRomconfigUI.java b/altosuilib/AltosRomconfigUI.java index f8dcc3e1..f2c038a9 100644 --- a/altosuilib/AltosRomconfigUI.java +++ b/altosuilib/AltosRomconfigUI.java @@ -16,12 +16,12 @@ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -package org.altusmetrum.altosuilib_13; +package org.altusmetrum.altosuilib_14; import java.awt.*; import java.awt.event.*; import javax.swing.*; -import org.altusmetrum.altoslib_13.*; +import org.altusmetrum.altoslib_14.*; public class AltosRomconfigUI extends AltosUIDialog @@ -29,9 +29,11 @@ public class AltosRomconfigUI { Container pane; Box box; + JLabel product_label; JLabel serial_label; JLabel radio_calibration_label; + JLabel product_value; JFrame owner; JTextField serial_value; JTextField radio_calibration_value; @@ -54,6 +56,32 @@ public class AltosRomconfigUI int y = 0; + /* Product name */ + /* Serial */ + c = new GridBagConstraints(); + c.gridx = 0; c.gridy = y; + c.gridwidth = 3; + c.fill = GridBagConstraints.NONE; + c.anchor = GridBagConstraints.LINE_START; + c.insets = il; + product_label = new JLabel("Product:"); + pane.add(product_label, c); + + c = new GridBagConstraints(); + c.gridx = 3; c.gridy = y; + c.gridwidth = 3; + c.fill = GridBagConstraints.HORIZONTAL; + c.weightx = 1; + c.anchor = GridBagConstraints.LINE_START; + c.insets = ir; + String product = "unknown"; + if (config != null) + product = config.usb_product; + product_value = new JLabel(product); + pane.add(product_value, c); + + y++; + /* Serial */ c = new GridBagConstraints(); c.gridx = 0; c.gridy = y;