From: Keith Packard Date: Wed, 4 Dec 2019 03:34:06 +0000 (-0800) Subject: altosuilib: Show the recovered product name in the Configure Rom dialog X-Git-Tag: 1.9.1~1^2~4 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=2b3c6806a3039ac8c4c1a1e2d6715b0cdc5b9632;ds=sidebyside altosuilib: Show the recovered product name in the Configure Rom dialog This lets the user know that things are actually working as expected as the correct device name should appear in the dialog. Signed-off-by: Keith Packard --- diff --git a/altosuilib/AltosRomconfigUI.java b/altosuilib/AltosRomconfigUI.java index f8dcc3e1..eb2e8333 100644 --- a/altosuilib/AltosRomconfigUI.java +++ b/altosuilib/AltosRomconfigUI.java @@ -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,29 @@ 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; + product_value = new JLabel(config.usb_product); + pane.add(product_value, c); + + y++; + /* Serial */ c = new GridBagConstraints(); c.gridx = 0; c.gridy = y;