小弟做的一个简单的画图板。因为没时间,所以有些功能没有实现。。以后再实现一下哈哈
[此贴子已经被作者于2007-6-24 13:37:42编辑过]
[此贴子已经被作者于2007-6-24 13:37:42编辑过]
太牛了,这样都能运行啊!!
/**
*
*/
package paint;
import java.awt.*;
import java.awt.Graphics;
import javax.swing.*;/**
* @author 狂放不羁
*
*/
public class Paint extends JFrame {
private Statusbar statusbar;//要是不把这行注释掉怎么运行啊??
private MyMenuBar menubar;
private DrawJpanel drawJpanel;
private Tools tools;
private Handle handle;
public Paint(String title) {
super(title);
setLayout(null);
handle = new Handle();
handle.setPaint(this);
menubar = new MyMenuBar(handle);
setJMenuBar(menubar);drawJpanel = new DrawJpanel(handle);
getContentPane().add(drawJpanel);
tools = new Tools(handle);
getContentPane().add(tools);
getContentPane().setBackground(Color.lightGray);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setSize(800, 600);
setLocation(25,25);
setVisible(true);
}
public static void main(String[] args){
Handle handle = new Handle();
handle.start();
}
}
[此贴子已经被作者于2007-6-24 13:45:55编辑过]