I am writing a program that asks the user for a user name and password. When the correct user name and password is entered a new windows appears. Currently all i do is set the first JFrame visible to false and the new one to true in a separate class[note both classes inherits JFrame]. However, i want to know if instead of making the second class inherit JFrame, if i could just let it inherit the first and what would i need to do to make it look like a new window.