This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Adding JButton Array to a applet issue

 
john-paul York
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am creating a simple tic tac toe game and when I try to add a JButton array to the applet it displays nothing, so I have for now went to displaying the buttons one at a time. My code as it stands now is as follows:



the code I tried to use to add a JButton array was like this(I used something like this for checkboxes in another program):



using the above my applet comes up blank..doing it the way at the top..it shows fine.
 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you adding the gamePanel to the Applet in the second case (using the JButton array). I dont see how these two are behaving different.
 
Darryl Burke
Bartender
Posts: 5132
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to our GUIs forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic