wood burning stoves*
The moose likes Swing / AWT / SWT and the fly likes problems with this code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "problems with this code" Watch "problems with this code" New topic
Author

problems with this code

Wolfgang Obi
Ranch Hand

Joined: Dec 05, 2005
Posts: 134
hi,
like i said in my first post, I'm very new to java.
I've been tinkering on this programme for a while now.
what i want to create is an applet with :

1 JComboBox to the left of the screen....directly under this:
2 JButtons with texts on them to the left of the screen (one over the other)

and to the right of the screen a JLabel.

if a text is selected on the JCombo box...a click on a JButton should make the text in the JComboBox + the text in the JButton to appear in the JLabel....

if possible all this should be realised within a JPanel....

right now, i seem to have a general idea of what im doing, but i dont know how to link the various classes, methods objects etc together to produce a sensible programme.....im not making any progress any more.

can someone please look at this code, and tell me what improvements i need to make??? I'd be more than grateful...thanks.


[ December 06, 2005: Message edited by: uche obi ]
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

Since this seems to be a question about using Java LayoutManagers, I'm going to move this to our Swing/AWT/JFace/SWT forum, where it's right on topic.


[Jess in Action][AskingGoodQuestions]
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535

[ December 07, 2005: Message edited by: Craig Wood ]
Wolfgang Obi
Ranch Hand

Joined: Dec 05, 2005
Posts: 134
@Craig...
thanks so much for the help!.....it's much appreciated.

still refering to the above applet.... is it of any advantage to use the "choice" method in place of the array for the JComboBox?... (i.e. String[] tempstrings ) ???
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problems with this code
 
Similar Threads
Timer problem
Java Board Game
Reg: Running Swing in Browser
I can't seem to get the hang of JFrame
Java Software Solutions Graphics Example 3.9 noob help