Solved

scrollbars in JScrollPane (w/JTextArea) don't show

Posted on 2004-09-15
4
544 Views
Last Modified: 2006-11-17
I cannot get my scrollbars to display. The textarea displays and properly populates, but the scrollbars do not.  I am setting up my scrollpane and textarea as      


  JTextArea taCase = new JTextArea();
  JScrollPane jsp = new JScrollPane( taCase,
                    JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
                    JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
.
.
.
 contentPane.add( jsp );
 contentPane.add(taCase );

What am I missing?
thanks,
je
0
Comment
Question by:jesterepsilon
  • 2
  • 2
4 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
ID: 12067354
Try removing

>>contentPane.add(taCase );
0
 

Author Comment

by:jesterepsilon
ID: 12067761
Tried it, no luck
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 12067812
Can you post all the method in which you add the scroll pane?
0
 

Author Comment

by:jesterepsilon
ID: 12067833
CEHJ, I asked my question improperly.  I'm going to give you the points and then repost.
Thanks
je
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now