File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

setting initial value of combobox

 
Anthony Leroy
Greenhorn
Posts: 20
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
g'day,
is there a way to set the initial value of a combobox in a form? Let's say a combo box has 3 options: optA, optB and optC, in that order. Ordinarily, optA will be the default selected option. How can I make optC be the displayed option without rearranging the order of the options.
thanks,
Ant
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
g'day also,
Are we talking select boxes?

Add the word 'SELECTED' next to the option

will select optC without changing the order.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic