From 51eefb8b38bd5aa13f7940368317c481dfe7dde4 Mon Sep 17 00:00:00 2001 From: Joe Ross Date: Sat, 30 Jan 2016 19:19:50 -0800 Subject: add label to boolean CheckBox Change-Id: Ib441b5325a919965166c1e716222bbb5e950f24e --- .../src/edu/wpi/first/smartdashboard/gui/elements/CheckBox.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/smartdashboard/src/edu/wpi/first/smartdashboard/gui/elements/CheckBox.java b/smartdashboard/src/edu/wpi/first/smartdashboard/gui/elements/CheckBox.java index 73e93bd..9d19f78 100644 --- a/smartdashboard/src/edu/wpi/first/smartdashboard/gui/elements/CheckBox.java +++ b/smartdashboard/src/edu/wpi/first/smartdashboard/gui/elements/CheckBox.java @@ -23,8 +23,10 @@ public class CheckBox extends AbstractValueWidget { setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); + JLabel nameLabel = new JLabel(getFieldName()); valueField = new EditableBooleanValueCheckBox(getFieldName()); + add(nameLabel); add(valueField); } -- cgit v1.2.3-54-g00ecf