I am a student, I am using idea for my applications. I am working on swing form , I have done every thing but unable to change look and feel of my app.
I am using intellij idea community edition, can anyone tell me how I can change look and feel of my swing application?
To Change Look and Feel in Java just add this to your main Methode before you create the GUI.
try {
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); //Windows Look and feel
} catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException e) {
e3.printStackTrace();
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.