Make a JScrollPane

Description

Computer Programming (Java) Note on Make a JScrollPane, created by desnunan on 29/03/2014.
desnunan
Note by desnunan, updated more than 1 year ago
desnunan
Created by desnunan over 10 years ago
43
0

Resource summary

Page 1

Make a JTextArea (or JList similarly) have a vertical scrollbar onlyJScrollPane scroller = new JScrollPane(text);text.setLineWrap(true);scroller.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);scroller.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);panel.add(scroller);

New Page

Show full summary Hide full summary

Similar

Java Week 5 Object Oriented Programming
Troy Bowlin
Making a GUI
desnunan
Java Practice 1
Ummm No
PEGA CSSA Prep
Wendell Phipps
Getting a User Event
desnunan
Listener
desnunan
Paintable Widgets
desnunan
Handling Swing Component Events
desnunan
Playing with Swing Components
desnunan
Java Practice 2
Ummm No
Servion - Java Questionnaire
rohit.benedict