Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6318683
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T15:40:08+00:00 2026-05-24T15:40:08+00:00

nimbus look and feel not appear after creating jar when i run program in

  • 0

nimbus look and feel not appear after creating jar
when i run program in NetBeans at time Nimbus look & Feel work perfectly but when i create Jar and run Application from jar at time nimbus look & feel is not appear
CODE:

public static void main(String[] args)
{

     boolean isNimbus = false;
try {

    for (UIManager.LookAndFeelInfo info : UIManager.getInstalledLookAndFeels())
    {
        if ("Nimbus".equals(info.getName()))
        {
            UIManager.setLookAndFeel(info.getClassName());
            isNimbus = true;
            break;
        }
    }
    if(!isNimbus)
    {
       UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    }

    } catch (ClassNotFoundException ex) {
        Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
    } catch (InstantiationException ex) {
        Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
    } catch (IllegalAccessException ex) {
        Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
    } catch (UnsupportedLookAndFeelException ex) {
        Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
    }
    Dashboard dashboardObj = new Dashboard();
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T15:40:09+00:00Added an answer on May 24, 2026 at 3:40 pm

    If it works fine in NetBeans, but the LAF does not appear, when running a jar file, it probably means that the LAF library wasn’t correctly discovered in the classpath. Since I don’t know your setup, I can’t really suggest the right answer. You could adjust your classpath settings when running the jar file (via jar -cp ...) or package your application as a single jar, with all the dependencies included – onejar is a convenient way to accomplish this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a Swing app and i want to run it with Nimbus look'n'feel
I am using Nimbus Look and feel. I needs to change the Background color
For my current project, i'm using Swing and the Nimbus look and feel. The
hello i am using the nimbus look-and-feel and have a tabbedpane with an icon
I'm using Nimbus Look and Feel, with only 3 changes at its colors: UIManager.put(nimbusSelection,
In Nimbus look and feel JButtons have a very tidy and accurate look, with
I use Nimbus look and feel in my swing applications and it's pretty cool.
I use Nimbus Look and Feel in a project. However, although every GUI JComponent
...to customize the look and feel of the NetBeans IDE ? For this change
From what I've found out, the Nimbus Look and Feel was introduced in Java

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.