File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes JSCROLLPANE and JTEXTAREA Problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JSCROLLPANE and JTEXTAREA Problems" Watch "JSCROLLPANE and JTEXTAREA Problems" New topic
Author

JSCROLLPANE and JTEXTAREA Problems

Pedro Neves
Ranch Hand

Joined: Mar 07, 2012
Posts: 64
Hello. I'm experiencing some problems with JScrollPane and TextAreas. Can somebody help me?

I have this




If i do this



Nothing appears on the ScrollBar1 (that actualy is a JScrollPane).

Please help me.


Kind regards
Tony Docherty
Bartender

Joined: Aug 07, 2007
Posts: 1939
    
  28
Why are you calling setLayout(null) and setVisible(true) on all the components and in some cases twice?

JScrollPane is a collection of other components and whilst I haven't looked at the internals to see how it works I suspect it uses a layout manger to layout these components.
Pedro Neves
Ranch Hand

Joined: Mar 07, 2012
Posts: 64
Tony Docherty wrote:Why are you calling setLayout(null) and setVisible(true) on all the components and in some cases twice?

JScrollPane is a collection of other components and whilst I haven't looked at the internals to see how it works I suspect it uses a layout manger to layout these components.



You were right.. it was that ;) thanks a lot
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSCROLLPANE and JTEXTAREA Problems
 
Similar Threads
Query on ProgressBar(Help plz)
The textarea is not getting value
ActionListener problem
How to add two buttons in each row?
Errors with array and JTextArea and ComboBox