Friday Mar 13, 2009

Workaround for flickering CASA editor in NetBeans, or how to change L&F

The CASA editor for NetBeans has an issue where the scrollbars rapidly flicker on/off when running on OpenSolaris and using the GTK or Motif (Nimbus has other issues) L&F. When doing some development today I discovered a workaround. You can change the NetBeans look and feel to the good old Metal L&F

To do this on the commandline:

./netbeans --laf javax.swing.plaf.metal.MetalLookAndFeel &

To get the installed L&Fs for your platform

        UIManager.LookAndFeelInfo[] looks = UIManager.getInstalledLookAndFeels();
        for(UIManager.LookAndFeelInfo look: looks){
            System.out.println(look.getClassName());
        }


About

This blog will be about software that i work with; Java, OpenESB, GlassFish and perhaps a bit about photography.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today