Asked by Clarise Gindap on Apr 26, 2024
Verified
Set policies for the scroll bar created in number 3 above.
Scroll Bar Policies
Settings that determine when and how scroll bars are displayed in a GUI component, typically including options like always, never, or as needed.
- Comprehend the execution and control of scroll bars within Java.
Verified Answer
JS
jaleesa seslerMay 01, 2024
Final Answer :
scrolledText.setHorizontalScrollBarPolicy
JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
scrolledText.setVerticalScrollBarPolicy
JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
scrolledText.setVerticalScrollBarPolicy
JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
Learning Objectives
- Comprehend the execution and control of scroll bars within Java.