I am coding Java 7 with the Netbeans 7.1 IDE. From the Java 1.7 package they are using a new theme in their applications.
What can I do to make my application's theme exactly the theme in operating system (i.e. if I am using Ubuntu, I want the look and feel of my program to be the that of Ubuntu's)?
Click the Start or Windows button (usually in the lower-left corner of your computer screen). Click Settings. Click About (usually in the lower left of the screen). The resulting screen shows the edition of Windows.
You can also click the Start button and enter System in the search. Click System (Control Panel). A window will open displaying the version. Congratulations!
Press the Windows key (at the bottom of the keyboard, looks like four squares) and R key at the same time to open the Run dialog box. Type in “winver.” Click OK. A window should open called About Windows that tells you which operating system you are using.
I feel that this is more a question for SO, but in short you should try something like :
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With