0
Hello, I wish to remove this side option button from my Jinternalframe:
After reading in some places, I saw that theoretically this employee command to remove the button:
((BasicInternalFrameUI)this.getUI()).setNorthPane(null);
When I try to use this, I get the following error:
Main.java:165: error: cannot find symbol
((BasicInternalFrameUI)this.getUI()).setNorthPane(null);
^
symbol: class BasicInternalFrameUI
location: class Window
1 erro
Follow, my code word:
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[]) {
[...]
}
}
In order for us to see the problem more broadly, it is essential to test, however, your code, as it is only a fragment, does not allow this. If possible, provide a reduced version of your code, that it is possible to run only the problem so that we can help you ;)
– Blastoise Opressor