package apples;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
public class gui2 extends JFrame {
private JPanel mousepanel;
private JLabel statusbar;
public gui2 () {
super("title");
mousepanel.setBackground(Color.WHITE);
add(mousepanel, BorderLayout.CENTER);
statusbar = new JLabel("dfault");
add(statusbar, BorderLayout.SOUTH);
Handlerclass handler = new Handlerclass();
mousepanel.addMouseListener(handler);
mousepanel.addMouseMotionListener(handler);
}
}
Comments
Post a Comment