Change look and feel of your jframe(Java)

Today we will see how change "Look and feel of your application"

Normally running jframe made by NetBeans, look of jframe called "Nimbus".

It is default previwe comes with NetBeans.

Following image is example for look of "Nimbus".
We can change it with NetBeans to a 5 types.


  • Metal
  • Nimbus
  • CDE/Motif
  • Windows
  • Windows Classic

You can test the preview before change it by following steps.


  1. Right click on your jframe
  2. Go to Preview Design
  3. Choose Metal,Windows or somthing
  4. jframe will show how it look like

Now we will see how change this permanently

  1. Go to your source code
  2. Go to botom of your code and find the main method of your codes
  3. In this picture you can see code like this /*Set the Nimbus look the form*/
  4. Right side of this code can you see some you can see "+" mark. Click it and extract code there.
  5. You can see here it default set as Nimbus
  6. To change that simply delete Nimbus and change it to your choice to a Windows,etc.
  7. Following images show you change of this 5 types
  8. Metal

    Nimbus

    CDE/Motif

    Windows

    Windows Classic

36 comments:

  1. Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.
    Best Devops Training in pune
    Data science training in Bangalore

    ReplyDelete
  2. Wonderful article, very useful and well explanation. Your post is extremely incredible. I will refer this to my candidates...
    Python Online training
    python Training in Chennai
    Python training in Bangalore

    ReplyDelete
  3. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging.
    Selenium training in Chennai
    Selenium training in Bangalore
    Selenium training in Pune
    Selenium Online training

    ReplyDelete
  4. Thanks for sharing The Information The Information shared is very valuable Please keep Updating us Time Just went on redaing the article Python Online Training AWS Online Training Devops Online Training Data Science Online Training

    ReplyDelete
  5. Very Nice article
    Unic Sol is the best java training in Hyderabad with job placements. Along with java training full stack, mean stack, angular & testing tools training is provided by industry experts. We are the best java training in Hyderabad.

    ReplyDelete
  6. AI Patasala aims at providing the most effective Python Training in Hyderabad. Our school has taught a lot of individuals and assisted them in locating good jobs.
    Python Institute in Hyderabad

    ReplyDelete