From 2b3c6806a3039ac8c4c1a1e2d6715b0cdc5b9632 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 3 Dec 2019 19:34:06 -0800 Subject: [PATCH] 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 --- altosuilib/AltosRomconfigUI.java | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) 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; -- 2.30.2