Native window decorations: use LoggingFacade

This commit is contained in:
Karl Tauber
2021-03-12 23:18:13 +01:00
parent 39d56f2603
commit d2ccb97eba
2 changed files with 3 additions and 8 deletions

View File

@@ -29,15 +29,13 @@ import java.util.Collections;
import java.util.IdentityHashMap; import java.util.IdentityHashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JDialog; import javax.swing.JDialog;
import javax.swing.JFrame; import javax.swing.JFrame;
import javax.swing.Timer; import javax.swing.Timer;
import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener; import javax.swing.event.ChangeListener;
import javax.swing.event.EventListenerList; import javax.swing.event.EventListenerList;
import com.formdev.flatlaf.FlatLaf; import com.formdev.flatlaf.util.LoggingFacade;
import com.formdev.flatlaf.util.NativeLibrary; import com.formdev.flatlaf.util.NativeLibrary;
import com.formdev.flatlaf.util.SystemInfo; import com.formdev.flatlaf.util.SystemInfo;
@@ -96,7 +94,7 @@ class FlatWindowsNativeWindowBorder
try { try {
System.loadLibrary( "jawt" ); System.loadLibrary( "jawt" );
} catch( Exception ex ) { } catch( Exception ex ) {
Logger.getLogger( FlatLaf.class.getName() ).log( Level.SEVERE, null, ex ); LoggingFacade.INSTANCE.logSevere( null, ex );
} }
} }

View File

@@ -24,9 +24,6 @@ import java.nio.file.Files;
import java.nio.file.Path; import java.nio.file.Path;
import java.nio.file.Paths; import java.nio.file.Paths;
import java.nio.file.StandardCopyOption; import java.nio.file.StandardCopyOption;
import java.util.logging.Level;
import java.util.logging.Logger;
import com.formdev.flatlaf.FlatLaf;
/** /**
* Helper class to load native library (.dll, .so or .dylib) stored in Jar. * Helper class to load native library (.dll, .so or .dylib) stored in Jar.
@@ -126,7 +123,7 @@ public class NativeLibrary
} }
private static void log( String msg, Throwable thrown ) { private static void log( String msg, Throwable thrown ) {
Logger.getLogger( FlatLaf.class.getName() ).log( Level.SEVERE, msg, thrown ); LoggingFacade.INSTANCE.logSevere( msg, thrown );
} }
private static Path createTempFile( String libraryName ) throws IOException { private static Path createTempFile( String libraryName ) throws IOException {