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 6718329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:57:22+00:00 2026-05-26T08:57:22+00:00

In the Swing JFileChooser you can select multiple files by clicking on the first

  • 0

In the Swing JFileChooser you can select multiple files by clicking on the first file, holding down the mouse button and dragging.

Is it possible to enable this method of selecting multiple files in JList too? I have it set to MULTIPLE_INTERVAL so I can select multiple files by holding down shift, but dragging only selects one file.

  • 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-26T08:57:23+00:00Added an answer on May 26, 2026 at 8:57 am

    A JList does not directly support selection by dragging. Also, the file chooser does not seem to support selection by dragging either (at least in the metal or Windows look and feels) unless your are talking about the native file chooser on Windows (in Java 7 it supports multiple selection mode).

    Selection by dragging has to be implemented by yourself with a mouse listener. See here for an example that even shows a rubber band.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a question about the JFileChooser in Swing. I'm trying to get multiple
I have implemented JFileChooser of Java swing successfully. As the implemented JFileChooser gives file
What Swing class can I use to implement something like this? Add To List
If you open a dialog in Swing, for example a JFileChooser, it goes somewhat
How would I link the file choosen from a JFileChooser to a file and
Good afternoon all, I have an instance of a javax.swing.JFileChooser and I added a
I'm writing a program to allow a user to select a csv file, with
I have a JTextField in my Swing application that holds the file path of
To create an Arabic JFileChooser (RTL) I use the following: MyFileChooser: import javax.swing.JOptionPane; import
I face the following strange problem while using JFileChooser package sandbox; import java.io.File; import

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.