diff options
author | Kenneth Russel <[email protected]> | 2008-06-01 11:46:29 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2008-06-01 11:46:29 +0000 |
commit | c15e1883d7f4f9aa426e63dd4aaf85194aa60300 (patch) | |
tree | d7579dc0b243884e026c125e402c03e38eb2c980 /src/classes/com/sun/javafx/newt/Window.java | |
parent | f9ce69ff35c5641f5e4da423bab39b86653baeac (diff) |
Made sendMouseEvent and sendKeyEvent protected because CVM won't look
up native methods if they're private in the superclass
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1659 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/classes/com/sun/javafx/newt/Window.java')
-rwxr-xr-x | src/classes/com/sun/javafx/newt/Window.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/classes/com/sun/javafx/newt/Window.java b/src/classes/com/sun/javafx/newt/Window.java index 71559ede2..6bb617687 100755 --- a/src/classes/com/sun/javafx/newt/Window.java +++ b/src/classes/com/sun/javafx/newt/Window.java @@ -66,8 +66,9 @@ public abstract class Window implements NativeWindow window.locked = false; window.initNative(); return window; - } catch (Exception e) { - throw new RuntimeException(e); + } catch (Throwable t) { + t.printStackTrace(); + throw new RuntimeException(t); } } @@ -174,7 +175,7 @@ public abstract class Window implements NativeWindow private int lastMouseClickCount = 0; public static final int ClickTimeout = 200; - private void sendMouseEvent(int eventType, int modifiers, int x, int y, int button) { + protected void sendMouseEvent(int eventType, int modifiers, int x, int y, int button) { if(DEBUG_MOUSE_EVENT) { System.out.println("sendMouseEvent: "+MouseEvent.getEventTypeString(eventType)+ ", mod "+modifiers+", pos "+x+"/"+y+", button "+button); @@ -270,7 +271,7 @@ public abstract class Window implements NativeWindow private ArrayList keyListener = new ArrayList(); - private void sendKeyEvent(int eventType, int modifiers, int keyCode, char keyChar) { + protected void sendKeyEvent(int eventType, int modifiers, int keyCode, char keyChar) { KeyEvent e = new KeyEvent(true, eventType, this, System.currentTimeMillis(), modifiers, keyCode, keyChar); if(DEBUG_KEY_EVENT) { |