944,131 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Marked Solved
  • Views: 7168
  • Java RSS
Nov 3rd, 2009
0

How to change application design? (custom jFrame, buttons)

Expand Post »
Hello,
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.
Similar Threads
Reputation Points: 11
Solved Threads: 7
Posting Whiz in Training
Clawsy is offline Offline
225 posts
since Feb 2008
Nov 3rd, 2009
0
Re: How to change application design? (custom jFrame, buttons)
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.../architecture/
Moderator
Featured Poster
Reputation Points: 3239
Solved Threads: 839
Posting Genius
Ezzaral is offline Offline
6,761 posts
since May 2007
Nov 3rd, 2009
0
Re: How to change application design? (custom jFrame, buttons)
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/...-tutorial.html but I don't know if is a good idea. It gives me an exception at this instruction:
Java Syntax (Toggle Plain Text)
  1. AWTUtilities.setWindowOpacity(Window.getWindows()[0], 0.8f);
Exception:
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.
Reputation Points: 11
Solved Threads: 7
Posting Whiz in Training
Clawsy is offline Offline
225 posts
since Feb 2008
Nov 3rd, 2009
0
Re: How to change application design? (custom jFrame, buttons)
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 setUndecorated(true);
Moderator
Featured Poster
Reputation Points: 3239
Solved Threads: 839
Posting Genius
Ezzaral is offline Offline
6,761 posts
since May 2007
Nov 4th, 2009
0
Re: How to change application design? (custom jFrame, buttons)
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/tutor...eel/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?
http://java.sun.com/docs/books/tutor...el/nimbus.html
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
Last edited by Clawsy; Nov 4th, 2009 at 3:15 am.
Reputation Points: 11
Solved Threads: 7
Posting Whiz in Training
Clawsy is offline Offline
225 posts
since Feb 2008
Nov 4th, 2009
0
Re: How to change application design? (custom jFrame, buttons)
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. =\
Moderator
Featured Poster
Reputation Points: 3239
Solved Threads: 839
Posting Genius
Ezzaral is offline Offline
6,761 posts
since May 2007
Nov 4th, 2009
0
Re: How to change application design? (custom jFrame, buttons)
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!
Last edited by Clawsy; Nov 4th, 2009 at 12:33 pm.
Reputation Points: 11
Solved Threads: 7
Posting Whiz in Training
Clawsy is offline Offline
225 posts
since Feb 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Java
Next Thread in Java Forum Timeline: Mail User Agent





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC