igorpanggabean9288 igorpanggabean9288
  • 20-08-2019
  • Computers and Technology
contestada

The item that is clicked in a JList can be retrieved using the _____ method of JList.

getValue
getSelectedValue
getValueSelected
getData

Respuesta :

Branta Branta
  • 21-08-2019

Answer:

getSelectedValue

Explanation:

The item that is clicked in a JList can be retrieved using the getSelectedValue method of JList.

This returns the first selected value in the list. In case of list supports multi selection, it returns the value with the lowest index. In case nothing is selected in the list, getSelectedValue returns null.

The return type of this method is the same as the datatype of the contents of the list. For example, If the list contains String data , the return type will be String.

Answer Link

Otras preguntas

Which factor does seidman include as contributing to the poltical success of countries like britain?
Which of the following events or sentiments was NOT influenced by nationalism?
KWhich best describes relations between native Americans and the us government between 1850 and 1880
What is the difference between an irrational number and an integer? (PLZ HELP ME ANSWER ASAP!!!! All help is appreciated! :D)
How do you write 50,000 in scientific notation?
Why did most Northerners support tariffs and most Southerners opposed him?
jacob says that an even number plus an odd number equals an odd number.do you agree?explian.
Which of the following is an example of a decomposer? a. trees b. coyotes c. lizards d. bacteria
What term was used to describe roosevelts policies and how accurate was it?
Is the following a proportion? Yes or no? 6/9 = 14/21