Código
class createNewWindows extends Frame{
public createNewWindows(String pTitle, Integer pX, Integer pY, Integer pwidth, Integer pHeight){
super(pTitle);
this.setBounds(pX, pY, pwidth, pHeight);
this.setLocationRelativeTo(null);
this.setDefaultCloseOperation(this.EXIT_ON_CLOSE); this.setVisible(true);
}
}
Código
alex@shellroot:~/Escritorio$ javac PoC.java
PoC.java:23: cannot find symbol
symbol : variable EXIT_ON_CLOSE
location: class createNewWindows
this.setDefaultCloseOperation(this.EXIT_ON_CLOSE);
^
1 error
Alguna sugerencia?










Autor




En línea






