If you want a secondary display, you are usually better off with a dialogue window.
What i'm aiming at doing is having 1 window that goes into another window that goes into another windows so having a dialogue window wouldn't be a good idea unless you can prove otherwise
What type of object is DataEntry
I made a mistake with that part, I confused myself with what I was doing. What i'm aiming for is getting the login class to move into another class called secondframe
Login (JFrame) --- actionListener ---> SecondFrame (JFrame)
and I got it to work by doing this