资源简介
tomcat_5.5.26,需要的自取,是一个免费的开放源代码的Web 应用服务器,属于轻量级应用服务器,在中小型系统和并发访问用户不是很多的场合下被普遍使用,是开发和调试JSP 程序的首选。
代码片段和文件信息
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License Version 2.0
* (the “License“); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing software
* distributed under the License is distributed on an “AS IS“ BASIS
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import java.util.*;
import java.awt.*;
import java.applet.*;
import java.text.*;
/**
* Time!
*
* @author Rachel Gollub
*/
public class Clock2 extends applet implements Runnable {
Thread timer; // The thread that displays clock
int lastxs lastys lastxm
lastym lastxh lastyh; // Dimensions used to draw hands
SimpleDateFormat formatter; // Formats the date displayed
String lastdate; // String to hold date displayed
Font clockFaceFont; // Font for number display on clock
Date currentDate; // Used to get date to display
Color handColor; // Color of main hands and dial
Color numberColor; // Color of second hand and numbers
public void init() {
int xy;
lastxs = lastys = lastxm = lastym = lastxh = lastyh = 0;
formatter = new SimpleDateFormat (“EEE MMM dd hh:mm:ss yyyy“ Locale.getDefault());
currentDate = new Date();
lastdate = formatter.format(currentDate);
clockFaceFont = new Font(“Serif“ Font.PLAIN 14);
handColor = Color.blue;
numberColor = Color.darkGray;
try {
setBackground(new Color(Integer.parseInt(getParameter(“bgcolor“)16)));
} catch (Exception E) { }
try {
handColor = new Color(Integer.parseInt(getParameter(“fgcolor1“)16));
} catch (Exception E) { }
try {
numberColor = new Color(Integer.parseInt(getParameter(“fgcolor2“)16));
} catch (Exception E) { }
resize(300300); // Set clock window size
}
// Plotpoints allows calculation to only cover 45 degrees of the circle
// and then mirror
public void plotpoints(int x0 int y0 int x int y Graphics g) {
g.drawLine(x0+xy0+yx0+xy0+y);
g.drawLine(x0+yy0+xx0+yy0+x);
g.drawLine(x0+yy0-xx0+yy0-x);
g.drawLine(x0+xy0-yx0+xy0-y);
g.drawLine(x0-xy0-yx0-xy0-y);
g.drawLine(x0-yy0-xx0-yy0-x);
g.drawLine(x0-yy0+xx0-yy0+x);
g.drawLine(x0-xy0+yx0-xy0+y);
}
//
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2008-01-28 21:41 apache-tomcat-5.5.26\
目录 0 2008-01-28 21:40 apache-tomcat-5.5.26\bin\
文件 24093 2008-01-28 21:38 apache-tomcat-5.5.26\bin\bootstrap.jar
文件 1880 2008-01-28 21:38 apache-tomcat-5.5.26\bin\catalina-tasks.xm
文件 9134 2008-01-28 21:38 apache-tomcat-5.5.26\bin\catalina.bat
文件 12128 2008-01-28 21:38 apache-tomcat-5.5.26\bin\catalina.sh
文件 9341 2008-01-28 21:38 apache-tomcat-5.5.26\bin\commons-daemon.jar
文件 52313 2008-01-28 21:38 apache-tomcat-5.5.26\bin\commons-logging-api-1.1.1.jar
文件 509 2008-01-28 21:38 apache-tomcat-5.5.26\bin\cpappend.bat
文件 1282 2008-01-28 21:38 apache-tomcat-5.5.26\bin\digest.bat
文件 841 2008-01-28 21:38 apache-tomcat-5.5.26\bin\digest.sh
文件 1743 2008-01-28 21:38 apache-tomcat-5.5.26\bin\jkstatus-tasks.xm
文件 2167 2008-01-28 21:38 apache-tomcat-5.5.26\bin\jmxaccessor-tasks.xm
文件 74398 2008-01-28 21:38 apache-tomcat-5.5.26\bin\jsvc.tar.gz
文件 4260 2008-01-28 21:38 apache-tomcat-5.5.26\bin\service.bat
文件 2413 2008-01-28 21:38 apache-tomcat-5.5.26\bin\setclasspath.bat
文件 3008 2008-01-28 21:38 apache-tomcat-5.5.26\bin\setclasspath.sh
文件 1271 2008-01-28 21:38 apache-tomcat-5.5.26\bin\shutdown.bat
文件 780 2008-01-28 21:38 apache-tomcat-5.5.26\bin\shutdown.sh
文件 1272 2008-01-28 21:38 apache-tomcat-5.5.26\bin\startup.bat
文件 1173 2008-01-28 21:38 apache-tomcat-5.5.26\bin\startup.sh
文件 13017 2008-01-28 21:38 apache-tomcat-5.5.26\bin\tomcat-juli.jar
文件 187968 2008-01-28 21:38 apache-tomcat-5.5.26\bin\tomcat-native.tar.gz
文件 57344 2008-01-28 21:40 apache-tomcat-5.5.26\bin\tomcat5.exe
文件 98304 2008-01-28 21:40 apache-tomcat-5.5.26\bin\tomcat5w.exe
文件 2233 2008-01-28 21:38 apache-tomcat-5.5.26\bin\tool-wrapper.bat
文件 2545 2008-01-28 21:38 apache-tomcat-5.5.26\bin\tool-wrapper.sh
文件 1278 2008-01-28 21:38 apache-tomcat-5.5.26\bin\version.bat
文件 784 2008-01-28 21:38 apache-tomcat-5.5.26\bin\version.sh
目录 0 2008-01-28 21:38 apache-tomcat-5.5.26\common\
目录 0 2008-01-28 21:38 apache-tomcat-5.5.26\common\classes\
............此处省略979个文件信息
- 上一篇:kafka java依赖包
- 下一篇:法大大电子合同/在线合同签署实现资料
相关资源
- tomcat6-X64位
- 网上购物系统jsp+mysql+tomcat
- apache-tomcat-6.0.43.rar
- Tomcat7.0压缩包
- apache-tomcat-8.0.32-windows-x64 64位
- 基于Java的敬老院管理系统的设计和实
- Javaweb的增删改查的小案例(jsp+tomca
- tomcat-5.5
- 学生管理系统源码+Tomcat7.rar
- apache-tomcat-9.0.14
- 传智书城功能完整
- apache-tomcat-8.0.51
- tomcat7linux版本
- 物流管理系统 java+sqlserver+tomcat毕业设
- 在线考试系统,JSP+TOMCAT+JAVABEAN+JQUER
- 图书管理系统 --- javaweb源码
- tomcat6.0.18
- apache-tomcat-7.0.91
- 网上购物系统jsp mysql tomcat
- 一个简单的javaweb人事管理系统实现案
- 64位Win2008下IIS7.5与Tomcat7共用80端口,
- 企业人力资源管理系统毕业设计Stru
- apache-tomcat-7.0.57
- 网上书店JSP+SQL+Tomcat
- tomcat6.0安装包
- 基于Tomcat7、Java、Ext、WebSocket的聊天室
- apache-tomcat-6.0.13.zip
- tcnative-1.dll(最新tomcat-native-1.2.21-op
- 毕业设计论文Java、Tomcat、MySQL
- JSP+TOMCAT+access图书馆里系统精简版
评论
共有 条评论