summaryrefslogtreecommitdiffstats
path: root/src/newt/classes
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-06-26 07:02:16 +0300
committerSven Gothel <[email protected]>2010-06-26 07:02:16 +0300
commitc9adeced407a9f652594c1334a3ae73eff4fba79 (patch)
tree169abf645cabbb6c483fbb46ea46630412e3f9c6 /src/newt/classes
parentf0bee9b5d23e100fe92b019c1afb76d8223c0d76 (diff)
parent33a24c85dd18d851b614359bb6b19535afd56d33 (diff)
Merge branch 'master' of github.com:sgothel/jogl
Diffstat (limited to 'src/newt/classes')
-rwxr-xr-xsrc/newt/classes/com/jogamp/newt/impl/macosx/MacDisplay.java5
-rw-r--r--src/newt/classes/com/jogamp/newt/util/MainThread.java2
2 files changed, 5 insertions, 2 deletions
diff --git a/src/newt/classes/com/jogamp/newt/impl/macosx/MacDisplay.java b/src/newt/classes/com/jogamp/newt/impl/macosx/MacDisplay.java
index 861dc7a6c..0fde19cd4 100755
--- a/src/newt/classes/com/jogamp/newt/impl/macosx/MacDisplay.java
+++ b/src/newt/classes/com/jogamp/newt/impl/macosx/MacDisplay.java
@@ -93,17 +93,20 @@ public class MacDisplay extends Display {
}
protected static boolean runOnAWTEDT(boolean wait, Runnable r) {
- if(ReflectionUtil.isClassAvailable("java.awt.EventQueue")) {
+ ClassLoader cl = MacDisplay.class.getClassLoader();
+ if(ReflectionUtil.isClassAvailable("java.awt.EventQueue", cl)) {
try {
if(wait) {
ReflectionUtil.callStaticMethod(
"java.awt.EventQueue",
+ cl,
"invokeAndWait",
new Class[] { java.lang.Runnable.class },
new Object[] { r } );
} else {
ReflectionUtil.callStaticMethod(
"java.awt.EventQueue",
+ cl,
"invokeLater",
new Class[] { java.lang.Runnable.class },
new Object[] { r } );
diff --git a/src/newt/classes/com/jogamp/newt/util/MainThread.java b/src/newt/classes/com/jogamp/newt/util/MainThread.java
index cfe1876b5..cbd520104 100644
--- a/src/newt/classes/com/jogamp/newt/util/MainThread.java
+++ b/src/newt/classes/com/jogamp/newt/util/MainThread.java
@@ -116,7 +116,7 @@ public class MainThread {
// start user app ..
try {
- Class mainClass = ReflectionUtil.getClass(mainClassName, true);
+ Class mainClass = ReflectionUtil.getClass(mainClassName, true, getClass().getClassLoader());
if(null==mainClass) {
throw new RuntimeException(new ClassNotFoundException("MainThread couldn't find main class "+mainClassName));
}