Пример #1
0
 public void setPage(URL url) throws IOException {
   // If we haven't created a peer yet, force us to use a browser, since
   // setPage is really aimed at HTML.
   if (!SwingWTUtils.isSWTControlAvailable(editorPaneImpl.getSWTPeer())) {
     loadBrowserEditorPane();
   }
   editorPaneImpl.setPage(url);
 }
Пример #2
0
 /**
  * Once a parent component receives an "add" call for a child, this being the child, this should
  * be called to tell us to instantiate the peer and load in any cached properties.
  */
 public void setSwingWTParent(swingwt.awt.Container parent) throws Exception {
   descendantHasPeer = true;
   editorPaneImpl.setSwingWTParent(parent);
   peer = editorPaneImpl.getSWTPeer();
 }