请教各位大神如何用这个模版编出个图像处理的程序 谢谢
package imust.javaframe;import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class JavaFrame extends JFrame {
JLabel mainjLabel = null;
BorderLayout mainLayout = new BorderLayout(); //边框布局
JMenuBar jmb = new JMenuBar(); //菜单栏
JMenu file, view;
public JavaFrame(String title)
{
super(title);
file = new JMenu("文件"); //jmenu菜单
JMenuItem dakai = new JMenuItem("打开");
file.add(dakai);
file.addSeparator();
JMenuItem tuichu = new JMenuItem("退出");
file.add(tuichu);
jmb.add(file);
view = new JMenu("关于");
JMenuItem banben = new JMenuItem("版本说明");
view.add(banben);
jmb.add(view);
// this.setSize(800, 600);
this.setJMenuBar(jmb);
mainjLabel = new JLabel("", JLabel.CENTER);
JScrollPane pane = new JScrollPane(mainjLabel);
this.add(pane, mainLayout.CENTER);
this.setVisible(true);
}
public static void main(String[] args) {
JavaFrame JavaFrameT = new JavaFrame("基于J2SE的数字图像处理软件");
JavaFrameT.setSize(800, 600);
// JavaFrameT.setJMenuBar(jmb);
JavaFrameT.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
}
});
}
}