🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#9704
From: hrothenb
Date: Fri, 04 Feb 2000 00:00
32 lines
1552 bytes

To set the look and feel to windows, try this in your main method:

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

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: <87fg3g$q9l$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/04
Message-ID: <87fg3g$q9l$1@nnrp1.deja.com>
X-Deja-AN: 581607088
References: <OHA4pbra$GA.265@cpmsnbbsa02>
X-Http-Proxy: 1.0 x36.deja.com:80 (Squid/1.1.22) for client 205.128.224.7
Organization: Deja.com - Before you buy.
X-Article-Creation-Date: Fri Feb 04 21:25:11 2000 GMT
X-MyDeja-Info: XMYDJUIDhrothenb
Newsgroups: borland.public.jbuilder.java.swing
X-Http-User-Agent: Mozilla/4.08 [en] (WinNT; U)