资源简介
Tomcat是Apache 软件基金会(Apache Software Foundation)的Jakarta 项目中的一个核心项目,由Apache、Sun 和其他一些公司及个人共同开发而成。由于有了Sun 的参与和支持,最新的Servlet 和JSP 规范总是能在Tomcat 中得到体现,Tomcat 5 支持最新的Servlet 2.4 和JSP 2.0 规范。因为Tomcat 技术先进、性能稳定,而且免费,因而深受Java 爱好者的喜爱并得到了部分软件开发商的认可,成为目前比较流行的Web 应用服务器。目前最新版本是6.0。
代码片段和文件信息
/*
* 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);
}
//
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 23669 2007-03-05 08:26 apache-tomcat-5.5.23\bin\bootstrap.jar
文件 968 2007-03-05 08:26 apache-tomcat-5.5.23\bin\catalina-tasks.xm
文件 8962 2007-03-05 08:26 apache-tomcat-5.5.23\bin\catalina.bat
文件 12044 2007-03-05 08:26 apache-tomcat-5.5.23\bin\catalina.sh
文件 9341 2007-03-05 08:26 apache-tomcat-5.5.23\bin\commons-daemon.jar
文件 26202 2007-03-05 08:26 apache-tomcat-5.5.23\bin\commons-logging-api.jar
文件 509 2007-03-05 08:26 apache-tomcat-5.5.23\bin\cpappend.bat
文件 1282 2007-03-05 08:26 apache-tomcat-5.5.23\bin\digest.bat
文件 841 2007-03-05 08:26 apache-tomcat-5.5.23\bin\digest.sh
文件 899 2007-03-05 08:26 apache-tomcat-5.5.23\bin\jkstatus-tasks.xm
文件 1323 2007-03-05 08:26 apache-tomcat-5.5.23\bin\jmxaccessor-tasks.xm
文件 74398 2007-03-05 08:26 apache-tomcat-5.5.23\bin\jsvc.tar.gz
文件 449 2009-04-22 17:02 apache-tomcat-5.5.23\bin\response.xm
文件 4122 2007-03-05 08:26 apache-tomcat-5.5.23\bin\service.bat
文件 2413 2007-03-05 08:26 apache-tomcat-5.5.23\bin\setclasspath.bat
文件 3008 2007-03-05 08:26 apache-tomcat-5.5.23\bin\setclasspath.sh
文件 1271 2007-03-05 08:26 apache-tomcat-5.5.23\bin\shutdown.bat
文件 780 2007-03-05 08:26 apache-tomcat-5.5.23\bin\shutdown.sh
文件 1272 2007-03-05 08:26 apache-tomcat-5.5.23\bin\startup.bat
文件 1173 2007-03-05 08:26 apache-tomcat-5.5.23\bin\startup.sh
文件 12972 2007-03-05 08:26 apache-tomcat-5.5.23\bin\tomcat-juli.jar
文件 173510 2007-03-05 08:26 apache-tomcat-5.5.23\bin\tomcat-native.tar.gz
文件 53248 2007-03-05 08:26 apache-tomcat-5.5.23\bin\tomcat5.exe
文件 98304 2007-03-05 08:26 apache-tomcat-5.5.23\bin\tomcat5w.exe
文件 2233 2007-03-05 08:26 apache-tomcat-5.5.23\bin\tool-wrapper.bat
文件 2545 2007-03-05 08:26 apache-tomcat-5.5.23\bin\tool-wrapper.sh
文件 1278 2007-03-05 08:26 apache-tomcat-5.5.23\bin\version.bat
文件 784 2007-03-05 08:26 apache-tomcat-5.5.23\bin\version.sh
目录 0 2009-04-22 16:59 apache-tomcat-5.5.23\bin
目录 0 2007-03-05 08:26 apache-tomcat-5.5.23\common\classes
............此处省略1257个文件信息
相关资源
- org.apache.commons jar包
- 使用JSP+jqueryUI+java Servlet通过Apache PO
- Apache Tomcat6.0 64位(安装版和免安装版
- Apache Tomcat 6
- 利用apache-apollo-1.7.1创建MQTT broker和服
- Apache-cxf 2.2.8压缩包
- apache-tomcat-10.0.0-M6.exe
- apache-common jar包
- org.apache.commons中的各种jar包
- apache-cxf-2.5.9
- apache-tomcat-6.0.53版本32位和64位
- Apache commons API(整套全版
- IOUtils(包含apache全部的commons jar包)
- apache-jmeter-3.0
- Apache实现文件解压缩
- Apache Commons官网下的jar包
- orgapache_commons
- apache-groovy-sdk-2.4.16
- apache-jmeter-5.2.1.zip
- apache-activemq-5.16.0-bin-windows.zip----wind
- apache-jmeter-5.1.1(Requires Java 8+).zip
- spark apache日志分析、流数据处理教程
- apache.soap jar包
- java Excel数据导出,HSSH、 XSSF、SXSSF、
- org.apache.commons.net.ftp.FTPClient jar包下载
- 使用java Apache poi 根据word模板生成wo
- org.apache.poi.xwpf.converter
- org.apache.commons.lang jar包下载256965
- org.apache.commons.lang jar包
- org.apache.commons.lang
评论
共有 条评论