Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problems with this code

 
Wolfgang Obi
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Craig Wood
Ranch Hand
Pie
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

[ December 07, 2005: Message edited by: Craig Wood ]
 
Wolfgang Obi
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@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 ) ???
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic