Browse Source

rename

master
yaoh.wu 6 years ago
parent
commit
acb1248c82
  1. 10
      designer-base/src/main/java/com/fr/design/gui/itree/checkboxtree/TristateCheckBox.java

10
designer-base/src/main/java/com/fr/design/gui/itree/checkboxtree/TristateCheckBox.java

@ -77,7 +77,7 @@ public class TristateCheckBox extends UICheckBox {
public TristateCheckBox(String text, Icon icon, State initial) { public TristateCheckBox(String text, Icon icon, State initial) {
super(text, icon); super(text, icon);
setUI(new TristateUICheckBoxUI()); setUI(new TristateCheckBoxUI());
// Add a listener for when the mouse is pressed // Add a listener for when the mouse is pressed
super.addMouseListener(new MouseAdapter() { super.addMouseListener(new MouseAdapter() {
@Override @Override
@ -105,17 +105,17 @@ public class TristateCheckBox extends UICheckBox {
public TristateCheckBox(String text, State initial) { public TristateCheckBox(String text, State initial) {
this(text, null, initial); this(text, null, initial);
setUI(new TristateUICheckBoxUI()); setUI(new TristateCheckBoxUI());
} }
public TristateCheckBox(String text) { public TristateCheckBox(String text) {
this(text, DO_NOT_CARE); this(text, DO_NOT_CARE);
setUI(new TristateUICheckBoxUI()); setUI(new TristateCheckBoxUI());
} }
public TristateCheckBox() { public TristateCheckBox() {
this(null); this(null);
setUI(new TristateUICheckBoxUI()); setUI(new TristateCheckBoxUI());
} }
/** /**
@ -343,7 +343,7 @@ public class TristateCheckBox extends UICheckBox {
} }
} }
private class TristateUICheckBoxUI extends MetalCheckBoxUI { private class TristateCheckBoxUI extends MetalCheckBoxUI {
@Override @Override
public void paint(Graphics g, JComponent c) { public void paint(Graphics g, JComponent c) {
synchronized (this) { synchronized (this) {

Loading…
Cancel
Save