Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 304
  • Last Modified:

Windows UI

Can I change the way a java frame looks? Specifically, I want to create a frame with curved edges and don't want the title bar color to be blue( you know such things ). I basically want to access the windows UI from java. Can I do that? If so, how?
0
maggari
Asked:
maggari
1 Solution
 
objectsCommented:
You can't modify how the JFrame frame looks, it's handled by the OS.
To do what you want you'd have to create your own component, and handle all the painting and event handling yourself.
0
 
objectsCommented:
And I'm not even sure it is possible to create your own component to do this, but it sounds feasible (though a lot of work). And I don't think the OS will consider it to be a window.
0
 
maggariAuthor Commented:
If I cannot customize how a window looks in JAVA, is it the same case with other languages.. say VC++ or VB. I think it can be done in some language, coz we see so many applications ( e.g RealOne player, winamp etc) which have the non default GUI look. Any ideas in other languages, if not in JAVA? Thanks for your response.
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
objectsCommented:
You'll probably need to go to native OS code, ie. C/C++.
0
 
Venci75Commented:
Check the new features of java 1.4
0
 
0xDEADBEEFCommented:
Build your own Look And Feel. Base class is javax.swing.plaf.basic.BasicLookAndFeel. You activate your own Look-And-Feel using UIManager. For further information, rtfm. You can obtain a documentation at http://java.sun.com/j2se/1.4/download.html

Hope this helps.
0
 
TimYatesCommented:
You could do a Window with no frame, and then draw your own frame onto it...  Just a panel at the top of the window, where you catch mouseDrags, and move the window about accordingly...  You can then draw whatever you want onto it, and it will look like a window...  You can't change the shape of the window though (this is OS specific), and the other side-effect is that the window does not appear on the task bar (in Windows), so it can be hard to switch back to your application...
0
 
kianhCommented:
You can customize your own GUI in Java. But I think a lot of work you have to do.
You can derive your GUI class from Window or JWindow.
To design a GUI like winamp or other non basic GUI look, you can add your images on to your window and then handle mouse event, action event for these images.
Hope this help.
0
 
maggariAuthor Commented:
I never got a definite answer people. So I will give the points to the first person in the list.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now