HorizontalPanel horizontalPanelUsuario = new HorizontalPanel();
horizontalPanelUsuario.setHeight(HORIZONTAL_PANEL_HEIGTH);
VerticalPanel verticalPanel = new VerticalPanel();
VerticalPanel verticalPanel_1 = new VerticalPanel();
LabelField labelUsuario = new LabelField("Usuario");
labelUsuario.setWidth(LABEL_WIDTH);
TableData td_labelUsuario = new TableData();
td_labelUsuario.setHorizontalAlign(HorizontalAlignment.CENTER);
verticalPanel.add(labelUsuario, td_labelUsuario);
verticalPanel.setWidth(VERTICAL_PANEL_WIDTH);
horizontalPanelUsuario.add(verticalPanel);
// textUsuario.addKeyListener(new KeyListener() {
// public void componentKeyPress(ComponentEvent event) {
// presionoEnter(event);
// }
// });
textUsuario.setAllowBlank(Boolean.FALSE);
textUsuario.setWidth(TEXT_BOX_WIDTH);
verticalPanel_1.add(textUsuario);
verticalPanel_1.setWidth(VERTICAL_PANEL_WIDTH);
TableData td_verticalPanel_1 = new TableData();
td_verticalPanel_1.setHorizontalAlign(HorizontalAlignment.CENTER);
horizontalPanelUsuario.add(verticalPanel_1, td_verticalPanel_1);
mainLoginPanel.add(horizontalPanelUsuario);
HorizontalPanel horizontalPanelPassword = new HorizontalPanel();
VerticalPanel verticalPanel_2 = new VerticalPanel();
LabelField labelPassword = new LabelField("Password");
labelPassword.setWidth(LABEL_WIDTH);
TableData td_labelPassword = new TableData();
td_labelPassword.setHorizontalAlign(HorizontalAlignment.CENTER);
verticalPanel_2.add(labelPassword, td_labelPassword);
verticalPanel_2.setWidth(VERTICAL_PANEL_WIDTH);
horizontalPanelPassword.add(verticalPanel_2);
VerticalPanel verticalPanel_3 = new VerticalPanel();
textPassword = new TextField();
// textPassword.addKeyListener(new KeyListener() {
// public void componentKeyPress(ComponentEvent event) {
// presionoEnter(event);
// }
// });
textPassword.setAllowBlank(Boolean.FALSE);
textPassword.setPassword(true);
textPassword.setPassword(true);
textPassword.setWidth(TEXT_BOX_WIDTH);
verticalPanel_3.add(textPassword);
verticalPanel_3.setWidth(VERTICAL_PANEL_WIDTH);
TableData td_verticalPanel_3 = new TableData();
td_verticalPanel_3.setHorizontalAlign(HorizontalAlignment.CENTER);
horizontalPanelPassword.add(verticalPanel_3, td_verticalPanel_3);
horizontalPanelPassword.setHeight(HORIZONTAL_PANEL_HEIGTH);
mainLoginPanel.add(horizontalPanelPassword);