🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #13321

Re: JScrollBar color settings?

#13321
From: Paul Furbacher
Date: Mon, 10 Aug 1998 00:00
31 lines
1628 bytes
Tapio Holopainen wrote:
> 
> Is it possible to change default blue color of JScrollBar's 'elevator'?

Hmmm.  I've always called that the "thumb", but "evelator"
depicts it fairly well.

> I'm using JScrollBar at JTable. Following code changes only background,
> but blue color of 'elevator' remains...
> 
> JScrollPane _pane = JTable.createScrollPaneForTable(new JTable());
> _pane.getVerticalScrollBar().setBackground(Color.white);
> _pane.getVerticalScrollBar().setForeground(Color.lightGray); //NOT
> WORK??

Is it possible that you are updating a project which 
you started using JB 1.x?  If so, then my guess is
that you are seeing the default look and feel.
To see how to set the look and feel of an project,
create a new application and look at the "main()"
method.  It should read something like this: 

  try {
    UIManager.setLookAndFeel(
      new com.sun.java.swing.plaf.windows.WindowsLookAndFeel());
  }
  catch ( Exception e ) {
  }


Paul Furbacher
Technical Details
Message-ID: <35CF9E9D.8453996@bilbo.bio.purdue.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <35CED3E4.1691EC99@sysline.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,7fab7069ced4eece
X-Google-Attributes: gid111d45,public
From: Paul Furbacher <pf@bilbo.bio.purdue.edu>
Subject: Re: JScrollBar color settings?
Date: 1998/08/10
Message-ID: <35CF9E9D.8453996@bilbo.bio.purdue.edu>
X-Deja-AN: 379898380
Content-Transfer-Encoding: 7bit
References: <35CED3E4.1691EC99@sysline.com>
To: Tapio Holopainen <tapio.holopainen@sysline.com>
Content-Type: text/plain; charset=us-ascii
Organization: Biological Sciences, Purdue Univ.
Mime-Version: 1.0
Reply-To: pf@bilbo.bio.purdue.edu
Newsgroups: borland.public.jbuilder.java.swing