示例#1
0
 private void typed_escape() {
   try {
     okCancel.v("do", "cancel");
   } catch (Exception e) {
     Outside.err(this, "typed_escape()", e);
   }
 }
示例#2
0
 private void typed_enter() {
   try {
     okCancel.v("do", "ok");
   } catch (Exception e) {
     Outside.err(this, "typed_enter()", e);
   }
 }
示例#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;
   }
 }
示例#4
0
 private JComponent errComp(Exception e) {
   try {
     return (JComponent) errGuiBuilder.t(e);
   } catch (Exception e1) {
     Outside.err(this, "errComp(Exception)", e1);
   }
   return null;
 }
示例#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;
 }
示例#6
0
 private void ok() {
   try {
     ok = true;
     dialog.p(null);
   } catch (Exception e) {
     Outside.err(this, "ok()", e);
   }
 }
示例#7
0
 private void cancel() {
   try {
     ok = false;
     dialog.p(null);
   } catch (Exception e) {
     Outside.err(this, "cancel()", e);
   }
 }
示例#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("###"));
   }
 }
示例#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);
   }
 }