Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » JScroolPane in a JTextArea
JScroolPane in a JTextArea [message #137059] Sat, 31 March 2007 14:17 Go to next message
Eduardo Hitek is currently offline Eduardo HitekFriend
Messages: 6
Registered: July 2009
Junior Member
Anyone knows how to put a scrool pane in a textarea using the VE?? and how
do i set for it rool automatic when the text get at the end of the
textarea??
thank!
Re: JScroolPane in a JTextArea [message #137304 is a reply to message #137059] Wed, 18 April 2007 14:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: briankimerer.yahoo.com

> Anyone knows how to put a scrool pane in a textarea
> using the VE?? and how
> do i set for it rool automatic when the text get at
> the end of the
> textarea??
> thank!
>

I believe that you would have to put the TextArea into the ScrollPane to make that work.

Brian
Re: JScroolPane in a JTextArea [message #137397 is a reply to message #137304] Tue, 24 April 2007 13:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: javaloco.argentina.com

Did you try with Jigloo?
is more easier
Re: JScroolPane in a JTextArea [message #137449 is a reply to message #137059] Sat, 28 April 2007 17:55 Go to previous message
Eclipse UserFriend
Originally posted by: marcelabx.gmail.com

You have to write the code
Example:

JTextArea txarea= new JTextArea();
JScrollPane pScroll = new JScrollPane(txarea, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);

then you add the jscrollpane at the panel
p1 = new JPanel(new BorderLayout());
p1.add(pScroll, BorderLayout.CENTER);
Re: JScroolPane in a JTextArea [message #615196 is a reply to message #137059] Wed, 18 April 2007 14:22 Go to previous message
Eclipse UserFriend
Originally posted by: briankimerer.yahoo.com

> Anyone knows how to put a scrool pane in a textarea
> using the VE?? and how
> do i set for it rool automatic when the text get at
> the end of the
> textarea??
> thank!
>

I believe that you would have to put the TextArea into the ScrollPane to make that work.

Brian
Re: JScroolPane in a JTextArea [message #615204 is a reply to message #137304] Tue, 24 April 2007 13:11 Go to previous message
Nicholas  is currently offline Nicholas Friend
Messages: 4
Registered: August 2009
Junior Member
Did you try with Jigloo?
is more easier
Re: JScroolPane in a JTextArea [message #615209 is a reply to message #137059] Sat, 28 April 2007 17:55 Go to previous message
Eclipse UserFriend
Originally posted by: marcelabx.gmail.com

You have to write the code
Example:

JTextArea txarea= new JTextArea();
JScrollPane pScroll = new JScrollPane(txarea, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);

then you add the jscrollpane at the panel
p1 = new JPanel(new BorderLayout());
p1.add(pScroll, BorderLayout.CENTER);
Previous Topic:problem with building VE from head
Next Topic:VE freezes when running from laptop battery
Goto Forum:
  


Current Time: Fri Apr 19 01:12:24 GMT 2024

Powered by FUDForum. Page generated in 0.02316 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top