Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #20789 > unrolled thread
| Started by | emf <emfril@gmail.com> |
|---|---|
| First post | 2012-12-29 01:57 -0500 |
| Last post | 2012-12-29 10:56 -0500 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.java.programmer
Vertical scrollbar foreground emf <emfril@gmail.com> - 2012-12-29 01:57 -0500
Re: Vertical scrollbar foreground "John B. Matthews" <nospam@nospam.invalid> - 2012-12-29 10:56 -0500
| From | emf <emfril@gmail.com> |
|---|---|
| Date | 2012-12-29 01:57 -0500 |
| Subject | Vertical scrollbar foreground |
| Message-ID | <kbm3v3$8g7$1@speranza.aioe.org> |
I have a textarea with a vertical scrollbar; I have changed the
scrollbar's and I want to change the scrollbar's. After trying
unsuccessfully to change the colors of the scroolbar with
scroller.setForeground(Color.GRAY);
scroller.setBackground(Color.BLACK);
I managed to change its background color with
scroller.getVerticalScrollBar().setBackground(Color.BLACK);
the command however
scroller.getVerticalScrollBar().setForeground(Color.GRAY);
has no effect.
Googling I found that I have to use
public TextPaneRenderer() {
setEditable(false);
putClientProperty(HONOR_DISPLAY_PROPERTIES, Boolean.TRUE);
}
(https://forums.oracle.com/forums/thread.jspa?threadID=2269764)
but I do not know what to make of it. How exactly do I insert it in the
code=? And do I have to import something?
Thanks,
Eustace
--
It ain't THAT, babe! - A radical reinterpretation
https://files.nyu.edu/emf202/public/bd/itaintmebabe.html
[toc] | [next] | [standalone]
| From | "John B. Matthews" <nospam@nospam.invalid> |
|---|---|
| Date | 2012-12-29 10:56 -0500 |
| Message-ID | <nospam-78F71E.10564829122012@news.aioe.org> |
| In reply to | #20789 |
In article <kbm3v3$8g7$1@speranza.aioe.org>, emf <emfril@gmail.com>
wrote:
> I have a textarea with a vertical scrollbar; I have changed the
> scrollbar's and I want to change the scrollbar's. After trying
> unsuccessfully to change the colors of the scroolbar with
>
> scroller.setForeground(Color.GRAY);
> scroller.setBackground(Color.BLACK);
>
> I managed to change its background color with
>
> scroller.getVerticalScrollBar().setBackground(Color.BLACK);
>
> the command however
>
> scroller.getVerticalScrollBar().setForeground(Color.GRAY);
>
> has no effect.
>
> Googling I found that I have to use
>
> public TextPaneRenderer() {
> setEditable(false);
> putClientProperty(HONOR_DISPLAY_PROPERTIES, Boolean.TRUE);
> }
>
> <https://forums.oracle.com/forums/thread.jspa?threadID=2269764>
>
> but I do not know what to make of it. How exactly do I insert it in
> the code=? And do I have to import something?
See also: <kbgbdf$9m2$1@speranza.aioe.org>
<https://groups.google.com/forum/#!topic/comp.lang.java.help/lEXIVgvqOaw/discussion>
--
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web