Solved

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

Posted on 2004-09-15
4
562 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
This video teaches viewers about errors in exception handling.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

808 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