Re: AWT ScrollPane

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


Date: Sun, 30 May 2004 02:05:49 +0200


> >I suppose since TextArea can do it, supposedly I could to, building
> >scrollbars into my custom component the same way TextArea did.
>
> I am puzzled to pieces. I looked at the code TextArea uses to handle
> scrollbars, and it seems to record the visibility in a private
> variable and does nothing with it, but expose it in a
> getScrollbarVisibility method that nobody ever calls.
>
> Perhaps the magic occurs deep in the peers or native gui.
>
> I will try the same trick and see if the magic happens for me too.
>
I don't believe that this magic works, because you have to load some
native library and this can work only from some privileged package ;-)

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


Relevant Pages

  • Re: AWT ScrollPane
    ... >scrollbars into my custom component the same way TextArea did. ... getScrollbarVisibility method that nobody ever calls. ...
    (comp.lang.java.gui)
  • Re: What are the colors?
    ... Microsoft MVP FrontPage ... > You're right that scrollbars are only supported on IE ... > "Steve Easton" wrote in message ... >>> probably modify it to get the default colors back for your textarea. ...
    (microsoft.public.frontpage.programming)
  • Re: What are the colors?
    ... Be aware that colored scrollbars will not validate. ... Microsoft MVP FrontPage ... My problem is that the textarea colors/scrollbar on my pages also>> have those colors. ...
    (microsoft.public.frontpage.programming)
  • Re: What are the colors?
    ... They need to be applied to html rather than body. ... You're right that scrollbars are only supported on IE ... > Microsoft MVP FrontPage ... >> probably modify it to get the default colors back for your textarea. ...
    (microsoft.public.frontpage.programming)