🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #18105

Setting different Look and feel

#18105
From: Davide De Benedictis
Date: Thu, 06 Aug 1998 00:00
33 lines
1675 bytes
I'm moving slowly to Swing so excuse me for stupid questions... ;-)
I made an application trying to give it a Metal look and feel, I changed the lines in the main method like explained on JB2 docs:

 public static void main(String[] args)
 {
      try
      {
           //UIManager.setLookAndFeel(new com.sun.java.swing.plaf.windows.WindowsLookAndFeel());
           //UIManager.setLookAndFeel(new com.sun.java.swing.plaf.motif.MotifLookAndFeel());
           UIManager.setLookAndFeel(new com.sun.java.swing.plaf.metal.MetalLookAndFeel());
      }
      catch (Exception e)
      {
          System.out.println(e);
      }
      new Application1();
 }

When I launch my application, the only things that comes out with new Metal look an feel are JInternalFrames,
but the main frame (I used a JFrame ) and JDialogs remain always with Windows look...
Is it normal or I'm missing something ?

Thank you in advance.


-----------------------------------------------------------
Davide De Benedictis

Pegaso Srl
Via Asiago 9,  00195 Roma,  Italy
tel +39 6 32.20.437   fax +39 6 37.00.454
email :  pegaso@mclink.it
-----------------------------------------------------------
Technical Details
Message-ID: <35C9772E.25F995F2@mclink.it>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,311bd4ee637c0758,start
X-Google-Attributes: gidf74b3,public
From: Davide De Benedictis <pegaso@mclink.it>
Subject: Setting different Look and feel
Date: 1998/08/06
Message-ID: <35C9772E.25F995F2@mclink.it>
X-Deja-AN: 378466438
Content-Transfer-Encoding: 7bit
Organization: Pegaso Srl
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language