登录
首页 » Java » moveBox

moveBox

于 2010-05-26 发布 文件大小:270KB
0 170
下载积分: 1 下载次数: 10

代码说明:

  是一款时尚的推箱子的手机游戏,基于J2ME开发原理(Sokoban is a stylish mobile game, based on the principle of J2ME development)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Spring-3
    Spring 3.x企业应用开发实战 Spring 3.x企业应用开发实战
    2012-10-26 15:55:17下载
    积分:1
  • 复杂天气控件
    动态设置天气,根据自己的需求可选择折现或者圆滑曲线,直接导入项目即可使用,非常方便。
    2022-02-03 13:44:45下载
    积分:1
  • 小组做的一个模拟小型网上商城系统
    暑期时间小组做的一个小型的模拟网上商城购物的系统,主要是出售手机的商城,用java语言编写,功能不是很全面,仅供参考
    2022-03-02 10:50:47下载
    积分:1
  • src
    简单的ping实现,包括界面的展现,ping 的结果显示(easy ping command )
    2013-10-23 11:41:48下载
    积分:1
  • FCKeditor-2.3
    fckeditor 2.3无法兼容chrome,而新版本又做了很大的修改,要升级很麻烦。可直接替换原来的fckeditor库,解决chrome兼容问题。(FCKeditor 2.3 is not compatible with chrome, and the new version has made a lot of modifications, it is difficult to upgrade. It can directly replace the original FCKeditor library to solve the problem of chrome compatibility.)
    2020-06-20 20:20:02下载
    积分:1
  • An instance of the source code for mobile phones, compact for learning and refer...
    手机的实例的源代码,紧供学习和参考!要先自己弄好了环境才可以用这个代码!-An instance of the source code for mobile phones, compact for learning and reference! First before their own hands with the environment can use this code!
    2022-04-20 11:00:25下载
    积分:1
  • 面向对象程序设计(Java)实验2
    说明:  北京理工大学面向对象教程的JAVA实验,包含实验内容和数据还有源码(JAVA Experiment of Object-Oriented Course in Beijing University of Technology)
    2019-06-29 17:36:34下载
    积分:1
  • java实验室预约管理系统(源码+数据库脚本)
    随着高校教学资源逐步开发,高校教育资源的应用种类逐步增多。而实验室作为高校基本教育资源之一,与日常教学工作开展、课堂项目实践有着密切联系。由此,如何借助新时期技术,加强高校实验室应用数据信息程序开发,在高校智能化管理程序推广中占有基础性地位。该软件是以Java语言为实现预言。其功能在系统内部有源代码直接完成,操作人员只需输入一些简单的汉字,数字,即可达到自己的目标。 登陆账号:admin 密码:123456 package com.company; import com.company.Bean.Student;import com.company.Bean.Teacher;import com.company.Bean.User;import com.company.DB.DB; import javax.swing.*;import java.awt.event.ActionEvent;import java.awt.event.ActionListener; public class Main extends JFrame {    private JPanel p;    private JLabel lblName,lblPwd,lblRole;    private JTextField txtName;    private JPasswordField txtPwd;    private JButton btnOk,btnCancle;    String[] s = {"学生","教师","管理员"};    private JComboBox comboBox;    public Main(){        super("用户登录界面");        p = new JPanel();        p.setLayout(null);        lblRole=new JLabel("角色:");        comboBox=new JComboBox(s);        lblName = new JLabel("账户:");        lblPwd = new JLabel("密码:");        txtName = new JTextField(20);        txtPwd = new JPasswordField(20);        btnOk = new JButton("登录");        btnCancle = new JButton("取消");        //注册确定按钮的事件处理        btnOk.addActionListener(new ActionListener() {            @Override            public void actionPerformed(ActionEvent e) {                String strName = txtName.getText();                String strPwd = new String(txtPwd.getPassword());                System.out.println("用户名:" strName "密码:" strPwd);             }        });        //注册取消按钮的事件处理        btnCancle.addActionListener(new ActionListener() {             @Override            public void actionPerformed(ActionEvent e) {                //清空                txtName.setText("");                txtPwd.setText("");             }        });        lblRole.setBounds(90,50,60,25);        comboBox.setBounds(130,50,140,25);        lblName.setBounds(90,80,60,25);        txtName.setBounds(130,80,140,25);        lblPwd.setBounds(90,110,60,25);        txtPwd.setBounds(130,110,140,25);        btnOk.setBounds(130,150,60,25);        btnCancle.setBounds(200,150,60,25);        p.add(lblRole);        p.add(comboBox);        p.add(lblName);        p.add(txtName);        p.add(lblPwd);        p.add(txtPwd);        p.add(btnOk);        p.add(btnCancle);        this.add(p);        this.setSize(400,300);        this.setLocation(300,300);        //设置窗体不可改变大小        this.setResizable(false);        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);        btnOk.addActionListener(new ActionListener() {            @Override            public void actionPerformed(ActionEvent e) {               String account =txtName.getText().trim();               String password=txtPwd.getText().trim();               String role=null;               if(comboBox.getSelectedItem().equals("管理员")){                   role="admin";               }               else if(comboBox.getSelectedItem().equals("学生")) {                   role="student";               }               else{                   role="teacher";               }                if(role.equals("admin")){                    User user=new User(account,password);                    if (DB.Login(user)) {                        JOptionPane.showMessageDialog(null, "登录成功", "", JOptionPane.PLAIN_MESSAGE);                        AdminMain adminMain = new AdminMain();                        adminMain.setVisible(true);                        Main.this.setVisible(false);                    }                      else {                        JOptionPane.showMessageDialog(null,"账号密码错误", "", JOptionPane.PLAIN_MESSAGE);                    }                }                else if (role.equals("student")){                    Student student=new Student(account,password);                    if(DB.studentLogin(student)){                        StudentMain studentMain=new  StudentMain();                        studentMain.setVisible(true);                        Main.this.setVisible(false);                        JOptionPane.showMessageDialog(null, "登录成功", "", JOptionPane.PLAIN_MESSAGE);                    }                    else {                        JOptionPane.showMessageDialog(null,"账号密码错误", "", JOptionPane.PLAIN_MESSAGE);                    }                }                else if (role.equals("teacher")){                   Teacher teacher=new Teacher(account,password);                    if(DB.teacherLogin(teacher)){                        TeacherMain teacherMain=new TeacherMain();                        teacherMain.setVisible(true);                        Main.this.setVisible(false);                        JOptionPane.showMessageDialog(null, "登录成功", "", JOptionPane.PLAIN_MESSAGE);                    }                    else {                        JOptionPane.showMessageDialog(null,"账号密码错误", "", JOptionPane.PLAIN_MESSAGE);                    }                }            }        });        btnCancle.addActionListener(new ActionListener() {            @Override            public void actionPerformed(ActionEvent e) {                            }        });    }    public static void main(String[] args) { // write your code here        Main main=new Main();        main.setVisible(true);     }}
    2020-12-12下载
    积分:1
  • beginning_spring_2_from_novice_to_professional
    Beginning_Spring_2_From_Novice_to_Professional-3877.it is useful for computer student and interested in computer
    2022-04-20 20:07:03下载
    积分:1
  • 基于SSH的网上商城源代码
    基于SSH框架(strust hibernate spring)的SUNNYBUY源代码(大二课程设计)附加MYSQL数据库以及项目报告
    2023-07-12 02:25:07下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载