aspose file tools*
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
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "problems with this code" Watch "problems with this code" New topic

problems with this code

Wolfgang Obi
Ranch Hand

Joined: Dec 05, 2005
Posts: 134
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 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

Joined: Jul 08, 2003
Posts: 24166

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
thanks so much for the help!'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:
subject: problems with this code
Similar Threads
Reg: Running Swing in Browser
Timer problem
I can't seem to get the hang of JFrame
Java Software Solutions Graphics Example 3.9 noob help
Java Board Game