01: /*
02: * @(#)OverlayableCheckBox.java 8/10/2007
03: *
04: * Copyright 2002 - 2007 JIDE Software Inc. All rights reserved.
05: */
06:
07: package com.jidesoft.swing;
08:
09: import javax.swing.*;
10:
11: public class OverlayCheckBox extends JCheckBox {
12: public OverlayCheckBox() {
13: }
14:
15: public OverlayCheckBox(Icon icon) {
16: super (icon);
17: }
18:
19: public OverlayCheckBox(Icon icon, boolean selected) {
20: super (icon, selected);
21: }
22:
23: public OverlayCheckBox(String text) {
24: super (text);
25: }
26:
27: public OverlayCheckBox(Action a) {
28: super (a);
29: }
30:
31: public OverlayCheckBox(String text, boolean selected) {
32: super (text, selected);
33: }
34:
35: public OverlayCheckBox(String text, Icon icon) {
36: super (text, icon);
37: }
38:
39: public OverlayCheckBox(String text, Icon icon, boolean selected) {
40: super (text, icon, selected);
41: }
42:
43: @Override
44: public void repaint(long tm, int x, int y, int width, int height) {
45: super.repaint(tm, x, y, width, height);
46: OverlayableUtils.repaintOverlayable(this);
47: }
48: }
|