Example #1
0
 private void typed_escape() {
   try {
     okCancel.v("do", "cancel");
   } catch (Exception e) {
     Outside.err(this, "typed_escape()", e);
   }
 }
Example #2
0
 private void typed_enter() {
   try {
     okCancel.v("do", "ok");
   } catch (Exception e) {
     Outside.err(this, "typed_enter()", e);
   }
 }
Example #3
0
 private boolean check(Service s, File f) {
   try {
     return s.f(f);
   } catch (Exception e) {
     Outside.err(this, "check(Service,File)", e);
     return false;
   }
 }
Example #4
0
 private JComponent errComp(Exception e) {
   try {
     return (JComponent) errGuiBuilder.t(e);
   } catch (Exception e1) {
     Outside.err(this, "errComp(Exception)", e1);
   }
   return null;
 }
Example #5
0
 private Object get_(R r, String key) {
   try {
     return r.r(key);
   } catch (Exception e) {
     Outside.err(this, "get_(R,String)", e);
   }
   return null;
 }
Example #6
0
 private void ok() {
   try {
     ok = true;
     dialog.p(null);
   } catch (Exception e) {
     Outside.err(this, "ok()", e);
   }
 }
Example #7
0
 private void cancel() {
   try {
     ok = false;
     dialog.p(null);
   } catch (Exception e) {
     Outside.err(this, "cancel()", e);
   }
 }
Example #8
0
 private void add(Service s) {
   try {
     JMenu menu = (JMenu) s.i();
     if (menu != null) menuBar.add(menu);
   } catch (Exception e) {
     Outside.err(this, "add(String)", e);
     menuBar.add(new JMenu("###"));
   }
 }
Example #9
0
 private JComponent findComp(G g) {
   try {
     Object result = g.g();
     if (result instanceof Exception) return errComp((Exception) result);
     return (JComponent) findComp.t(result);
   } catch (Exception e) {
     Outside.err(this, "findComp(G)", e);
     return errComp(e);
   }
 }