• 大小: 4.46MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-11-05
  • 语言: Java
  • 标签:

资源简介

Java拼图游戏课程设计 Java拼图游戏课程设计 Java拼图游戏课程设计

资源截图

代码片段和文件信息

package fuyang.pintu.code;
import java.io.IOException;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.sound.sampled.LineUnavailableException;
import javax.sound.sampled.UnsupportedAudioFileException;
import java.awt.BorderLayout;
import java.awt.Button;
import java.awt.Choice;
import java.awt.Color;
import java.awt.Container;
import java.awt.Dialog;
import java.awt.Font;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.Jframe;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
class MyMainframe extends Jframe implements ActionListener 
{
        
        private static final long serialVersionUID = 1L;
     Dialog dialog;            //  0000000000000000
     Thread  ChangeLabel ;     //  0000000000000000
     JButton l;                //00000000000000
     boolean onetime = true;    //00000000000000000
        MyCanvas myCanvas;
        JPanel panelNorthpanelPreview; 
        Button startpreviewsetaboutlevel; 
        Container container; 
       int dengji=1;
        public MyMainframe() 
        { 
                container=this.getContentPane();
                start=new Button(“开始“);
                start.addActionListener(this);    
                preview=new Button(“预览“);
                preview.addActionListener(this);  
                set = new Button(“设置“);
                set.addActionListener(this);  
                
                level=new  Button(“等级“);
                level.addActionListener(this);   
                
                about=new Button(“帮助“);
                about.addActionListener(this);
                
                dialog=new MyDialog(this“提示:“true);   //有模式的对话框000000000000
                l = new JButton(“00:00“); // 倒计时显示000000000000000000000000
         l.setFont(new Font(“宋体“ Font.BOLD 12)); 
         l.setForeground(Color.RED); 
         start.addActionListener(new ActionListener() { 
                    public void actionPerformed(ActionEvent arg0)
                    { if(dengji==1)
                      new ChangeLabel(“1:00“).start(); 
                    if(dengji==2)
                        new ChangeLabel(“2:00“).start(); 
                    if(dengji==3)
                        new ChangeLabel(“3:00“).start(); 
                    } 
                                                               });   
                                          //000000000000000000000000000
                panelPreview=new JPanel();
                panelPreview.setLayout(null);
                Icon icon=new ImageIcon (“images/pic_“+MyCanvas.pictureID+“.jpg“);
                JLabel label=new JLabel(icon);     
                label.setBounds(00400400);      
                panelPreview.add(label);           
                 
                panelNorth=new JPanel();
                panelNorth.setBack

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      17024  2008-12-06 18:39  12.jar

     文件    4460044  2008-12-06 18:35  images\12.wav

     文件     577453  2008-06-25 21:56  images\2.wav

     文件     159577  2008-06-21 18:07  images\pic_4.jpg

     文件       7166  2008-06-21 18:07  images\pic_4_1.jpg

     文件       9778  2008-06-21 18:07  images\pic_4_10.jpg

     文件       9750  2008-06-21 18:07  images\pic_4_11.jpg

     文件       9693  2008-06-21 18:07  images\pic_4_12.jpg

     文件       9528  2008-06-21 18:07  images\pic_4_13.jpg

     文件       9207  2008-06-21 18:07  images\pic_4_14.jpg

     文件       8420  2008-06-21 18:07  images\pic_4_15.jpg

     文件       8632  2008-06-21 18:07  images\pic_4_2.jpg

     文件      11585  2008-06-21 18:07  images\pic_4_3.jpg

     文件       7756  2008-06-21 18:07  images\pic_4_4.jpg

     文件       7769  2008-06-21 18:07  images\pic_4_5.jpg

     文件       9455  2008-06-21 18:07  images\pic_4_6.jpg

     文件       9814  2008-06-21 18:07  images\pic_4_7.jpg

     文件       8457  2008-06-21 18:07  images\pic_4_8.jpg

     文件       8862  2008-06-21 18:07  images\pic_4_9.jpg

     文件     145966  2008-06-21 20:40  images\pic_5.jpg

     文件       4962  2008-06-21 20:42  images\pic_5_1.jpg

     文件      14693  2008-06-21 20:42  images\pic_5_10.jpg

     文件      11891  2008-06-21 20:42  images\pic_5_11.jpg

     文件      11498  2008-06-21 20:42  images\pic_5_12.jpg

     文件       8792  2008-06-21 20:42  images\pic_5_13.jpg

     文件      13956  2008-06-21 20:42  images\pic_5_14.jpg

     文件      12114  2008-06-21 20:42  images\pic_5_15.jpg

     文件       5590  2008-06-21 20:42  images\pic_5_2.jpg

     文件       6779  2008-06-21 20:42  images\pic_5_3.jpg

     文件       7900  2008-06-21 20:42  images\pic_5_4.jpg

............此处省略35个文件信息

评论

共有 条评论