🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Changing Look and feel - New to Java Help Me

#9725
From: hrothenb
Date: Wed, 09 Feb 2000 00:00
35 lines
1676 bytes
You can set the windows look and feel with:

        try {
          UIManager.setLookAndFeel(
"com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
          SwingUtilities.updateComponentTreeUI(this);
        }
        catch (Exception ex)
        {
          System.out.println("Exception thrown in setting look and feel:
" + ex.toString());
        }


In article <OHA4pbra$GA.265@cpmsnbbsa02>,
  "Balaji K Kithiganahalli" <Balaji_92@msn.com> wrote:
> Hi,
>     I am new to Java, using Jbuilder3.0 on Windows NT to learn Java.
> I am reading this book called core java 2.0. It says about changing
look and
> feel of windows from
> default Metal look and feel to Windows look and feel by changing in
> "swing.properties" file. I searched
> my entire computer but couldn't find one. If I have to create one
myself
> Where would i put that so that
> Run time Environment knows that it has to use Windows look and feel
instead
> of Metal type.
>
>


Sent via Deja.com http://www.deja.com/
Before you buy.
Technical Details
Message-ID: <87s5q9$j9f$1@nnrp1.deja.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <OHA4pbra$GA.265@cpmsnbbsa02>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,63e1c88d7a7e53ca
X-Google-Attributes: gid111d45,public
From: hrothenb@bcpl.net
Subject: Re: Changing Look and feel - New to Java Help Me
Date: 2000/02/09
Message-ID: <87s5q9$j9f$1@nnrp1.deja.com>
X-Deja-AN: 583699663
References: <OHA4pbra$GA.265@cpmsnbbsa02>
X-Http-Proxy: 1.0 x40.deja.com:80 (Squid/1.1.22) for client 205.128.224.7
Organization: Deja.com - Before you buy.
X-Article-Creation-Date: Wed Feb 09 16:49:14 2000 GMT
X-MyDeja-Info: XMYDJUIDhrothenb
Newsgroups: borland.public.jbuilder.java.swing
X-Http-User-Agent: Mozilla/4.08 [en] (WinNT; U)