The scrollbar is unable for uneditable JTextArea?
posted 13 years ago
Many thanks to Cindy Glass and Dirk Schreckmann. I nearly finished my program. Here is the last problem of it. I have a Frame, which merely shows how to use my GUI. I set the textarea on this frame to be uneditable and the text size outgrows the height of the frame. I, therefore, want to add vertical scrollbar to this frame. But I can't drag the scrollbar even when I set verticalScrollPolicy of JScrollPane to be JScrollPane.VERTICAL_SCROLLBAR_ALWAYS. How can I make the scrollbar available? Here is the code: