I am trying to create a 7 by 7 grid of JButtons in java. I quite frankly have very little idea about how to go about this. its eventally gonna be the game ConnectFour, but I just need the board to get started. this is what i got so far,
import javax.swing.*;
import java.awt.*;
public class ConnectFour extends JFrame{
public ConnectFour(){
JPanel board = new JPanel(new GridLayout(7, 7));
JButton[][] b = new JButton[7][7];
...
i know thats not much... thanks
2006-11-02
16:27:11
·
2 answers
·
asked by
snoboarder2k6
3
in
Computers & Internet
➔ Programming & Design