How do I call a "class" of type jFrame for example from my main class? My jFrame has its own main that gives the setVisible true for it to appear, however I wanted to access this main from my main class, so I can setVisible through the main one instead of creating an instance of that and giving the setVisible by my class, even because it loses frame design quality.