• Log in or sign up for an account here: https://www.sythe.org/login

Java Form

  • Thread starter Thread starter Draucia
  • Start date Start date
D

Draucia

Guest
I have a simple question:

Can java make ordinary looking forms? All the java applications I see have this java type form, this java type file browse tool.

i3dt9v.png


Tic tac toe game made by suf.

Can java have a form like the one on the right?
 
<3 n4n0
Discord Verified
Two Factor Authentication User
Community Participant
Spam Forum Participant
Sythe's 10th Anniversary
Sythe Awards 2011 Winner
You can set the look and feel of it.... Jimmy does it a lot... I never have because I don't care. InbeforeJimmy.
 
You can set the look and feel of it.... Jimmy does it a lot... I never have because I don't care. InbeforeJimmy.
I lol'ed.

First of all, the first window is seen under the Aero theme on Vista, whereas the second is seen on Windows XP. This accounts for the clear frame, as opposed to the blue one. This can be observed in Java programs that don't change the LookAndFeel at all (Example: JMacro back in 2007). If you want your Java applications to have a more native-looking LookAndFeel, as opposed to the default MetalLookAndFeel (the cross-platform one), then you have several options.

  • Use AWT. The downside to this is that most of your components will look rather old.
  • Use SWT. The downside to this is that you have to include external libraries with your application. This, like AWT, is a wrapper to native GUI components, however these generally look more modern than AWT components.
  • Use Swing, but call the setLookAndFeel() method in the UIManager class. This is probably the easiest solution, as you can still make all of your GUI in Swing. The code for doing this would be placed before you create your GUI, and would be something along the lines of:
    Code:
    UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());

Hope I helped.
 
Runescape Gamblingrunescape gambling
Back
Top