such a way that shows me a window of my interface would be:
private void dialogoCorto(String texto){
try{
TextureManager tm = TextureManager.getInstance();
backDrop = new Texture("ventanas"+File.separatorChar+"panel2.gif");
window = new Ventana(backDrop, 150, 15);
aceptar = new Boton(77, 177, 138, 19);
aceptar.setEtiqueta("Sí");
aceptar.setListener(this);
cancelar = new Boton(298, 177, 138, 19);
cancelar.setEtiqueta("No");
cancelar.setListener(this);
stateLabel = new Etiqueta(77, 77);
stateLabel.setTexto(texto);
stateLabel.setTexto();
window.add(stateLabel);
window.add(aceptar);
window.add(cancelar);
}
catch(Exception e){}
}
How do I apply it like you're explaining?