Search:

Type: Posts; User: javapenguin

Search: Search took 0.09 seconds.

  1. Re: Starting and Stopping a loop with JButtons

    Quit = new QuitButton();

    This is a bad idea. You've told Quit that it's an object of class QuitButton.

    Unless you have a class called QuitButton.
  2. Re: Starting and Stopping a loop with JButtons

    Your whole class is a JPanel. Why are you adding another JPanel to it?

    I've done it where I've had a whole class that was a JFrame but I used a JPanel to put everything on, that way I could add...
  3. Re: Starting and Stopping a loop with JButtons

    import javax.swing.*;
    import java.awt.*;

    @SuppressWarnings ("serial")

    public class GameOfLifeApp extends JFrame {

    // constructor
    public GameOfLifeApp (String title, String fname) {
    //...
Results 1 to 3 of 3