Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Building Swing GUIs with an IDE

Posted on 2004-10-28
13
Medium Priority
?
232 Views
Last Modified: 2011-09-20
Hello,

I'm having trouble finding some good tutorials on building GUIs with an IDE; I'm currently using NetBeans but their tutorials are too simple for what I need. I'm not very interested in coding everything, I'd prefer the IDE to do some work for me as I'm only using Java for building the interface for a Prolog program. Can anyone post some good tutorials on, say, building Swing applications with Netbeans/JBuilder/any other?

Thanx in advance! :)
0
Comment
Question by:bass20
  • 6
  • 5
  • 2
13 Comments
 
LVL 37

Expert Comment

by:zzynx
ID: 12437034
>> I'm currently using NetBeans but their tutorials are too simple for what I need.
Nevertheless the tutorial http://www.netbeans.org/kb/articles/form_getstart36.html is all you need. Just extrapolate.
0
 
LVL 1

Author Comment

by:bass20
ID: 12437367
I already went through that tutorial, I wanted something that would cover some more Swing classes...
0
 
LVL 37

Assisted Solution

by:zzynx
zzynx earned 60 total points
ID: 12437439
All the classes you need are available in netBeans From Editor
Maybe this helps: http://java.sun.com/docs/books/tutorial/uiswing/
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 1

Author Comment

by:bass20
ID: 12437703
I have all the JAva documentation on my computer, that's not what I'm looking for...
0
 

Accepted Solution

by:
valcar earned 60 total points
ID: 12439389
I am unsure of how many Java IDE's you have used, but the most they will generally do for you is let you lay out elements (clearly add the code for them) and create stubs for actions on those elements.   I don't know exactly how much work you would like them to do for you but I don't think you will find what you want.  There is no IDE for Java that I know of that appoaches something like what the IDE for Visual Basic does for you.
0
 
LVL 37

Expert Comment

by:zzynx
ID: 12441827
>> I wanted something that would cover some more Swing classes.
You do know the netBeans menus
       Window > GUI editing > Palette
and
       Window > GUI editing > Inspector
don't you?
What would you want more?
0
 
LVL 1

Author Comment

by:bass20
ID: 12443684
"What would you want more?"

What I wanted more is precisely what I asked on this thread...
0
 
LVL 1

Author Comment

by:bass20
ID: 12443715
I agree with you valcar, thank you for your input.
0
 
LVL 37

Expert Comment

by:zzynx
ID: 12443774
:)
0
 
LVL 1

Author Comment

by:bass20
ID: 12495026
I remain with a problem on this; I'm currently using JBuilder and Netbeans (whatever fits better ;P) but I'm not sure I can do what I need with Swing; I need some class that looks like the JTable but that will allow me to select individual cells and set their background to an image - from what I read on the API JTable doesn't do this, is there any other class that does?


Thanx in advance! :)
0
 
LVL 37

Expert Comment

by:zzynx
ID: 12497967
JTable is able to do that!
That is: you'll have to write your own table cell renderer. Then you can "render" each cell the way you want.
0
 
LVL 1

Author Comment

by:bass20
ID: 12499865
Hum...I've been through the documentation (http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#renderer) again...have you ever seen it done? Setting an image (some jpeg or gif) as a cell background?
0
 

Expert Comment

by:valcar
ID: 12500036

Check out http://javaalmanac.com/egs/javax.swing.table/CustRend.html 
 for an example of  a custom CellRenderer.  Where it calls setText(), instead just call setIcon() on the ImageIcon of the Image you want to display.
 
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses
Course of the Month13 days, 3 hours left to enroll

580 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