File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Multiple selection in java.awt.List Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Multiple selection in java.awt.List" Watch "Multiple selection in java.awt.List" New topic

Multiple selection in java.awt.List

Shanmuga Raja

Joined: Feb 16, 2002
Posts: 1
Hi Friends,
I wanna select multiple items in a list only when the CTRL Key is down. I cannot also use the setMultipleMode() function ... I want to select multiple items only when CTRL Key is down and without using the setMultipleMode().
If u have a solution please help me.

Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
Two things:
1) Your name violates the naming standards that you agreed to when you registered. Please change your display name to be your real first name - space - your real last name.
2) Don't you think this would be better asked in the Swing/AWT forum? I am moving this there.

Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

Ummm... why can't you use setMultipleMode()... that's what it's there for...


Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I agree. Here's the link:
subject: Multiple selection in java.awt.List
It's not a secret anymore!