Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing the applications look and feel 1

Status
Not open for further replies.

dpimental

Programmer
Jul 23, 2002
535
US
All, I am using Netbeans 5.5 beta 2 as a development environment. I am building a stand-a-lone app to replace a database application.

When I run it, it looks like it's running on a 10 year old mac.

What are some suggestions to change the look and feel of my app. I want a more windows look and feel (xp not 3.1).

Anyone?

David Pimental
(US, Oh)
 
Should I do an import of ...
Code:
import com.sun.java.swing.plaf.*;



David Pimental
(US, Oh)
 
What are the reasons you would, and would not, want to do that ?

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
I figured out this much.

(oh, I havn't worked in java for a while).

I imported javax.swing.UIManager

I am using the following code in the beginning of my class file.

Code:
try {
        UIManager.setLookAndFeel(
            "Metal");
    } catch (Exception e) { }

I don't know what argument to pass it to change the look and feel.

My class file creates a JFrame and has a JMenuBar.

Is that the right place to put it and what do I pass to it to change the look and feel?



David Pimental
(US, Oh)
 
Why don't you read the link I posted - it shows you how to load a LnF, or, if that's not to your liking google for "java look feel" - loads of links.

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Actually, I did read the link; but I was having troubles implementing it.

I finally got it.

Thanks for the assist.

Much appreciated

David Pimental
(US, Oh)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top