1
I created a basic screen with Netbeans that has a menu and a JDesktopPane
that opens the JInternalFrame
menu-referenced:
As well as a function to open these JInternalFrame
:
private void openView(JInternalFrame view){
// o "frameInterno" referencia o JDesktopPane
this.frameInterno.removeAll();
this.frameInterno.add(view);
view.setVisible(true);
}
private void itemClienteActionPerformed(java.awt.event.ActionEvent evt) {
this.openView(new ClienteView());
}
However, if I try to open another screen with the same function, the screen continues with the image of the previous rendering recorded in the background:
I’m wearing the Look and Feel JTattoo
, but even using Nimbus or default the problem persists.
What could be causing this failure? How can I resolve?
System settings:
Kubuntu 18.04 LTS Openjdk 1.8