Mega Code Archive

 
Categories / Java Tutorial / Swing
 

Enabling and Disabling Tool Tips

import javax.swing.ToolTipManager; public class Main {   public static void main(String[] argv) throws Exception {     // Enable tool tips for the entire application     ToolTipManager.sharedInstance().setEnabled(true);     // Disable tool tips for the entire application     ToolTipManager.sharedInstance().setEnabled(false);   } }