Example #1
0
 public static Chofer showForm(Chofer bean, boolean readOnly) {
   DefaultFormModel model = new DefaultFormModel(bean);
   model.setReadOnly(readOnly);
   final ChoferForm form = new ChoferForm(model);
   form.open();
   if (!form.hasBeenCanceled()) {
     return (Chofer) model.getBaseBean();
   }
   return null;
 }
Example #2
0
 public static void main(String[] args) {
   SWExtUIManager.setup();
   Object bean = showForm(new Chofer());
   ChoferForm.showObject(bean);
   System.exit(0);
 }