I am trying to design an java desktop application. My question is: Is there a way to change the whole look? From example different titlebar, different jFrame, buttons... (designed with PNG images, transparency, etc.). Is it possible? If so, how? In VB or C# I can easely change those... E.G.: Make the FORM "borderless" then I add my own buttons with background image, etc. It is so important to me... I work on a project that requires not only developing but design too. please help if you can :). Thanks.
You can customize all kinds of things about how the UI appears. A lot is possible with the methods provided by the Swing components, but if that isn't sufficient it's possible to use the the pluggable look and feel and custom UI delegates to gain a greater degree of customization. Here is an overview of that architecture: http://java.sun.com/products/jfc/tsc/articles/architecture/
Thanks for the link... however I look for a less complicated way to do this... I found this link: http://pforfun.blogspot.com/2008/11/java-transparency-tutorial.html but I don't know if is a good idea. It gives me an exception at this instruction:
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: The effects for decorated windows are not supported.
at com.sun.awt.AWTUtilities.setWindowOpaque(AWTUtilities.java:389). Thanks for interest in helping me.
It all comes down to the details of "changing the look". Some things are trivial, others are quite complicated. You asked a very general question.
If you just want to set the frame to be borderless, use
Thanks Ezzaral. Useful post.
After some hours of searching I think I found how to change the look as I wanted and it's useful for all (who did not find it yet).
The "Synth" Look and Feel: http://java.sun.com/docs/books/tutorial/uiswing/lookandfeel/synth.html. It's and XML describing how components / regions can be fully customized :). So I guess I mark this thread as solved now...
Do you know something about "Nimbus" project?
It's based on Synth . I was searching for Nimbus designer but didn't find it yet. Nimbus should be part of java 7 they say.
Thanks again. Have a nice day :)
Edited by Clawsy: n/a
No, I hadn't seen anything about Nimbus as yet. It looks pretty nice.
Here at work we just use the XP look and feel and all of our time is taken up working on functional requirements. We don't have much time left to play with UI customizatoin. =\
I know. As a matter of fact... my project must be made for a "Software Engineering" Course (at University) and I'm leading a team so I was told we must also visually design our application coded (by me) in java. Everyone has a task... so I gave my designer his job to do :). Have a nice day!
Edited by Clawsy: n/a
I have the following problem.
when i pres buttun printpreview (button 5) the the print preview fires up.
and when i close the print preview without printing and minimize the ...
Hi all! I need help understanding what my teacher expects from this project.
Here is the link to the instructions for the project: http://cs.ecu.edu/~karl/2530/spr18/Assn/Assn5/assn5.html
I wrote a little bit of ...
Anyone have a shell script to remove controlM character from all the files in a directory