• 大小: 537KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-13
  • 语言: Java
  • 标签: Java  

资源简介

公交查询系统Java(netbeans) 公交查询系统Java(netbeans) 公交查询系统Java(netbeans) 公交查询系统Java(netbeans) 公交查询系统Java(netbeans) 公交查询系统Java(netbeans)

资源截图

代码片段和文件信息

/*
 * DemoJWindow.java
 *
 * Created on 2006年3月23日 下午9:42
 *
 * To change this template choose Tools | Template Manager
 * and open the template in the editor.
 */

package traffic;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Toolkit;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.*;
import java.awt.*;

/**
 *
 * @author boyingking
 */
public class DemoJWindow {
    
    /** Creates a new instance of DemoJWindow */
    public DemoJWindow() {
    }
    public static void main(String args[])
    {
        WelcomeWindow welcome=new WelcomeWindow(5000);
        welcome.showWelcomeWindowAndExit();
    }
    
}

class WelcomeWindow extends javax.swing.JWindow {
    private int duration;
    Image ii;
    int iconWidth=498;
    int iconHeight=359;
    int liveTimecurrTime;
    public WelcomeWindow(int duration)
    {
        liveTime=duration/1000;
        ii=this.getToolkit().getImage(“D:\\9 课程设计\\公交车查询系统 -- netbeans\\welcome.JPG“);          
        Dimension welcomeScreen=Toolkit.getDefaultToolkit().getScreenSize();
        int x=(welcomeScreen.width-iconWidth)/2;
        int y=(welcomeScreen.height-iconHeight)/2;
        currTime=liveTime;
        this.setBounds(xyiconWidthiconHeight);
        this.setVisible(true);
        this.setAlwaysOnTop(true);
    }
    public void showWelcomeWindow()
    {        
        for(int z=0;z        {
        try
        {
           currTime=liveTime-z;
           repaint();//
           Thread.sleep(1000);
        }
        catch(Exception e)
        {
            e.printStackTrace();
        }        
        }        
        this.setVisible(false);        
    }
    
    
    public void showWelcomeWindowAndExit()
    {
        this.showWelcomeWindow();
        new 公交查询系统界面().setVisible(true);
    }
    public void update(Graphics g)
    {
        paint(g);
    }
    public void paint(Graphics g)
    {
     g.drawImage(ii00this);/*
     Font font=new Font(“宋体“Font.PLAIN26);
     g.setFont(font);             
     g.setColor(Color.white);
     g.drawString(“该窗口在“+currTime+“秒钟后自动消失“80150);*/
    }
}

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

     文件        690  2007-12-12 22:40  公交查询系统Java(netbeans)\build\classes\traffic\aa$1.class

     文件        505  2007-12-12 22:40  公交查询系统Java(netbeans)\build\classes\traffic\aa$2.class

     文件       3138  2007-12-12 22:40  公交查询系统Java(netbeans)\build\classes\traffic\aa.class

     文件        546  2007-12-12 22:40  公交查询系统Java(netbeans)\build\classes\traffic\DemoJWindow.class

     文件      18290  2007-12-12 22:40  公交查询系统Java(netbeans)\build\classes\traffic\welcome.JPG

     文件       1988  2007-12-12 22:40  公交查询系统Java(netbeans)\build\classes\traffic\WelcomeWindow.class

     文件        844  2008-01-03 08:17  公交查询系统Java(netbeans)\build\classes\traffic\公交查询系统界面$1.class

     文件        844  2008-01-03 08:17  公交查询系统Java(netbeans)\build\classes\traffic\公交查询系统界面$2.class

     文件        844  2008-01-03 08:17  公交查询系统Java(netbeans)\build\classes\traffic\公交查询系统界面$3.class

     文件        844  2008-01-03 08:17  公交查询系统Java(netbeans)\build\classes\traffic\公交查询系统界面$4.class

     文件        844  2008-01-03 08:17  公交查询系统Java(netbeans)\build\classes\traffic\公交查询系统界面$5.class

     文件        593  2008-01-03 08:17  公交查询系统Java(netbeans)\build\classes\traffic\公交查询系统界面$6.class

     文件      17925  2008-01-03 08:17  公交查询系统Java(netbeans)\build\classes\traffic\公交查询系统界面.class

     文件     129552  2007-12-12 22:40  公交查询系统Java(netbeans)\build\classes\traffic\界面.jpg

     文件       3716  2010-06-01 15:47  公交查询系统Java(netbeans)\build.xml

     文件     140545  2007-12-12 22:40  公交查询系统Java(netbeans)\dist\lib\swing-layout-1.0.jar

     文件       1303  2007-12-12 22:40  公交查询系统Java(netbeans)\dist\README.TXT

     文件     180264  2007-12-12 22:40  公交查询系统Java(netbeans)\dist\traffic.jar

     文件         85  2007-12-06 13:39  公交查询系统Java(netbeans)\manifest.mf

     文件      34072  2010-06-01 15:47  公交查询系统Java(netbeans)\nbproject\build-impl.xml

     文件        626  2010-06-01 15:47  公交查询系统Java(netbeans)\nbproject\genfiles.properties

     文件        287  2010-06-01 15:47  公交查询系统Java(netbeans)\nbproject\private\private.properties

     文件        362  2010-06-01 16:02  公交查询系统Java(netbeans)\nbproject\private\private.xml

     文件       2070  2010-06-01 15:47  公交查询系统Java(netbeans)\nbproject\project.properties

     文件        577  2007-12-06 13:39  公交查询系统Java(netbeans)\nbproject\project.xml

     文件        101  2008-01-03 08:17  公交查询系统Java(netbeans)\src\traffic\.LCK公交查询系统界面.java~

     文件       2322  2007-12-12 22:39  公交查询系统Java(netbeans)\src\traffic\DemoJWindow.java

     文件      18290  2007-12-11 14:46  公交查询系统Java(netbeans)\src\traffic\welcome.JPG

     文件      37781  2008-01-03 08:17  公交查询系统Java(netbeans)\src\traffic\公交查询系统界面.form

     文件      34167  2008-01-03 08:17  公交查询系统Java(netbeans)\src\traffic\公交查询系统界面.java

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

评论

共有 条评论