返回列表 發帖
  1. import javax.swing.*;
  2. public class Ch81 {
  3.         private JFrame fm;
  4.         private JLabel lb;
  5.         private ImageIcon icon;

  6.         Ch81()
  7.         {
  8.             icon=new ImageIcon(Ch81.class.getResource("pic/2stiens gate.jpg"));       
  9.             lb=new JLabel(icon);
  10.             lb.setBounds(5,5,1290,1080);
  11.             
  12.             fm=new JFrame("命運石之門");
  13.             fm.setBounds(100,100,1300,1084);
  14.             fm.setVisible(true);
  15.             fm.setResizable(false);
  16.             fm.setLayout(null);
  17.             fm.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  18.             fm.add(lb);
  19.         }
  20.         public static void main(String[] args) {
  21.             Ch81 app=new Ch81();       

  22.         }
複製代碼

TOP

返回列表