Java Code Examples for javax.swing.ToolTipManager#registerComponent()

The following examples show how to use javax.swing.ToolTipManager#registerComponent() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PreviewDrawablePanel.java    From pentaho-reporting with GNU Lesser General Public License v2.1 5 votes vote down vote up
public PreviewDrawablePanel() {
  final ToolTipManager toolTipManager = ToolTipManager.sharedInstance();
  toolTipManager.registerComponent( this );

  final ReportMouseHandler reportMouseHandler = new ReportMouseHandler();
  addMouseListener( reportMouseHandler );
  addMouseMotionListener( reportMouseHandler );
  addMouseListener( new ReportActionHandler() );
}
 
Example 2
Source File: TabControlButtonFactory.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public SlidePinButton( TabDisplayer displayer ) {
    super( displayer );
    ToolTipManager toolTipManager = ToolTipManager.sharedInstance();
    toolTipManager.registerComponent( this );
}
 
Example 3
Source File: TabControlButtonFactory.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public SlideGroupButton( TabDisplayer displayer ) {
    super( displayer );
    ToolTipManager toolTipManager = ToolTipManager.sharedInstance();
    toolTipManager.registerComponent( this );
}
 
Example 4
Source File: TabControlButtonFactory.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public MaximizeRestoreButton( TabDisplayer displayer, boolean showBorder ) {
    super( -1, displayer, showBorder );
    ToolTipManager toolTipManager = ToolTipManager.sharedInstance();
    toolTipManager.registerComponent( this );
}