Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

doubt regarding swing

  Asked By: Thomas    Date: Aug 13    Category: Java    Views: 664

I am developing a swing application. I didn't know how to make the
interface more attractive(decorated). The GUI that is designed is not effective
and attractive. How I can decorate the Frames. Can anyone help me by sending a
small piece of code or a link to learn more about the good development of gui.



1 Answer Found

Answer #1    Answered By: Corey Brown     Answered On: Aug 13

If you want to decorate, you might have to be more
specific, just some of my thoughts about Swing: My
guess (this might me completely wrong) is that you
have gotten into the standard motif Swing, it's ugly.
It's like regular Unix CDE and a bit worse. Please
note that where the mac (with bulit-in java) probably
will show it's default beatyfully designed Mac OS X in
JVM, windows will not, it will show standard swing  by

By using this import

import javax.swing.UIManager;

and the code  below, you will change the look and feel
to the current Windows settings on your PC (or mac
will show it's native OS look and feel of course).

// This will look like Windows under Windows


There are some other UIManager alternatives that might
work independently of the OS, check the SDK. Or
rewrite new swing windows and other components, just
extend the classes that you want to use as a base
class, people have done that, there is also usually a
fee involved in order to get the code.

Didn't find what you were looking for? Find more on doubt regarding swing Or get search suggestion and latest updates.