Mega Code Archive

 
Categories / Java Tutorial / Swing
 

Using ToolTipManager to Register your components

ToolTipManager.sharedInstance().setEnabled( false). When calling the setToolTipText(), it causes the component to register itself with the ToolTipManager. Sometime we want to register the component directly. public void registerComponent(JComponent component) public void unregisterComponent(JComponent component)