File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes linking items in JComboBox to events/windows Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "linking items in JComboBox to events/windows" Watch "linking items in JComboBox to events/windows" New topic
Author

linking items in JComboBox to events/windows

michael sifuma
Greenhorn

Joined: Feb 13, 2008
Posts: 2
Hi.
I am new to java, and took the plunge by downloading netbeans 6.0(and j2se, jdk1.5).
I've learnt to create basic desktop apps,but get very frustrated by not being able to link items in say a JComboBox to their various JTabbedPanes or new windows(other containers),which I can then go on designing to create a useable application.Not necessarilly web apps. Not even applets. Just programs to run on a stand-alone pc.
The idea of struts only serves to throw me off-track. I tend to feel I'm deviating from what I reallyset out to do in the begining:learning java programming. Is struts the only way of doing this?
Please help me out here.
mike, kenyajavascript: x()
[ February 20, 2008: Message edited by: Bear Bibeault ]
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Well, your first problem was downloading netbeans to try and learn java. Also note that you are writing desktop client applications and Struts has nothing to do with the desktop. Struts is a web based MVC framework for developing web applications.

The best thing for you to do is slow down a bit. You've asked a quite scattered question and there are too many things to comment on. Your best bet at this point is to take one issue and ask about that. For example:

but get very frustrated by not being able to link items in say a JComboBox to their various JTabbedPanes or new windows(other containers),which I can then go on designing to create a usable application


If you could elaborate on that a bit more, give us some background to the application, and pinpoint a more precise point of confusion we can begin to help. It also might help to read through some of the links located here which discusses important information about how to ask question on JavaRanch.


GenRocket - Experts at Building Test Data
michael sifuma
Greenhorn

Joined: Feb 13, 2008
Posts: 2
Hi.
Fisrt things first. I bought the book �Mastering Java2 (J2SE 1.4) by John Zukowski.Complete with a companion cd. That's what i started learning Java from. Then went on to download netbeans hoping to make life easier, and the learning curve better.
What i am working on is a small farm-office application where i have a list of activities/farm operations in a JComboBox (too big for JButtons) in a JDesktopPane. From this list,i would like to be able to select an entry/item and have the programm open a new JTabbedPane or JDesktopPane which will contain the appropriate data for the activity.
Any help in this direction will be grestly appreciated.
Mike
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: linking items in JComboBox to events/windows