Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #38292

Re: How does a scrollbar paint differently?

From Eric Sosman <esosman@comcast-dot-net.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: How does a scrollbar paint differently?
Date 2018-05-29 17:17 -0400
Organization A noiseless patient Spider
Message-ID <pekg11$r62$1@dont-email.me> (permalink)
References <00f505eb-cb45-4306-a554-bfad87371dd9@googlegroups.com> <7f435fa4-c7c0-4899-a757-f900eaae07f8@googlegroups.com>

Show all headers | View raw


On 5/29/2018 4:50 PM, Eric Douglas wrote:
> On Tuesday, May 29, 2018 at 3:42:49 PM UTC-4, Eric Douglas wrote:
>> I put a JTextArea in a JScrollPane.  If I load this control in a JFrame from Eclipse it displays a scrollbar with solid triangles and a grey bar with 3 lines in the middle.  If I put this same control in my application, where a 3rd party API is handling the window, the scrollbar has a single chevron on the ends and an undecorated bar that's a different shade of gray, which matches the bar in my C# application.  Both Java systems return a com.sun.java.swing.plaf.windows.WindowsLookAndFeel from the UIManager.getLookAndFeel().
> 
> Correction, JList control, not JTextArea, though probably irrelevant.

     The first scrollbar sounds like the one belonging to the Java cross-
platform "Metal" look and feel, javax.swing.plaf.metal.MetalLookAndFeel. 
  The other sounds like com.sun.java.swing.plaf.windows.WindowsLookAndFeel
(or possibly com.sun.java.swing.plaf.windows.WindowsClassicLookAndFeel).
Are you *sure* both getLookAndFeel() calls return the latter?  Or, are
you *sure* that there's no setLookAndFeel() call after getLookAndFeel()?

-- 
esosman@comcast-dot-net.invalid
Nine hundred sixty-seven days to go.

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How does a scrollbar paint differently? Eric Douglas <e.d.programmer@gmail.com> - 2018-05-29 12:42 -0700
  Re: How does a scrollbar paint differently? Eric Douglas <e.d.programmer@gmail.com> - 2018-05-29 13:50 -0700
    Re: How does a scrollbar paint differently? Eric Sosman <esosman@comcast-dot-net.invalid> - 2018-05-29 17:17 -0400
      Re: How does a scrollbar paint differently? Eric Douglas <e.d.programmer@gmail.com> - 2018-05-30 07:37 -0700
        Re: How does a scrollbar paint differently? Eric Sosman <esosman@comcast-dot-net.invalid> - 2018-05-30 11:09 -0400
          Re: How does a scrollbar paint differently? Eric Douglas <e.d.programmer@gmail.com> - 2018-05-30 08:26 -0700
        Re: How does a scrollbar paint differently? Eric Douglas <e.d.programmer@gmail.com> - 2018-05-30 08:24 -0700
          Re: How does a scrollbar paint differently? Eric Douglas <e.d.programmer@gmail.com> - 2018-05-30 08:46 -0700
            Re: How does a scrollbar paint differently? Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2018-05-30 18:14 +0200
              Re: How does a scrollbar paint differently? Eric Douglas <e.d.programmer@gmail.com> - 2018-05-30 10:31 -0700
                Re: How does a scrollbar paint differently? Eric Douglas <e.d.programmer@gmail.com> - 2018-05-30 10:53 -0700
                Re: How does a scrollbar paint differently? Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2018-05-30 20:35 +0200

csiph-web