home / blog

Tag Archives: java

Java look and feel class loading with OSGI

First some background… Java look and feels can be specified on the command line using the property “swing.defaultlaf”. This property gives the fully qualified classname of the look and feel to load. java -Dswing.defaultlaf=com.example.foo.FooLookAndFeel -jar app.jar This class is loaded … Continue reading

Posted in geek | Tagged , | Leave a comment

ToolTips not shown over JWindows

Tooltips not shown on components placed in JWindows. The fix/workaround is the following line somewhere in your application startup. UIManager.getDefaults().put(“ToolTipManager.enableToolTipMode”, “”); ToolTipManager only requires keyboard focus to show tooltips when the property ToolTipManager.enableToolTipMode is set to “activeApplication”. JWindow widgets do … Continue reading

Posted in geek | Tagged , | Comments Off on ToolTips not shown over JWindows