src/macosx/classes/com/apple/laf/AquaNativeResources.java

Print this page

        

*** 25,44 **** package com.apple.laf; import java.awt.*; import java.awt.image.BufferedImage; - import java.security.PrivilegedAction; import javax.swing.plaf.UIResource; import com.apple.laf.AquaUtils.RecyclableSingleton; public class AquaNativeResources { static { ! java.security.AccessController.doPrivileged((PrivilegedAction<?>)new sun.security.action.LoadLibraryAction("osxui")); } // TODO: removing CColorPaint for now static class CColorPaintUIResource extends Color/*CColorPaint*/ implements UIResource { // The color passed to this MUST be a retained NSColor, and the CColorPaintUIResource // takes ownership of that retain. --- 25,49 ---- package com.apple.laf; import java.awt.*; import java.awt.image.BufferedImage; import javax.swing.plaf.UIResource; import com.apple.laf.AquaUtils.RecyclableSingleton; public class AquaNativeResources { static { ! java.security.AccessController.doPrivileged( ! new java.security.PrivilegedAction<Void>() { ! public Void run() { ! System.loadLibrary("osxui"); ! return null; } + }); + } // TODO: removing CColorPaint for now static class CColorPaintUIResource extends Color/*CColorPaint*/ implements UIResource { // The color passed to this MUST be a retained NSColor, and the CColorPaintUIResource // takes ownership of that retain.