Switching between "pages"?
I've been looking at tutorials and the API docs for Swing, but I'm still unsure how this works.
Does Swing have "pages" like websites? So you can like... store different layouts in pages, and then change to them when you click a Jbutton?
Or how do I set it up so the interface changes to a different one (from a group, say I have a "page" for shops, and then a "page" for inventory, character stats, etc) by clicking a Jbutton (or from some other Event, or when a variable reaches a certain value or something)?
Thanks!
Re: Switching between "pages"?
Sounds like a job for CardLayout!
Re: Switching between "pages"?
Thanks! I did look at CardLayout but I thought it had to use drop down menu to switch between them for some reason. Anyway, Cheers! That's what I wanted. :)-: