Solved

Windows UI

Posted on 2002-03-20
9
295 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
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
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 
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

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
JDeveloper 12c for 32 bit 4 84
ArrayIndexOutOfBoundException 9 81
tomcat not starting 6 45
tomcat administrtor 12 47
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
The viewer will learn how to implement Singleton Design Pattern in Java.

770 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