Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6934887
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:01:13+00:00 2026-05-27T12:01:13+00:00

I have a jcombobox in my application. and i want it to support multiple

  • 0

I have a jcombobox in my application.
and i want it to support multiple selection (like it do in a jlist).
is there any code example?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T12:01:15+00:00Added an answer on May 27, 2026 at 12:01 pm

    I think it’s not possible, unless you use a JList, like you said.

    The JComboBox API reports:

    The user can select a value from the drop-down list, which appears at
    the user’s request.

    And a JComboBox tutorial:

    Lists are not terribly attractive, but they’re more appropriate than
    combo boxes when the number of items is large (say, over 20) or when
    selecting multiple items might be valid.

    Update:

    I reviewed this answer, because actually it’s “possible” to do that using a ListCellRenderer, adding a checkbox to each item. Please consider this answer to implement this “solution”.

    However, I don’t think it’s a good idea for the following reasons:

    1. there’s a control like a JList that allows multiple selection;
    2. a JComboBox control is designed just for single item selection;
    3. it doesn’t make sense to me to still use a JComboBox control and allow a multiple selection.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WPF application. In one window there is a combobox..and I want
In Winform application I have a class with 2 properties and I want the
Currently I have the start-key for my vb.net application hardcoded like this: GetAsyncKeyState(Keys.F2) Where
So let's say I have an MVVM application and I want the user to
I want to have a default style for all TextBlock controls in my application
As I have migrated my application to Flex 4 recently, I want to utilize
I have seen this question: Are there any decent UI components for touch screen
I have a flex application which connects to a database. There are several servers
I'm designing a multilingual application using .resx files. I have a few files like
In my WPF application, I have a collection to which I would like to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.