aspose file tools*
The moose likes Servlets and the fly likes setting initial value of combobox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "setting initial value of combobox" Watch "setting initial value of combobox" New topic
Author

setting initial value of combobox

Anthony Leroy
Greenhorn

Joined: Aug 02, 2001
Posts: 20
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

Joined: Mar 06, 2001
Posts: 13459

g'day also,
Are we talking select boxes?

Add the word 'SELECTED' next to the option

will select optC without changing the order.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: setting initial value of combobox