Solved

Windows UI

Posted on 2002-03-20
9
300 Views
Last Modified: 2010-03-31
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
Comment
Question by:maggari
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 92

Accepted Solution

by:
objects earned 100 total points
ID: 6884135
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
 
LVL 92

Expert Comment

by:objects
ID: 6884142
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
 

Author Comment

by:maggari
ID: 6884649
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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
LVL 92

Expert Comment

by:objects
ID: 6884661
You'll probably need to go to native OS code, ie. C/C++.
0
 
LVL 9

Expert Comment

by:Venci75
ID: 6884923
Check the new features of java 1.4
0
 

Expert Comment

by:0xDEADBEEF
ID: 6885156
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
 
LVL 35

Expert Comment

by:TimYates
ID: 6885210
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
 

Expert Comment

by:kianh
ID: 6885435
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
 

Author Comment

by:maggari
ID: 6889593
I never got a definite answer people. So I will give the points to the first person in the list.
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question