Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » scrollable text
scrollable text [message #236425] Wed, 27 June 2007 14:39 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:displaying text with textFlow
Next Topic:coordinate systems
Goto Forum:
  


Current Time: Tue Apr 23 13:51:29 GMT 2024

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

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

Back to the top