Closing one window kills the whole program
I have a method within an inner class which creates a new window. Heres sort of what my code looks like:
if(e.getSource == buttone)
{
new entryEditor().theEditor();
e_frame.setDefaultCloseOperation(EXIT_ON_CLOSE);
that close operation thing probably isn't exact, but i know i have it on EXIT ON CLOSE. and when i exit the window the whole program closes. How do i remedy this?
I also tried e_frame.setVisible(false)
to hide the window, then add some clearing commands like e_textfield.setText(""); But i get a defining of e_frame error.

