1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
blagie [28]
3 years ago
8

How can multiple items be selected at the same time in aJList?

Computers and Technology
1 answer:
Karo-lina-s [1.5K]3 years ago
5 0

Answer:

JList.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION)

Explanation:

JList provides for simultaneous selection of multiple items upon setting the selection mode to MULTIPLE_INTERVAL_SELECTION. The API call for this purpose is:

jlist.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION)

Once the selection mode has been set , we can select set of items in the list as follows:

jlist.setSelectedIndices({1,3,5});

This will select the items with indices 1,3,5 in the list.

You might be interested in
You have a folder on your Windows desktop system that you would like to share with members of your development team. Users need
coldgirl [10]

Answer:

Modify the NTFS permissions on the folder.

Explanation:

While any user using a folder on his Ms Windows Operating System and he wanted to share that folder with his team members by which they can view and modify any file in that shared folder. Then, He has to provide Full Control permission to that folder by which they can only view that file but they cannot modify it.

So, He has to modify the NTFS permission on the following folder by which only those people can view that folder who has logged in over the server.

7 0
3 years ago
Select the correct navigational path to edit the name of a cell range using name manager
likoan [24]

Answer:

Formula, Name Manager, Edit

Explanation:

for work

7 0
3 years ago
Read 2 more answers
Enterprise software is designed for organizations to __________.
klemol [59]

Answer:

The goal of enterprise software is to enable the activities of large organizations, supporting a wide range of different user roles.

6 0
2 years ago
If you are trying move a hard drive from a non-working computer to a working computer for the purposes of accessing the data on
Llana [10]
You must have an administrator password before you can access the drive <span />
5 0
3 years ago
_____ consists of the instructions that direct the operation of the computer system and enable users to perform specific tasks,
kaheart [24]

Answer:

Software

Explanation:

6 0
3 years ago
Other questions:
  • Write a program that reads a 4-bit binary number from the keyboard as a string and then converts it into decimal. For example, i
    11·1 answer
  • Who is known as the father of computer? ​
    6·2 answers
  • Why transport layer is usingconnectionless services if network layer is providing connection oriented services?
    10·1 answer
  • Which is better Play Station Xbox or PC
    14·2 answers
  • How network diagram help in scheduling a project? Draw activity network diagram as per given
    7·1 answer
  • Output each floating-point value with two digits after the decimal point, which can be achieved as follows:
    7·1 answer
  • Write a program that creates a two-dimensional array named height and stores the following data:
    15·2 answers
  • Who would benefit from using self-driving cars
    10·2 answers
  • Can anyone talk to me?
    9·2 answers
  • What is one example of the use of an infrared sensor?
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!