mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-08 06:50:56 +03:00
FlatTestFrame: do not use sun.java2d.uiScale for user scale factor
This commit is contained in:
@@ -67,7 +67,7 @@ public class FlatTestFrame
|
|||||||
DemoPrefs.init( PREFS_ROOT_PATH );
|
DemoPrefs.init( PREFS_ROOT_PATH );
|
||||||
|
|
||||||
// set scale factor
|
// set scale factor
|
||||||
if( System.getProperty( FlatSystemProperties.UI_SCALE, System.getProperty( "sun.java2d.uiScale" ) ) == null ) {
|
if( System.getProperty( FlatSystemProperties.UI_SCALE ) == null ) {
|
||||||
String scaleFactor = DemoPrefs.getState().get( KEY_SCALE_FACTOR, null );
|
String scaleFactor = DemoPrefs.getState().get( KEY_SCALE_FACTOR, null );
|
||||||
if( scaleFactor != null )
|
if( scaleFactor != null )
|
||||||
System.setProperty( FlatSystemProperties.UI_SCALE, scaleFactor );
|
System.setProperty( FlatSystemProperties.UI_SCALE, scaleFactor );
|
||||||
@@ -149,7 +149,7 @@ public class FlatTestFrame
|
|||||||
lookAndFeelComboBox.setModel( lafModel );
|
lookAndFeelComboBox.setModel( lafModel );
|
||||||
|
|
||||||
updateScaleFactorComboBox();
|
updateScaleFactorComboBox();
|
||||||
String scaleFactor = System.getProperty( FlatSystemProperties.UI_SCALE, System.getProperty( "sun.java2d.uiScale" ) );
|
String scaleFactor = System.getProperty( FlatSystemProperties.UI_SCALE );
|
||||||
if( scaleFactor != null )
|
if( scaleFactor != null )
|
||||||
scaleFactorComboBox.setSelectedItem( scaleFactor );
|
scaleFactorComboBox.setSelectedItem( scaleFactor );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user