7fd59977 |
1 | |
2 | //Title: Jad version for OCC |
3 | //Version: |
4 | //Copyright: Copyright (c) 1999 |
5 | //Author: User Interface team |
6 | //Company: Matra Datavision |
7 | //Description: Jad version with java classes |
8 | //distribution according to OCC |
9 | //packaging |
10 | |
11 | |
12 | import javax.swing.*; |
13 | |
14 | public class HeavyButton extends JButton |
15 | { |
16 | public HeavyButton() |
17 | { |
18 | super(null, null); |
19 | } |
20 | |
21 | public HeavyButton(Icon icon) |
22 | { |
23 | super(null, icon); |
24 | } |
25 | |
26 | public HeavyButton(String text) |
27 | { |
28 | super(text, null); |
29 | } |
30 | |
31 | // public HeavyButton(Action a) |
32 | // { |
33 | // super(a); |
34 | // } |
35 | |
36 | public HeavyButton(String text, Icon icon) |
37 | { |
38 | super(text, icon); |
39 | } |
40 | |
41 | //=======================================================================// |
42 | public void setToolTipText(String text) |
43 | { |
44 | putClientProperty(TOOL_TIP_TEXT_KEY, text); |
45 | HeavyToolTipManager toolTipManager = HeavyToolTipManager.sharedInstance(); |
46 | if (text != null) |
47 | toolTipManager.registerComponent(this); |
48 | else |
49 | toolTipManager.unregisterComponent(this); |
50 | } |
51 | } |