This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
Aparently I have been doing text-based java for a bit too long and im rusty on the GUI side, im making a really simple archery game with the target on the top of the window and the shots, score and restart button on the bottom. I have the target done fine but I just cant remeber how to atucally add labels and buttons :S. Below is my code so far:
I feel like a complete idiot because I just cant remember what to do, i know it has something to do with creating a panel but other than that im lost, any help would be greatly apreciated. [ November 04, 2004: Message edited by: Peter Shipway ]
Jeff Bosch
Ranch Hand
Joined: Jul 30, 2003
Posts: 804
posted
0
[ November 04, 2004: Message edited by: Jeff Bosch ]
Give a man a fish, he'll eat for one day. <br />Teach a man to fish, he'll drink all your beer.<br /> <br />Cheers,<br /> <br />Jeff (SCJP 1.4, SCJD in progress, if you can call that progress...)
Peter Shipway
Ranch Hand
Joined: Mar 25, 2004
Posts: 71
posted
0
Hey yo,
Thanks for that, I have another problem now however How do i add the Content pane to the atucal window? As i dont think its possible to add the shapes to a content pane (or not the way im doing it) here is my new code:
Again any help would be great
Michael Dunn
Ranch Hand
Joined: Jun 09, 2003
Posts: 4632
posted
0
see if this makes any more sense
Layne Lund
Ranch Hand
Joined: Dec 06, 2001
Posts: 3061
posted
0
You might get more help if you ask this question at the Swing / AWT / SWT / JFace forum. That is the place to discuss GUI programming around these parts.
Layne
p.s. Maybe an admin can just move this thread for you.