This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sun Java Studio Creator : dropdown value ..

 
Naveen Mishra
Ranch Hand
Posts: 75
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
this is my day 1 with Sun Java Stdio Creator.

I've a dropdown filled with data , a textfield and a button .
as soon as i click on button I get the index of the list item selected.
i need value ( displayed text indeed).

my code is ...
////


public String button1_action() {
// User event code here...
textField1.setValue("Hello , "+ dropdown1.getValue());

return null;
}
////
any change in the code ???

Thanks .
 
Darrin Smith
Ranch Hand
Posts: 276
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Naveen Mishra:
Hi.
this is my day 1 with Sun Java Stdio Creator.

I've a dropdown filled with data , a textfield and a button .
as soon as i click on button I get the index of the list item selected.
i need value ( displayed text indeed).

my code is ...
////


public String button1_action() {
// User event code here...
textField1.setValue("Hello , "+ dropdown1.getValue());

return null;
}
////
any change in the code ???

Thanks .



You should probably post that question here: http://swforum.sun.com/jive/forum.jspa?forumID=123&start=0
 
Naveen Mishra
Ranch Hand
Posts: 75
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Darrin for ur valuable suggestion.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic