|
-
January 4th, 2009, 08:56 AM
#3
Re: Java swing help!
Yes you were right, i was kinda trying to copy something straight out of my java book without thinking about it! Instead I just added one panel to another panel
Sorry but I have another question, is it possible to output a variable in a message box, e.g.:
Code:
if (source == menuStats)
{
JOptionPane.showMessageDialog(null, "Statistics\nGames won:", winCount);
}
winCount is just an int, thanks for any help guys! and thanks postmortem
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|