Here you can find the source of makeWindowLeopardStyle(JRootPane rootPane)
Parameter | Description |
---|---|
rootPane | a parameter |
public static void makeWindowLeopardStyle(JRootPane rootPane)
//package com.java2s; //License from project: Open Source License import javax.swing.JRootPane; public class Main { /**/*ww w . jav a 2s . co m*/ * Makes this window a Unified window on Mac OS X Leopard or greater systems. * * @param rootPane */ public static void makeWindowLeopardStyle(JRootPane rootPane) { // TODO figure out correct way to determine if the JRootPane has been // TODO realized. if (rootPane.isValid()) { throw new IllegalArgumentException( "This method only works if the" + "given JRootPane has not yet been realized."); } rootPane.putClientProperty("apple.awt.brushMetalLook", Boolean.TRUE); } }