DebugFifteen1.java - import javax.swing import java.awt...

This preview shows page 1 out of 1 page.

import javax.swing.*; import java.awt.*; import java.awt.*; import java.awt.event.*; import java.awt.Color; public class DebugFifteen1 extends JFrame implements ActionListener { JButton button1 = new JButton("Red"); JButton button2 = new JButton("Pink"); JButton button3 = new JButton("Orange"); JButton button4 = new JButton("Yellow"); JButton button5 = new JButton("Black"); JPanel panel1 = new JPanel(new FlowLayout()); JPanel panel2 = new JPanel(); public DebugFifteen1() { setLayout(new GridLayout(1, 2)); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); add(panel1); add(panel2); panel1.add(button1); panel1.add(button1); panel1.add(button1); panel1.add(button1); panel1.add(button1); button1.addActionListener();

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture