package ai;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
public class why {
public static void main(String[] args) {
JFrame jFrame=new JFrame("七夕爱心代码");
jFrame.setVisible(true);
jFrame.setSize(100,100);
jFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
jFrame.setLocationRelativeTo(null);
JPanel lJPanel=new JPanel();
jFrame.add(lJPanel);
JButton button=new JButton("LOVE");
jFrame.add(button);
button.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
int count=0;