summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Ross <git@rossesmail.com>2016-01-30 19:19:50 -0800
committerJoe Ross <git@rossesmail.com>2016-01-30 19:19:50 -0800
commit51eefb8b38bd5aa13f7940368317c481dfe7dde4 (patch)
tree79c226ca555cc20d6a02b3f09076965208be349e
parent5c3f5b388cb33b92a37d149fe6f8f01367df0089 (diff)
add label to boolean CheckBox
Change-Id: Ib441b5325a919965166c1e716222bbb5e950f24e
-rw-r--r--smartdashboard/src/edu/wpi/first/smartdashboard/gui/elements/CheckBox.java2
1 files changed, 2 insertions, 0 deletions
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);
}