How to make Netbeans use swing

Often when designing forms in netbeans, they will look much different in runtime and can ruin the layout. One way to avoid this problem is to make netbeans use the swing gui so that the forms are the same.

  1. Close netbeans
  2. Open netbeans.conf (/etc/netbeans.conf)
  3. Look for “netbeans_default_options” and add--laf javax.swing.plaf.metal.MetalLookAndFeel

    to the end of it, so it would look something like

    netbeans_default_options="blahblah --laf javax.swing.plaf.metal.MetalLookAndFeel"

  4. Open Netbeans again and it should have the swing look like above
Advertisements

One Response to “How to make Netbeans use swing”

  1. branajam Says:

    Hi,
    My name is James Branam and I’m the NetBeans Community Docs Manager. Your blog entry would make a fantastic Tip & Tricks entry for our Community Docs wiki (http://wiki.netbeans.org/wiki/view/CommunityDocs). Would you be willing to contribute it? If you need any help or have any questions, please contact me at james.branam@sun.com. I look forward to hearing from you.


Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: