Hi,
I made the changes but the result is the same. I copy the main method to
see if it finds something.
My code:
// Método que muestra la Forma Principal
private void muestraLiber() {
final Form fmLiber = new Form();
fmLiber.setTitle("Prueba");
fmLiber.setLayout(new BorderLayout());
fmLiber.setScrollableY(true);
Command cmdSalir = new Command("Salir") {
public void actionPerformed(ActionEvent ev) {
Display.getInstance().exitApplication();
}
};
final Toolbar tbMenu = new Toolbar();
fmLiber.setToolBar(tbMenu);
Style s = UIManager.getInstance().getComponentStyle("Title");
FontImage iNuevo =
FontImage.createMaterial(FontImage.MATERIAL_SECURITY, s);
tbMenu.addCommandToRightBar(new Command("", iNuevo) {
@Override
public void actionPerformed(ActionEvent evt) {
Vector vDato = dT.getDato();
vDato.addElement("Record ");
dT.setDato(vDato);
Dialog.show("New", "Add The New Record", "Continue", null);
cnLiber1.revalidate();
cnLiber2.revalidate();
cnLiber3.revalidate();
}
});
Command cmdValidacion = new Command("Validar") {
public void actionPerformed(ActionEvent ev) {
muestraPrueba(fmLiber);
}
};
tbMenu.addCommandToOverflowMenu(cmdValidacion);
cnLiber1 = muestraCompra1();
cnLiber2 = muestraCompra1();
cnLiber3 = muestraCompra1();
cnLiber1.setScrollableY(true);
cnLiber2.setScrollableY(true);
cnLiber3.setScrollableY(true);
final Tabs tsMenu = new Tabs();
tsMenu.addTab("Compras", cnLiber1);
tsMenu.addTab("Listas", cnLiber2);
tsMenu.addTab("Novedades", cnLiber3);
tsMenu.addSelectionListener(new SelectionListener() {
@Override
public void selectionChanged(int oldSelected, int newSelected) {
cnLiber1.revalidate();
cnLiber2.revalidate();
cnLiber3.revalidate();
}
});
fmLiber.addComponent(BorderLayout.CENTER, tsMenu);
fmLiber.setBackCommand(cmdSalir);
fmLiber.setTransitionOutAnimator(CommonTransitions.createSlide(CommonTransitions.SLIDE_VERTICAL,
true, 500));
fmLiber.show();
fmLiber.revalidate();
}
--
El contenido de este correo es confidencial y puede ser objeto de acciones
legales. Es dirigido solo para el o los destinatarios(s) nombrados
anteriormente. Si no es mencionado como destinatario, no debe leer, copiar,
revelar, reenviar o utilizar el contenido de este mensaje. Si ha recibido
este correo por error, por favor notifique al remitente y proceda a borrar
el mensaje y archivos adjuntos sin conservar copias.
The information contained in this e-mail is confidential and may also be
subject to legal privilege. It is intended only for the recipient(s) named
above. If you are not named as a recipient, you must not read, copy,
disclose, forward or otherwise use the information contained in this email.
If you have received this e-mail in error, please notify the sender
immediately by reply e-mail and delete the message and any attachments
without retaining any copies.
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit
https://groups.google.com/d/msgid/codenameone-discussions/ead88dc3-ac71-4e74-aac4-d4ab07e76dcd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.