Guest User

Untitled

a guest
Jun 25th, 2018
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. private void notifySelectionState(){
  2. JSObject jsObject = null;
  3.  
  4. try {
  5. jsObject = JSObject.getWindow(applet);
  6.  
  7. // An exception can be thrown here (hopefully) only is running in debug environment...
  8. } catch (JSException e) {
  9. // So actually what I'm doing here is checking (in a very lame fashion) for if I'm in a the browser
  10. // content or in the AppletViewer
  11. }
  12.  
  13. if (jsObject != null) {
  14. jsObject.call(...);
  15. }
  16. }
Add Comment
Please, Sign In to add comment