主题:java 面板里怎么放置图片?
java 面板里怎么放置图片?
package qq;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.ImageIcon;
import javax.swing.border.TitledBorder;
import com.sun.java.swing.plaf.motif.MotifBorders.BevelBorder;
public class qq1 extends JFrame {
private JLabel jl1 = null;// 标签
private Image img=null;
private JButton jb1 = null;// 按钮
private JButton jb2 = null;// 按钮
private JButton jb3 = null;// 按钮
private JButton jb4 = null;// 按钮
private JPanel jp1 = null;//面板
private JPanel jp2 = null;//面板
private JPanel jp3 = null;//面板
private JPanel jp4 = null;//面板
private JPanel jp5 = null;//面板
private JPanel jp6 = null;//面板
private JPanel jp7 = null;//面板
package qq;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.ImageIcon;
import javax.swing.border.TitledBorder;
import com.sun.java.swing.plaf.motif.MotifBorders.BevelBorder;
public class qq1 extends JFrame {
private JLabel jl1 = null;// 标签
private Image img=null;
private JButton jb1 = null;// 按钮
private JButton jb2 = null;// 按钮
private JButton jb3 = null;// 按钮
private JButton jb4 = null;// 按钮
private JPanel jp1 = null;//面板
private JPanel jp2 = null;//面板
private JPanel jp3 = null;//面板
private JPanel jp4 = null;//面板
private JPanel jp5 = null;//面板
private JPanel jp6 = null;//面板
private JPanel jp7 = null;//面板