author and iconoclast
posted 14 years ago
show and setVisible(true) essentially do the same thing, though show is now deprecated for Component Class. BUT , it is not deprecated for the Window class. So if you are using the JFrame class, which inherits from the Window class, show can be used legally.Here show(), makes the window visible AND brings it to the front.Thats why it is superior to setVisible().