blob: 704fbc3aded13d6413ef0796e231f1c8d52ddfa0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
$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);
|