Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 605
  • Last Modified:

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

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
jesterepsilon
Asked:
jesterepsilon
  • 2
  • 2
1 Solution
 
CEHJCommented:
Try removing

>>contentPane.add(taCase );
0
 
jesterepsilonAuthor Commented:
Tried it, no luck
0
 
CEHJCommented:
Can you post all the method in which you add the scroll pane?
0
 
jesterepsilonAuthor Commented:
CEHJ, I asked my question improperly.  I'm going to give you the points and then repost.
Thanks
je
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now