这个上面要怎么Java图片
import java.awt.*;import javax.swing.*;public class mytext extends JFrame{
// 用户名文本框
private JTextField jtf =new JTextField();
// 密码文本框
private JPasswordField jpwd=new JPasswordField();
private JLabel jl1,jl2,jl3;
// 添加按键
private JButton btn1=new JButton("登录");
private JButton btn2=new JButton("退出");
public mytext() {
super("系统设置");
}
public void init() {
this.setSize(800,600);
this.setLayout(null);
// Image image=new ImageIcon("image//2.png").getImage();
// jl3.setIcon(new ImageIcon(image));
// jl3.setBounds(0,0,100,300);
jl1 =new JLabel("用户名:");
jl1.setBounds(240,350,80,25);
jtf.setBounds(320,350,160,25);
jl2=new JLabel("登录密码:");
jl2.setBounds(240,380,80,25);
jpwd.setBounds(320,380,160,25);
btn1.setBounds(280,420,60,30);
btn2.setBounds(380,420,60,30);
this.add(jl1);
this.add(jl2);
// this.add(jl3);
this.add(jtf);
this.add(jpwd);
this.add(btn1);
this.add(btn2);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setVisible(true);
}
public static void main(String[] args) {
// TODO Auto-generated method stub
mytext mt=new mytext();
mt.init();
}}