This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Listbox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Listbox" Watch "Listbox" New topic


JayaSiji Gopal
Ranch Hand

Joined: Sep 27, 2004
Posts: 303
I have a listbox with 10 values.
I select a value and click the > button. The selected value moves to the Second listbox.
Now, if i select the value from the second listbox and click <, I want the value to go back to the original position in the first listbox. Now, it is getting appended to the end of the list.

Any ideas on how this can be done?

SCJP 1.4, SCWCD 1.4<br /> <br />Thanks in advance!<br />Jayashree.
Niki Nono
Ranch Hand

Joined: Mar 20, 2005
Posts: 256
maybe you can set the position in one of the attributes of select and then use this to figure out where to fit it in whil moving back.

this attribute will contain the position in the first list box and will be used only for reentry purposes.

just a guess but i think it will work with some r & d.

Life called,so here I am.<br />Cheers<br />Niki.:-)
I agree. Here's the link:
subject: Listbox
It's not a secret anymore!