wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes JScrollPane 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" Watch "JScrollPane" New topic
Author

JScrollPane

Felipe Walker
Ranch Hand

Joined: Sep 23, 2003
Posts: 41
Why won't the JScrollPane work. I know I am missing something but just keep overlooking it.

[ October 02, 2003: Message edited by: Cindy Glass ]
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Moved to the Swing Forum.


"JavaRanch, where the deer and the Certified play" - David O'Meara
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24166
    
  30


c.add(scroller, BorderLayout.CENTER);
c.add(display_area, BorderLayout.CENTER);

First you add the JScrollPane containing the JTextArea to the window (correct) and then you add the bare JTextArea itself in the same position, effectively removing the JScrollPane from the window (wrong.) Just delete the second line above.


[Jess in Action][AskingGoodQuestions]
Felipe Walker
Ranch Hand

Joined: Sep 23, 2003
Posts: 41
Thanks, It works
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JScrollPane
 
Similar Threads
Can't resolve compiler error message
How do i use monitors?
Changing an arrays size
count of operands
count of operands