[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Building Swing GUIs with an IDE

Posted on 2004-10-28
13
Medium Priority
?
229 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

656 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