mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-07 18:30:55 +03:00
52 lines
1.0 KiB
Java
Executable File
52 lines
1.0 KiB
Java
Executable File
|
|
//Title: Jad version for OCC
|
|
//Version:
|
|
//Copyright: Copyright (c) 1999
|
|
//Author: User Interface team
|
|
//Company: Matra Datavision
|
|
//Description: Jad version with java classes
|
|
//distribution according to OCC
|
|
//packaging
|
|
|
|
|
|
import javax.swing.*;
|
|
|
|
public class HeavyButton extends JButton
|
|
{
|
|
public HeavyButton()
|
|
{
|
|
super(null, null);
|
|
}
|
|
|
|
public HeavyButton(Icon icon)
|
|
{
|
|
super(null, icon);
|
|
}
|
|
|
|
public HeavyButton(String text)
|
|
{
|
|
super(text, null);
|
|
}
|
|
|
|
// public HeavyButton(Action a)
|
|
// {
|
|
// super(a);
|
|
// }
|
|
|
|
public HeavyButton(String text, Icon icon)
|
|
{
|
|
super(text, icon);
|
|
}
|
|
|
|
//=======================================================================//
|
|
public void setToolTipText(String text)
|
|
{
|
|
putClientProperty(TOOL_TIP_TEXT_KEY, text);
|
|
HeavyToolTipManager toolTipManager = HeavyToolTipManager.sharedInstance();
|
|
if (text != null)
|
|
toolTipManager.registerComponent(this);
|
|
else
|
|
toolTipManager.unregisterComponent(this);
|
|
}
|
|
}
|