Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 233
  • Last Modified:

Building Swing GUIs with an IDE

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
bass20
Asked:
bass20
  • 6
  • 5
  • 2
2 Solutions
 
zzynxSoftware engineerCommented:
>> 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
 
bass20Author Commented:
I already went through that tutorial, I wanted something that would cover some more Swing classes...
0
 
zzynxSoftware engineerCommented:
All the classes you need are available in netBeans From Editor
Maybe this helps: http://java.sun.com/docs/books/tutorial/uiswing/
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

 
bass20Author Commented:
I have all the JAva documentation on my computer, that's not what I'm looking for...
0
 
valcarCommented:
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
 
zzynxSoftware engineerCommented:
>> 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
 
bass20Author Commented:
"What would you want more?"

What I wanted more is precisely what I asked on this thread...
0
 
bass20Author Commented:
I agree with you valcar, thank you for your input.
0
 
zzynxSoftware engineerCommented:
:)
0
 
bass20Author Commented:
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
 
zzynxSoftware engineerCommented:
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
 
bass20Author Commented:
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
 
valcarCommented:

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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

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.

  • 6
  • 5
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now