Search:

Type: Posts; User: iruffrice

Search: Search took 0.07 seconds.

  1. Re: How would I drop the button to the lowest column for Connect 4.

    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.util.Arrays;

    public class Main implements ActionListener{
    ...
  2. Re: How would I drop the button to the lowest column for Connect 4.

    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.util.Arrays;

    public class Main implements ActionListener{
    ...
  3. How would I drop the button to the lowest column for Connect 4.

    public void actionPerformed(ActionEvent e) {
    for (int row = grid.length - 1; row >= 0; row--) {
    for(int col = grid.length - 1; col >= 0; col--) {

    if(buttons[row][col]...
Results 1 to 3 of 3