Skip to content

Commit 586a75a

Browse files
committed
Add flatlaf
Enable fractional scaling / hidpi via flatlaf
1 parent 2543c23 commit 586a75a

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

flatlaf-3.4.jar

862 KB
Binary file not shown.

nbproject/project.properties

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ annotation.processing.run.all.processors=true
55
annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
66
application.title=WorldWindJava
77
application.vendor=mpeterson
8+
auxiliary.org-netbeans-spi-editor-hints-projects.perProjectHintSettingsFile=nbproject/cfg_hints.xml
89
build.classes.dir=${build.dir}/classes
910
build.classes.excludes=**/*.java,**/*.form
1011
# This directory is removed when the project is cleaned:
@@ -35,6 +36,7 @@ dist.jlink.dir=${dist.dir}/jlink
3536
dist.jlink.output=${dist.jlink.dir}/WorldWindJava
3637
endorsed.classpath=
3738
excludes=
39+
file.reference.flatlaf-3.4.jar=flatlaf-3.4.jar
3840
file.reference.gdal.jar=gdal.jar
3941
file.reference.gluegen-rt.jar=gluegen-rt.jar
4042
file.reference.jogl-all.jar=jogl-all.jar
@@ -46,6 +48,7 @@ jar.index=${jnlp.enabled}
4648
javac.classpath=\
4749
${file.reference.gdal.jar}:\
4850
${file.reference.junit-4.5.jar}:\
51+
${file.reference.flatlaf-3.4.jar}:\
4952
${file.reference.gluegen-rt.jar}:\
5053
${file.reference.jogl-all.jar}
5154
# Space-separated list of extra javac options
@@ -92,7 +95,7 @@ jnlp.signed=false
9295
jnlp.signing=
9396
jnlp.signing.alias=
9497
jnlp.signing.keystore=
95-
main.class=
98+
main.class=gov.nasa.worldwindx.examples.AirspaceBuilder
9699
# Optional override of default Application-Library-Allowable-Codebase attribute identifying the locations where your signed RIA is expected to be found.
97100
manifest.custom.application.library.allowable.codebase=
98101
# Optional override of default Caller-Allowable-Codebase attribute identifying the domains from which JavaScript code can make calls to your RIA without security prompts.

src/gov/nasa/worldwindx/examples/ApplicationTemplate.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
import gov.nasa.worldwind.layers.placename.PlaceNameLayer;
3737
import gov.nasa.worldwind.util.*;
3838
import gov.nasa.worldwindx.examples.util.*;
39-
39+
import com.formdev.flatlaf.FlatLightLaf;
4040
import javax.swing.*;
4141
import java.awt.*;
4242

@@ -273,6 +273,7 @@ public static void insertBeforeLayerName(WorldWindow wwd, Layer layer, String ta
273273
}
274274

275275
static {
276+
FlatLightLaf.setup();
276277
System.setProperty("java.net.useSystemProxies", "true");
277278
if (Configuration.isMacOS()) {
278279
System.setProperty("apple.laf.useScreenMenuBar", "true");

0 commit comments

Comments
 (0)