Cannot find symbol

0 respostas
postgresqlprogramaçãojava
felipe1234
Pessoal estou querendo abrir um JInternalPanel de forma centralizada em que criou o JInternalPanel em um Frame e no Frame Principal , passo o JInternalPanel para um Desktop  porem  quando crio o metodo ele apresenta o seguinte erro:

Symbol:method getDesktopPane();

Cannot find symbol getDesktopPane();

Meu codigo ficou assim:

public void setPosicao() {

Symbol:method getDesktopPane();
Cannot find symbol getDesktopPane();

Dimension d = this.getDesktopPane().getSize();
this.setLocation((d.width - this.getSize().width) / 2, (d.height - this.getSize().height) / 2);
}
Criado 3 de março de 2017
Respostas 0
Participantes 1