File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Listbox" Watch "Listbox" New topic
Author

Listbox

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: http://aspose.com/file-tools
 
subject: Listbox
 
Similar Threads
selectManyListbox
Swings
logic:iterate and onChange
Swings
SelectManyListBox is acting really weird