Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-24-2009, 02:28 AM
Mr.Beans's Avatar
Senior Member
 
Join Date: Apr 2009
Location: Virginia Beach, Virginia
Posts: 140
Rep Power: 0
Mr.Beans is on a distinguished road
Default Swing themes & custom GUI's
I'm trying to make a program and I want it to have a relatively good-looking gui.

I want it to look a lot like the program in the picture below.



Could someone explain to me or link me to a good place on doing such a thing in java using swing.

Do you think that they used some sort of window gui library or something more like SDL?
Would it be best to use Java2D for much of the interface?

Thank you for your time and effort,

Joseph Pond
__________________
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 04-24-2009, 02:48 AM
OrangeDog's Avatar
Senior Member
 
Join Date: Jan 2009
Location: Cambridge, UK
Posts: 838
Rep Power: 2
OrangeDog is on a distinguished road
Default
Swing comes with a number of "look and feels" that hook into native code to make drawing everything very quick. You could subclass every component and do the drawing yourself in Java 2D, but it would make the application rather bulky and slow to render. You could easily use a JLabel to create those image-text combinations though.
__________________
Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
How To Ask Questions The Smart Way
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 04-27-2009, 03:02 AM
sirwiggles's Avatar
Member
 
Join Date: Feb 2009
Posts: 31
Rep Power: 0
sirwiggles is on a distinguished road
Default
Icons.

The picture you supplied their could be created using mostly if not all icons.
You can add icons too nearly all swing components, start off small and build up.

I would suggest to start buy creating labels with icons, which is what them activite links on the image you supplied would use.

Next think about backgrounds and tab components, which i can see would also need to be used here.
__________________
They're 10 people in the world, those who speak binary, and those who dont.
^ Lame i know, but i can actually count in it nowadays!
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 04-28-2009, 03:10 AM
Steve11235's Avatar
Senior Member
 
Join Date: Dec 2008
Posts: 967
Rep Power: 2
Steve11235 is on a distinguished road
Default
I'm working on a project where the architect wanted a complex LAF. It looks *very* nice, except when it doesn't display correctly (like, drag and drop doesn't highlight list items).

I suggest starting with Metal and the Ocean theme, which is the current default LAF and theme. It's actually fairly attractive. Build out your UI using that for a start. Buttons and labels can take images along with their text, which provides a lot of the flexibility you need.

I have tinkered with the Ocean theme, changing some of the colors slightly and changing a few component borders. It's very difficult to sort out initially, but then it is relatively easy.

Last, you can override the paint() method of the standard components. I made a button with rounded corners and all kinds of shading using Java 2D. The performance hit isn't that great, since the UI will do similar actions anyway.

If you send my a private message with an e-mail address, I'll send you a .zip with a bunch of utility code. A lot of it I created for a production system, so it's not just hacked together. It should give you some ideas as you look at Sun's Tutorial...
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
GUI's diggitydoggz New To Java 2 12-22-2008 10:19 PM
Creating GUI's for simulators. Modifier New To Java 3 11-20-2008 01:35 AM
Java Application Interface similar with Windows Themes Heracles Choe AWT / Swing 9 05-02-2008 04:47 AM
Custom tgs in JSP ravian New To Java 2 12-29-2007 06:05 PM
Help with custom component Falcon1 AWT / Swing 8 07-21-2007 01:39 PM


All times are GMT +2. The time now is 04:55 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org