How to select multiple items in JComboBox

Is it possible to select multiple items in a JComboBox
if yes, then how to do?
If no , then is there any other way to acheieve this ?

Hi
ComboBoxModel extends ListModel and not ListSelectionModel, so i think JComboBox does not provide multiple selection. But u can try customizing ur combo box.. may be its possible.. not very sure
Shailesh

Similar Messages

  • How to select Multiple items in the dvt:pivotfilterbar?

    How to select Multiple items in the filters in the dvt:pivotfilterbar?

    To select multiple media and other files, it's not possible. You can do so in messages as directed.
    To select multiple files, connect to your PC and select them.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How to select multiple items in ListView?

    Is it possible to select multiple items (rows) in ListView? I'm able
    to select only one item at a time.
    I'm running Forte 30F2 on Windows NT 4.0.
    Thanks in advance,
    Ramarao
    Get Your Private, Free Email at http://www.hotmail.com

    Ramarao,
    I talked to Forte support about this recently and they had nothing but
    bad news.
    They said that you cannot select multiple rows in a listview, and that
    this is a
    feature that will be in the next release ( release 4 ).
    I then asked if it was possible for me to highlight a row manually ( and
    do the multiple
    select myself ), and they said that also wasn't possible. This is due
    to the fact that
    there are no displaynode properties that effect display attributes (
    like font or color ).
    They suggested that I try changing the smallicon to show rows that have
    been 'selected'.
    In other words, when you ctrl-click on any particular row, you could put
    an icon at the
    beginning of a row that shows that this row has been clicked on.
    I'm still working on this myself, so I will keep you posted.
    Jeff Pickett
    From: Ramarao P[SMTP:[email protected]]
    Reply To: Ramarao P
    Sent: Tuesday, March 24, 1998 6:22 PM
    To: [email protected]
    Subject: How to select multiple items in ListView?
    Is it possible to select multiple items (rows) in ListView? I'm able
    to select only one item at a time.
    I'm running Forte 30F2 on Windows NT 4.0.
    Thanks in advance,
    Ramarao
    Get Your Private, Free Email at http://www.hotmail.com

  • How to select multiple items when on safari?  Ex: when I have to choose countries where I have worked from a list.

    Hi Everyone
    Please advise: how do I select multiple items when on Safari? Ex. when I have to select multiple countries where I have worked.

    Hi Carolyn
    I am trying to select multiple items from a list on a particular website. I tried using the 'command' button, but to no avail.
    Grateful for any advice.

  • How do i select multiple items on a page using firefox on a mac?

    I am trying to to figure how to select multiple items (email addresses) using firefox on a mac. I use a web based manage my business. I am trying to send emails to multiple people.
    I have tried clicking on the first email and hold the command key while selecting the others. The selection just jumps.
    I tried holding the shift key and and it selects everything between the 1st and 2nd email address I want to use.
    I also tried the control key which just brings up a menu.
    Any help would be greatly appreciated.

    This may just be a limitation of the email site you are using. Is this a public site that I can test and try to reproduce the issue?

  • Selecting multiple items by choosing first and last to include all those in between...

    Hello all.
    I'm familiar with how to select multiple items by using the shift key and the command key to select either individual items, or a batch of items by clicking the first to be included and the last to be included, and having all those inbetween included as well, but for some reason this is not happening when I'm trying to select files in OS Lion. Regardless if I use the shift key or the command key, only a single item is selected, and for a range of items, I must click each individually.
    Is there a setting that I need to alter to select a batch? Am I missing something that they've changed from the previous OS?
    Thank you for your help!

    I can confirm that does still work in Lion as you describe, but at the moment, no fix to offer. I'm not aware of any setting. It just supose to work.
    I did find this article which may help.  But proceed at you own risk in deleting .plist files. It may do the trick, but also cause you to reset certain key functions.
    A simple thing to try first is to repair permissions. .../Applications/Utilities/Disk Utility.  Select your Volume/Repair Permissions

  • How do you select and move more than one bookmark at a time? Shift+Click does not select multiple items that are next to one another in a list because the item

    How do you select and move more than one bookmark at a time?
    Shift+Click does not select multiple items that are next to one another in a list because the items open in firefox before this happens.

    Use the bookmarks library. You may use Shift +Click, and Ctrl + Click to create groupings of selected bookmarks to drag and drop.
    * one method of opening the bookmarks library is keyboard shortcut <br /> Ctrl+Shift+B (Windows)
    *see also [[How to use bookmarks to save and organize your favorite websites]]
    *and [[Use bookmark folders to organize your bookmarks]]

  • How do I select multiple items?

    Happy New Year.  I am a new Mac user.  Recently switched from Windows.  How do I select multiple rows?  In windows you can CONTROL+click to select multiple items 1 at a time and SHIFT+click to select multiple items in groups.  I figured out to do COMMAND+click on Mac to select multiples 1 at a time.  I need to delete ALOT of rows.  How do I select multiples in groups? 
    Thanks.

    KarenSelena and BobHarris have given you the direct sequences.
    You can also select multiple disjoint ranges with combinations of ⌘ (command key) click and ⇑ (shift key) click, too.
    As you use OS X, you'll find a large number of ⌘ and ⇑ and ˄ (control key) and ⌥ (option key) clicks and shortcuts available (and some were mentioned earlier), and shortcuts such as ⌘ A (select all), ⌘ Z (undo) and a whole host of other shortcuts available.
    Here is Apple's Mac 101 / Mac Basics site, which has a good (and free) introduction toward learning to use your Mac.

  • HT1451 when editing info, how do i select multiple items to edit a group? For example, changing the artist name on multiple tracks at once?

    when editing info, how do i select multiple items to edit a group? For example, changing the artist name on multiple tracks at once?

    Same way you select multipl items anywhere else.
    Hold ctrl and click the items you want.
    If they are in consecutive order, click the 1st then Shift click the last.

  • How do I select multiple items on blackberry phone?

    How do I select multiple items on blackberry phone?

    Multiple items of what?
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • HT1343 How do I select multiple items?

    How do I highlight and select multiple items?

    Welcome to Apple Support Communities
    There are different ways to do what you want:
    Hold the Command key and press the items you want to select.
    Press Command and A keys to select all items in a folder.
    You can do the same with the mouse or trackpad by clicking in one part of the window and dragging it until all the items you want are highlighted

  • With a wired keyboard and a 2014 iMac I cannot select multiple items which are not next to each other

    I have recently changed from Windows 7 desktop to a new iMac running Mavericks.  I have chosen a wired keyboard as I like  the usual Delete key function.
    I cannot find out how to select several items which are not next to each other (e.g. words in Pages).  The well known method in Windows, which is repeated in the the Apple Finder Help screen, does not work.  Would be grateful for advice

    Hi JBowfin,
    If I am understanding your question correctly, I believe that I have an article that will address this question for you:
    Mac OS X 10.0: Use Command Key to Select Multiple Items in List and Column Views
    http://support.apple.com/kb/TA20396
    Take care, and thanks for visiting the Apple Support Communities.
    -Braden

  • Selecting multiple items in a listbox

    Is it possible to select multiple items in a listbox and insert them into an array. Currently, to get around not knowing if this is possible, I have two listboxes. One has items available and the other has items you want to use. I can either double click or press an add/remove button to move items between the two listboxes. The problem there is that when I move an item from one to the other it puts it at the end of the list. I want to keep the lists in order by channel. My items structure is as follows: "'channel number' 'Channel name'" ie "1 Date\Time"
    I can sort this list but it sorts by the first character. If I have channels 1-30. It sorts to 1,11,12,13,14,...,3,30. I want 1,2,3,...,30 I would prefer to select multiple items in the listbox but if I can't, how can I do a better sort with my current method of two listboxes.
    Thanks,
    AJL

    Hi together,
    Since there is no multiple selection in Enumlistbox in SUD dialog, i wanted to use a table.
    But i couldnt get the table to show the values from a user variable definition file (dynamic enumeration list). I fail to assign one column of the table to that user variable.
    Below i attach the corresponding files:
    where could be the problem?
    And i was looking through DIAdem help file to look for information, how to define different types of user variables (for example vectors) but i couldnt find enough information. Do you have any document or examples where i can see the defining and usage of different type variables in different controls in SUD dialogs ?
    thanks in advance
    kaan
    Attachments:
    dynamic_enumeration_for_table.zip ‏2 KB

  • Restrict selecting multiple items across two ListBoxes

    Hello,
    I'd like to know, how to restrict user from selecting multiple items across two different ListBoxes.
    Reason I need this is I want to pass that selected item forward using only one button.
    Something like
    if Lb_Regular.hasSelected = true then
    passfunction(Lb_Regular.SelectedItem)
    elseif Lb_Patch.hasSelected = true then
    passfunction(Lb_Patch.SelectedItem)
    else
    Debug.WriteLine("Nothing is selected")
    Thanks in advance,
    TheCreepySheep

    Hi,
     You can try it like this.
    Public Class Form1
    Private Sub ListBox1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged
    If ActiveControl Is ListBox1 Then
    ListBox2.SelectedIndex = -1
    End If
    End Sub
    Private Sub ListBox2_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListBox2.SelectedIndexChanged
    If ActiveControl Is ListBox2 Then
    ListBox1.SelectedIndex = -1
    End If
    End Sub
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    If ListBox1.SelectedIndex > -1 Then
    MessageBox.Show("Listbox1 has item selected - " & ListBox1.SelectedItem.ToString)
    ElseIf ListBox2.SelectedIndex > -1 Then
    MessageBox.Show("Listbox2 has item selected - " & ListBox2.SelectedItem.ToString)
    Else
    MessageBox.Show("No Item Is Selectd")
    End If
    End Sub
    End Class
    If you say it can`t be done then i`ll try it
    Thanks! Just what I wanted!

  • How to select multiple values from a listbox

    Hi,
    I have a list box on my UI which is not allowing me to select multiple values
    I want to use multi select list box .. When i go to source of UI component and change that to select many listbox my page is not rendering it is giving error
    When i drag & drop the component i am unable to drop it as a multi select list box that option is not coming.
    I am working on Jdev 11.1.1.3 and I am using ADF/BC components
    How to select multiple values from a listbox ?
    Thanks,

    Hi,
    I want to use multi select list box .. When i go to source of UI component and change that to select many listbox my page is not rendering it is giving errorank
    And what is the error ?
    Frank

Maybe you are looking for

  • Why Window doesn't appear back ???

    Hi Experts //get the repository content at runtime of the Web-Dynpro- // Window “AddressbookWindow” IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI .getComponentInfo() .findInWindows("AddressbookWindow"); //create the “AddressbookWindow” IWD

  • Business Connector related question

    When I am in Business Connector and trying to right click on Trident package to Unlock it so I cab modify it and it gives me the following error: Java.lang.NullPointer.Exception When I click on more details I get – Server Error occurred Any ideas wha

  • Co-Product Palnning issue

    Hi PP Gurus Just one help required on one issue My client requirement is regarding co-product planning I will explain the scenario Suppose we hav etwo products A & B  which are finished materials. A Has component X in its BOM B has component Y in its

  • Long delay after startup before screen brightness, volume buttons work

    I just started noticing this in the last few days. After I start up, it will be 4 or 5 minutes before I can adjust the screen brightness or volume using the F keys. Also, I noticed that I can't do a "Force Quit" during this time - either by doing the

  • Multiple streams and sockets

    Currently I have client/server software that sends messages to each other. These messages are delimited strings. Now I have a need to make one of the delimited fields binary data. I am using a BufferedReader and BufferedWriter to read the strings. Ca