How can I minimize a JFrame if I am in another JPanel that I add to this JFrame? Here I add the JPanel that is in another class to the JFrame:
panel = new Panel_Processos("Caixa de Saída", 3);
setContent(pane, panel);
public void setContent(JPanel pane, JPanel panel){
pane.removeAll();
pane.setVisible(true);
pane.validate();
pane.add(panel);
contentPane.validate();
}
But the problem is: How can I do something to the JFrame after an event that happens in the JPanel?