mirror of
https://git.freebsd.org/ports.git
synced 2025-05-29 09:26:27 -04:00
http://java.sun.com/j2se/1.5.0/docs/guide/awt/1.5/xawt.html it has some advantages over XToolkit. Its also the default on Linux and Solaris will be switching to it. Some people have reported that it fixes a crash in the browser plugin for them. Please let me know straight away if this causes problems, particularly with Swing, as it hasn't been extensively tested. The web page mentioned above explains how to switch the toolkits dynamically so you can compare them. Submitted by: Huang wen hui <hwh@gddsn.org.cn> (the awt_LoadLibrary.c patch) Approved by: phantom (maintainer)
20 lines
956 B
Java
20 lines
956 B
Java
$FreeBSD$
|
|
|
|
--- ../../j2se/src/share/classes/java/awt/Toolkit.java 10 Jan 2005 07:40:41 -0000 1.2
|
|
+++ ../../j2se/src/share/classes/java/awt/Toolkit.java 9 Oct 2005 04:11:13 -0000
|
|
@@ -809,12 +809,11 @@
|
|
try {
|
|
String defaultToolkit;
|
|
|
|
- /* XXXBSD: analyze and choose better one */
|
|
- if (System.getProperty("os.name").equals("Linux")) {
|
|
- defaultToolkit = "sun.awt.X11.XToolkit";
|
|
+ if (System.getProperty("os.name").equals("SunOS")) {
|
|
+ defaultToolkit = "sun.awt.motif.MToolkit";
|
|
}
|
|
else {
|
|
- defaultToolkit = "sun.awt.motif.MToolkit";
|
|
+ defaultToolkit = "sun.awt.X11.XToolkit";
|
|
}
|
|
nm = System.getProperty("awt.toolkit",
|
|
defaultToolkit);
|