What I am trying to do is make it so when somone clicks the x button on my jinternalframe that it does not get rid of it, simply hides it. Here is my code but it still gets rid of the frame.
characterFrame.addInternalFrameListener(new InternalFrameAdapter(){
public void internalFrameClosing(InternalFrameEvent e) {
characterFrame.setVisible(false);
return;
}
});
Any ideas?? I want to override what happens when you close the window and only have it run my code.
Is the JInternalFrame#setDefaultCloseOperation
method with the HIDE_ON_CLOSE
what you are looking for ? It is not entirely clear from your question