File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Problem with nimbus look and feel.. Please help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Problem with nimbus look and feel.. Please help" Watch "Problem with nimbus look and feel.. Please help" New topic
Author

Problem with nimbus look and feel.. Please help

Bharvi Dixit
Greenhorn

Joined: Feb 14, 2013
Posts: 20
Hello all,
I am creating a software in swing. For that i am using NIMBUS LOOK AND FEEL.
i have a doubt in my mind that if i am using nimbus look and feel while developing the software will it be running with same look and feel when i deploy it on some other system? Means if only jre is installed on some other system than will nimbus look and feel will work or not???


Please help..

Thanks in advance.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38756
    
  23
Java Tutorials. It says cross‑platform, so I would think that means it looks the same on different platforms.
Bharvi Dixit
Greenhorn

Joined: Feb 14, 2013
Posts: 20
Thanks Campbell for the reply
i found there is something SystemLookAndFeel . but while designing the GUI i need to set the components according to the look and feel i choose to show..
so which one is beeter?? Nimbus or SystemLookAndFeel??
And the same question again , while deploying the software .. will there be any problem?? what is needed at the time of deployment.. JDK with JRE or Only JRE



Thanks
Tony Docherty
Bartender

Joined: Aug 07, 2007
Posts: 2284
    
  49
Bharvi Dixit wrote:Thanks Campbell for the reply
i found there is something SystemLookAndFeel . but while designing the GUI i need to set the components according to the look and feel i choose to show..
so which one is beeter?? Nimbus or SystemLookAndFeel??

It's not a question of which one is better but rather which one suits your requirements. With SystemLookAndFeel your app will look different on every platform it runs on, it will look like a native application. Whereas with Nimbus it will look the same on every platform it runs on and won't look like it is native to any platform.

You should not be placing the components according to the L&F you choose. You should be using layout managers to lay out the components and then L&F's will be fully interchangeable.

Bharvi Dixit wrote:And the same question again , while deploying the software .. will there be any problem?? what is needed at the time of deployment.. JDK with JRE or Only JRE

You either need to get the user to install the JRE or use a JRE that is already installed on the users system or install a JRE that is local to your app to ensure you keep control of which version of JRE your application uses.
Bharvi Dixit
Greenhorn

Joined: Feb 14, 2013
Posts: 20
Tony Docherty thank you so much for all the information
I am using GroupLayout manager in the netbeans for creating the GUI, but as output is concerned, then there is different arrangements of components with same interface design.
means some panels are not arranged properly with different Look and feel..

I have decided to design the GUI according to the SystemLookAndFeel with grouplayout manager.
Please tell me if i my decision is right or wrong .

Thanks
Tony Docherty
Bartender

Joined: Aug 07, 2007
Posts: 2284
    
  49
but as output is concerned, then there is different arrangements of components with same interface design.
means some panels are not arranged properly with different Look and feel..

I'm not sure what you mean by this. Can you show some examples where changing the L&F results in components no longer being arranged properly.

I have decided to design the GUI according to the SystemLookAndFeel with grouplayout manager.
Please tell me if i my decision is right or wrong .

It's not really possible for me to say. If that gives you the L&F you require then it's the right decision, if not it's not.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with nimbus look and feel.. Please help