scrollable text [message #236425] |
Wed, 27 June 2007 14:39 |
Eclipse User |
|
|
|
Originally posted by: alexjaquet.gmail.com
Hi again,
Wich component should I use for scrollable text ? a Scrollable pane ?
Thanks
|
|
|
Re: scrollable text [message #236467 is a reply to message #236425] |
Thu, 28 June 2007 08:39 |
Eclipse User |
|
|
|
Originally posted by: alexjaquet.gmail.com
I've tryed but doesn't work
public TextInput() {
setBorder(new LineBorder(1));
contentPane = new ScrollPane();
add(contentPane);
Viewport viewport= new Viewport();
viewport.setContentsTracksHeight(true);
contentPane.setViewport(viewport);
TextFlow tf = new TextFlow("this is a simple test");
FlowPage fp = new FlowPage();
fp.add(tf);
viewport.add(fp);
contentPane.setView(fp);
}
what I'm doing wrong ?
thx
|
|
|
Re: scrollable text [message #236470 is a reply to message #236467] |
Thu, 28 June 2007 10:42 |
Eclipse User |
|
|
|
Originally posted by: alexjaquet.gmail.com
This is a multi-part message in MIME format.
--------------050404000309080501000407
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Alexandre Jaquet a
|
|
|
Powered by
FUDForum. Page generated in 0.03368 seconds