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