Re: AWT ScrollPane

From: ak (spam_at_imagero.com)
Date: 05/29/04


Date: Sat, 29 May 2004 12:18:15 +0200


> >no, but you can use ScrollBar.
>
> I thought that was just something used internally by ScrollPane. Do
> you have any sample code?

if you use TextArea, then just create TextArea with only 1 ScrollBar:
int rows = 100;
int columns = 400;

TextArea ta = new TextArea("some text", rows, columns ,
TextArea.SCROLLBARS_VERTICAL_ONLY);

-- 
http://uio.dev.java.net
http://reader.imagero.com


Relevant Pages

  • Re: Color scrollbar
    ... Declare a style for the textarea element in your CSS file. ... some more reading and try to get an understanding what CASCADING actually ... I recently added a textarea on my page and the scrollbar on ...
    (microsoft.public.frontpage.programming)
  • textarea styled as a textbox
    ... only the scrollbar does not show. ... get at text to the right, beyond the borders of the textarea. ... get this textbox type of overflow behaviour? ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: What are the colors?
    ... tells you how to give different color styles to your textareas; ... probably modify it to get the default colors back for your textarea. ... Spider Web Woman Designs ... > I have a problem with my scrollbar default colors. ...
    (microsoft.public.frontpage.programming)
  • Scrolling textarea with JS in Safari
    ... I'm trying to keep the scrollbar positions of a textarea and a div in ... For some reason the scrollTop property of a textarea seems ... always to be zero in Safari. ... is there another way to keep the scrollbar of a div at ...
    (comp.lang.javascript)
  • Scrollbar to bottom of textarea
    ... I have a JTextArea attached to a JScrollPane. ... If I keep appending text ... to the textarea, is there a simple way to move the scrollbar down so ...
    (comp.lang.java.programmer)