Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Knute Johnson Newsgroups: comp.lang.java.gui Subject: LookAndFeel on Windows 8? Date: Mon, 02 Mar 2015 10:18:01 -0800 Organization: A noiseless patient Spider Lines: 41 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 2 Mar 2015 18:17:06 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="9b3fcb0d22708969e4dc99e7aa0ef1f9"; logging-data="32239"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/hGooqk1zq6/EuUwGUBBY2" User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 Cancel-Lock: sha1:ept2TbTCH8uuesjTswOZkPAPgiI= Xref: csiph.com comp.lang.java.gui:5460 I'm having a problem getting my JFrame to change LookAndFeel. No matter what I set it to the outside of the frame always looks the same. If I change the LAF to Motif the color of the inside of the frame changes but not the frame decorations themselves. Windows 8.1, Java 8u31. Any ideas? import java.awt.*; import java.awt.event.*; import java.util.*; import javax.swing.*; public class test { static Map map = new HashMap<>(); public static void main(String... args) { for (UIManager.LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) { map.put(info.getName(),info.getClassName()); System.out.println(info.getName()); } EventQueue.invokeLater(() -> { try { UIManager.setLookAndFeel(map.get("Nimbus")); } catch (Exception e) { e.printStackTrace(); } JFrame f = new JFrame(); f.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); f.setSize(400,300); f.setVisible(true); }); } } -- Knute Johnson