This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Adding JButton Array to a applet issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Adding JButton Array to a applet issue" Watch "Adding JButton Array to a applet issue" New topic
Author

Adding JButton Array to a applet issue

john-paul York
Greenhorn

Joined: Feb 15, 2011
Posts: 16
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

Joined: Sep 08, 2007
Posts: 3068
    
  33

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.


Mohamed Sanaulla | My Blog
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5

Moving to our GUIs forum.


luck, db
There are no new questions, but there may be new answers.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Adding JButton Array to a applet issue
 
Similar Threads
Ohhhhh this has taken ALLLL DAY!
Help needed with emoticons in a chat application
problem with handling the states of the events
basic things with awt
tictactoe help