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
Which wildcard characters will return a single character when using the Find dialog box?
scoray [572]

Answer:

?

Explanation:

It is the "?" character. When we type in the ? in the regular expression, then it means that it will be replaced by a single character. And when we type *, then we mean there can be multiple, and any number of characters. And this is what is meant by these two wildcard characters. Hence, the correct option here is ?.

Example: ?op can be top, pop, etc, and we can see here that, ? is replaced by only one character each time.

7 0
3 years ago
Read 2 more answers
What is the error in the following line: (1)<br><br> age=int(input("Enter your age:")
Ainat [17]

Answer:

14

Explanation:

6 0
3 years ago
Which would be the best and worst answer choices?
jeyben [28]

Answer:

option 3

Explanation:

4 0
3 years ago
What is the output of the following program fragment? int alpha [ 5 ] = {100, 200, 300, 400, 500}; int i; for (i = 4; i &gt; 0;
masha68 [24]
Out put:
500 400 300 200
3 0
4 years ago
What is intended to legally protect the intellectual property rights of organizations or individuals to creative works, which in
GalinKa [24]

Answer:

The correct answer to the following question will be "Copyright".

Explanation:

This is a form of an intellectual estate which gives the publisher exclusive privileges to print, distribute, and use.

  • The above ensures that almost no-one else can use or publish certain material generated by the author without any of the author's permission.
  • When a person makes work through his or her job, the company holds the copyright.

So, it's the right answer.

8 0
3 years ago
Other questions:
  • What does the “Rooms” feature of FriendFeed do? Allows users with common interest to share their views and streams Allows users
    10·1 answer
  • A collection of methods that can be used by any class, as long as the class provides a definition to override the collection's a
    5·1 answer
  • The​ ________ is a​ c-shaped structure that curves around the pancreas and stomach
    9·1 answer
  • What is true about investments and risk
    14·1 answer
  • As soon as I can, I will make a discord server for all brainly users. Would anyone like to join it once its set up? (only the di
    8·1 answer
  • An actual printout of computer data always satisfies the best evidence rule?
    12·1 answer
  • 2.20 Write an expression involving a three-letter string s that evaluates to a string whose characters are the characters of s i
    6·1 answer
  • Write javascript code for the form that appears in the image below. you are expected to add validation to the name field, email
    10·2 answers
  • Why linked list is better than an array?
    7·1 answer
  • A diminished triad can be indicated by
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!