Results 1 to 3 of 3
Thread: Switching between "pages"?
- 05-22-2012, 07:18 PM #1
Member
- Join Date
- Apr 2012
- Posts
- 74
- Rep Power
- 0
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!
- 05-22-2012, 07:26 PM #2
Re: Switching between "pages"?
Sounds like a job for CardLayout!
How to Ask Questions the Smart Way
Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!
- 05-22-2012, 08:08 PM #3
Member
- Join Date
- Apr 2012
- Posts
- 74
- Rep Power
- 0
Similar Threads
-
How to have multiple "Pages" in an Applet?
By poorbrain in forum Java AppletsReplies: 5Last Post: 01-08-2013, 11:45 AM -
Handy conditional If code to handle "day" and "days". Needs a slight tweak.
By hamster in forum AlgorithmReplies: 2Last Post: 04-29-2012, 01:52 AM -
loop "play again" in an 8 ball game , loops but wont let me answer my "out.print"
By IareSmart in forum New To JavaReplies: 1Last Post: 02-01-2012, 08:37 PM -
MoneyOut.println("It took you (whats wrong?>",year,"<WW?) years to repay the loan")
By soc86 in forum New To JavaReplies: 2Last Post: 01-24-2009, 06:56 PM -
the dollar sign "$", prints like any other normal char in java like "a" or "*" ?
By lse123 in forum New To JavaReplies: 1Last Post: 10-20-2008, 07:35 AM


3Likes
LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks