Which of the following statements creates a horizontal slider component with a minimum value of 0, a maximum value of 50, and an initial value of 25?

A) JSlider slider =
new JSlider(0, 50, 25, JSlider.HORIZONTAL);
B) JSlider slider =
new JSlider(JSlider.HORIZONTAL, 0, 50, 25);
C) JSlider slider =
new JSlider(JSlider.HORIZONTAL, 25, 0, 50);
D) JSlider slider =
new JSlider(JSlider.HORIZONTAL, 50, 0, 25);


B) JSlider slider =
new JSlider(JSlider.HORIZONTAL, 0, 50, 25);

Computer Science & Information Technology

You might also like to view...

If two classes have an IS_A relationship, we should use:

A. composition B. polymorphism C. inheritance D. static binding

Computer Science & Information Technology

What information might an operating system deposit in a log file?

What will be an ideal response?

Computer Science & Information Technology

________ slides do not display during a presentation but remain as part of the presentation

Fill in the blank(s) with correct word

Computer Science & Information Technology

A class that will be placed in a nondefault package for others to use must be private.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology