Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void notifySelectionState(){
- JSObject jsObject = null;
- try {
- jsObject = JSObject.getWindow(applet);
- // An exception can be thrown here (hopefully) only is running in debug environment...
- } catch (JSException e) {
- // So actually what I'm doing here is checking (in a very lame fashion) for if I'm in a the browser
- // content or in the AppletViewer
- }
- if (jsObject != null) {
- jsObject.call(...);
- }
- }
Add Comment
Please, Sign In to add comment