Olá, desejo retirar esse botão de opções lateral do meu JInternalFrame:
Após ler em alguns lugares, vi que teoricamente esse comando funcionária para retirar o botão:
((BasicInternalFrameUI)this.getUI()).setNorthPane(null);
Quando tento usar este, me aparece o seguinte erro:
Main.java:165: error: cannot find symbol
((BasicInternalFrameUI)this.getUI()).setNorthPane(null);
^
symbol: class BasicInternalFrameUI
location: class Window
1 erro
Segue, meu código:
class Window extends JInternalFrame{
Window(String name, int id){
[...]
((BasicInternalFrameUI)this.getUI()).setNorthPane(null);
[...]
}
public void setPosition() {
[...]
}
}
class Main{
public static void main(String args[]) {
[...]
}
}