swing - Java: How can I load an external class into a gui -
I am looking for a specific functionality I want to load a square that is for example I'm looking for the ability to switch many of these classes on desires I have an idea for an educational game software and classes will be different games. I realize that I can institute an example of each class in my GUI class, but I went to their point of view when I try to switch between them and not properly displayed How to swap components You can either switch all components Or you can use CardLayout to add / remove them JPanel < / Code> and shows the
zpnil on a different GUI class.
container.revalidate (); Container.repaint ();
Comments
Post a Comment