List of usage examples for javax.swing ToolTipManager setLightWeightPopupEnabled
public void setLightWeightPopupEnabled(boolean aFlag)
JToolTip
, the ToolTipManager
chooses to use a lightweight JPanel
if it fits. From source file:SwingTest.java
/** * main entry point for the application. Creates the parent JFrame, the * JMenuBar and creates the JPanel which is the application itself. *//*from ww w . j av a 2 s . com*/ public static void main(String[] args) { JPopupMenu.setDefaultLightWeightPopupEnabled(false); ToolTipManager ttm = ToolTipManager.sharedInstance(); ttm.setLightWeightPopupEnabled(false); JFrame frame = new JFrame(); SwingTest swingTest = new SwingTest(); frame.setJMenuBar(swingTest.createMenuBar()); frame.getContentPane().add(swingTest); frame.setSize(550, 550); registerWindowListener(frame); frame.setVisible(true); }