Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Sun Java Studio Creator : dropdown value ..

 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 .
 
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Darrin for ur valuable suggestion.
 
reply
    Bookmark Topic Watch Topic
  • New Topic