资源简介
一款JAVA编写的防迅雷下载器,其界面与迅雷下载器一模一样,下载功能也很强大,内含源代码及源代码注释,附有详细图片说明,参考该文档学习JAVA网络编程,能起到事半功倍作用。
代码片段和文件信息
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space
// Source File Name: AboutDialog.java
package downfile;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.IOException;
import java.net.URLClassLoader;
import javax.swing.*;
public class AboutDialog extends JDialog
{
ImageIcon meicon;
JLabel me;
JEditorPane AboutPane;
JButton close;
AboutDialog(Jframe parent String title)
{
super(parent title true);
meicon = new ImageIcon(getImage(“images/me.gif“));
me = new JLabel(meicon);
AboutPane = new JEditorPane();
close = new JButton(“close“);
JPanel panel = new JPanel();
setContentPane(panel);
panel.setBackground(Color.WHITE);
panel.setLayout(null);
setSize(400 320);
URLClassLoader urlLoader = (URLClassLoader)getClass().getClassLoader();
java.net.URL url = urlLoader.findResource(“images/cursor.gif“);
Image animateImage = (new ImageIcon(url)).getImage();
java.awt.Cursor cursor = Toolkit.getDefaultToolkit().createCustomCursor(animateImage new Point(0 0) “cursor“);
setCursor(cursor);
me.setBounds(new Rectangle(0 0 148 235));
panel.add(me);
close.setBackground(Color.WHITE);
close.setBounds(new Rectangle(180 245 70 30));
panel.add(close);
AboutPane.setBounds(new Rectangle(148 0 240 235));
panel.add(AboutPane);
AboutPane.setEditable(false);
AboutPane.setCursor(cursor);
URLClassLoader urlLoader1 = (URLClassLoader)getClass().getClassLoader();
java.net.URL url1 = null;
url1 = urlLoader1.findResource(“doc/about.htm“);
try
{
AboutPane.setPage(url1);
}
catch (IOException e)
{
e.printStackTrace();
}
close.addActionListener(new ActionListener() {
final AboutDialog this$0;
public void actionPerformed(ActionEvent arg0)
{
dispose();
}
{
this$0 = AboutDialog.this;
super();
}
});
}
Image getImage(String filename)
{
URLClassLoader urlLoader = (URLClassLoader)getClass().getClassLoader();
java.net.URL url = null;
Image image = null;
url = urlLoader.findResource(filename);
image = Toolkit.getDefaultToolkit().getImage(url);
MediaTracker mediatracker = new MediaTracker(this);
try
{
mediatracker.addImage(image 0);
mediatracker.waitForID(0);
}
catch (InterruptedException _ex)
{
image = null;
}
if (mediatracker.isErrorID(0))
image = null;
return image;
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
.CA.... 60 2008-09-07 10:36 java下载器\doc\lishi.txt
.CA.... 0 2008-09-07 10:36 java下载器\doc\图片.txt
.CA.... 0 2008-09-07 10:36 java下载器\doc\垃圾箱.txt
.CA.... 113 2008-09-07 10:36 java下载器\doc\已经下载.txt
.CA.... 0 2008-09-07 10:36 java下载器\doc\正在下载.txt
.CA.... 0 2008-09-07 10:36 java下载器\doc\游戏.txt
.CA.... 0 2008-09-07 10:36 java下载器\doc\电影.txt
.CA.... 0 2008-09-07 10:36 java下载器\doc\软件.txt
.CA.... 0 2008-09-07 10:36 java下载器\doc\音乐.txt
.CA.... 287705 2006-11-09 14:52 java下载器\java下载器.jar
.CA.... 3 2007-03-21 12:13 java下载器\peizhi.ini
.CA.... 2626 2008-09-07 10:34 java下载器\~java下载器.jar\downfile\AboutDialog.java
.CA.... 19847 2008-09-07 10:34 java下载器\~java下载器.jar\downfile\Download.java
.CA.... 3644 2008-09-07 10:34 java下载器\~java下载器.jar\downfile\DownloadSplitter.java
.CA.... 6738 2008-09-07 10:34 java下载器\~java下载器.jar\downfile\DownloadsTableModel.java
.CA.... 1815 2008-09-07 10:34 java下载器\~java下载器.jar\downfile\FormatTime.java
.CA.... 3032 2008-09-07 10:34 java下载器\~java下载器.jar\downfile\HelpDialog.java
.CA.... 844 2008-09-07 10:34 java下载器\~java下载器.jar\downfile\JLabelRenderer.java
.CA.... 2725 2008-09-07 10:34 java下载器\~java下载器.jar\downfile\JSplashWindowPlus.java
.CA.... 58600 2008-09-07 10:34 java下载器\~java下载器.jar\downfile\Mainfr
.CA.... 695 2008-09-07 10:34 java下载器\~java下载器.jar\downfile\Panel.java
.CA.... 774 2008-09-07 10:34 java下载器\~java下载器.jar\downfile\PopupListener.java
.CA.... 781 2008-09-07 10:34 java下载器\~java下载器.jar\downfile\ProgressRenderer.java
.CA.... 6322 2008-09-07 10:34 java下载器\~java下载器.jar\downfile\SetUpDialog.java
.CA.... 3328 2008-09-07 10:34 java下载器\~java下载器.jar\downfile\ShuXingDialog.java
.CA.... 752 2008-09-07 10:34 java下载器\~java下载器.jar\downfile\Sound.java
.CA.... 7381 2008-09-07 10:34 java下载器\~java下载器.jar\downfile\SuspendedDialog.java
.CA.... 808 2008-09-07 10:34 java下载器\~java下载器.jar\downfile\SuspendedPanel.java
.CA.... 2655 2008-09-07 10:34 java下载器\~java下载器.jar\downfile\Timer.java
.CA.... 1125 2008-09-07 10:34 java下载器\~java下载器.jar\downfile\TiquFtpUrl.java
............此处省略11个文件信息
相关资源
- jsp成绩管理系统jsp servlet javabean
- 贪吃蛇(java 源码 eclipse项目)
- java实现验证码代码
- 自动出题系统(java 课程设计)
- Java实现的公交查询系统代码
- 实例22 分割一个面板(java绝对新手实
- java 程序设计网页浏览器
- java核心笔记 这是很基础的笔记 我自
- 网吧管理系统-Java
- 高校教材购销系统(java编的)
- 软件工程课程设计报告--java学生管理
- java英汉-汉英互译电子词典程序(顶)
- JAVA写的网络抓包分析程序
- java远程进行telnetftpssh连接的方法及源
- JavaEE图书管理系统95427
- java多线程控制的赛跑程序
- java制作360度全景页面的源码和脚本
- 进制转换器(java)
- java中画带箭头的线
- 【教程】100个Java GUI swing的小程序.r
- JAVA经典练习题
- java课程设计《客房管理系统》
- Java串口调试工具源码
- windows 系统下启动与结束java的jar包的
- Java HttpClient 4.x Jar包
-
ba
se64Encode编码,jar包源代码打包 - java web学生管理系统(源码+数据库+截
- JavaWeb停车场管理系统(源代码,数据
- Java Web实现的易买网系统网站(源码
- 森林冰火人单人版(源码)
评论
共有 条评论