org.uqbar.arena.tests.tables.ErrorsPanelWindow Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of arena-examples Show documentation
Show all versions of arena-examples Show documentation
Ejemplos básicos y tests del framework Arena
package org.uqbar.arena.tests.tables;
import org.uqbar.arena.tests.Persona;
import org.uqbar.arena.widgets.Panel;
import org.uqbar.arena.widgets.TextBox;
import org.uqbar.arena.windows.ErrorsPanel;
import org.uqbar.arena.windows.MainWindow;
public class ErrorsPanelWindow extends MainWindow {
public ErrorsPanelWindow(Persona model) {
super(model);
}
private static final long serialVersionUID = 2929979059674370552L;
@Override
public void createContents(Panel mainPanel) {
setMinHeight(500);
setMinWidth(500);
new ErrorsPanel(mainPanel, "Estamos listos para comenzar. Estamos listos para comenzar.\n", 4);
new TextBox(mainPanel).bindValueToProperty("edad");
}
public static void main(String[] args) {
Persona erico = new Persona("Heriberto", "Lavallen", 43);
new ErrorsPanelWindow(erico).startApplication();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy