noxz-sites

A collection of a builder and various scripts creating the noxz.tech sites
git clone https://noxz.tech/git/noxz-sites.git
Log | Files | README | LICENSE

noxz.tech/articles/missing_gui_in_geogebra/index.www
1I personally use a portable version of GeoGebra as I'm not that fond of
2installing a full Java environment on my machine, and the portable version of
3GeoGebra comes with a portable version of JRE as well. So keep that in mind
4when reading this article.
5
6.PIMG geogebra.png
7
8As it turns out, Java has a problem with rendering the GUI correctly on
9non-reparenting window managers, such as
10.I DWM
11(the one I use). The solution to the problem is easy, though. If JDK is
12patched to check for the environment variable
13.B _JAVA_AWT_WM_NONREPARENTING ,
14you can set this to equal
15.I 1 .
16I've created a startup script for GeoGebra, like so:
17
18.CDS
19.COS
20_JAVA_AWT_WM_NONREPARENTING=1 ./geogebra-portable
21.COE
22.CDE
23
24This workaround is, of course, not only applicable to GeoGebra but to all
25Java applications with similar problems.
26
27.HnS 1
28Using GTK theming in GeoGebra
29.HnE
30
31If you want to have the same look and feel in GeoGebra as in the rest of your
32GTK applications, this can be easily achieved by setting Java options through
33the environment variable
34.B _JAVA_OPTIONS ,
35like so:
36
37.CDS
38.COS
39_JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
40-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel
41-Dswing.crossplatformlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel'
42
43(one line)
44.COE
45.CDE
46
47Again, this is, of course, applicable to all GUI applications written in Java.