Advanced GUI programming - tutorials etc

Posted on 2003-10-26
Last Modified: 2012-05-04
I've put together several gui's in java before, but they always look a little bit crap - always that generic swing library stuff that blends in with the rest of windows.
I need to put together a project thats a little more "graphicy" now, and was wondering if anyone could poing me to some tutorials/examples of how to do something a little better.

I am fairly profficient in photoshop so something where i can take some of my designs in ps and translate it into a gui would be good - any ideas tips anyone?


Question by:dcollis
  • 3
  • 2
  • 2
  • +1
LVL 15

Accepted Solution

jimmack earned 75 total points
ID: 9623443
Well if you want to avoid the standard appearance of Swing, you'll need to modify the "look and feel".

Have a search on

Here's one for starters :

Expert Comment

ID: 9624934
oki oki
for better GUI, using swing and look-n-feel. You can download many free look and feel at this URL

Enjoy!!! :))

Expert Comment

ID: 9639221
import java.awt.*;
import javax.swing.;

public class Test extends JPanel{

//Image image=Toolkit.getDefaultToolkit().getImage(fileName or url);

  Image image=Toolkit.getDefaultToolkit().getImage("watever.jpg");

  public Test(){

  public void paintComponent(Graphics g){
    g.drawImage(image, 0, 0, this);

if you have a picture with the name watever.jpg, it should be able to "paint" the picture onto this JPanel( after that, add in other component on this panel.. the pic will serve as the background..

you can also check out from the tutorial on how to paint image on the panel, icon on the label or button.. hope this may help!

Sorry, it's been a looong while that i didn't actually touch programming, so if anything missing from the above code, please, if any of the experts can, fill in for me. :)


Expert Comment

ID: 9647911
tell us in detail what you really wanted to achieve, and maybe we can provide some links or codes to help you ;)

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline


Author Comment

ID: 9709974
not exactly what i was looking for. but gave me more areas to look into anyway.

I am now using a combination of springlayout and look and feel to achieve a good looking gui.

cheers for the help,

LVL 15

Expert Comment

ID: 9709983
Thanks and good luck ;-)

What's springlayout?  Is it available on a URL somewhere?

Author Comment

ID: 9710110

is a little unwieldy (as with most of swing i find)...but has allowed me to layout my gui alot easier than using one of the other layout techniques.
LVL 15

Expert Comment

ID: 9710461
Well.  I haven't come across that one before :-)

Always good to learn something new.

Target achieved for the day ;-)

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
bunnyEars2 challenge 6 68
parentbit challenge 3 52
JAVA part two 5 41
eclipse compiler vs Installed JREs option 3 40
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

758 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now