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);
}