<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<!-- This file edited for Java Jumpstart CD -->
<HEAD>
<META VALUE="keyword" CONTENTS="codesamples">
<META name="generator" content="HTML Tidy, see www.w3.org">
<TITLE>Examplets from The Java Developers Almanac 2000</TITLE>
<META name="OWNER" content="Editorial/JDC">
<META name="revision" content="@(#)index.src 1.29 03/17/99 JDC">
<STYLE type="text/css">
<!--
CODE {font-family: Courier, Monospace;
font-size: 12pt}
PRE {font-family: Courier, Monospace;
font-size: 11pt}
-->
</STYLE>
</HEAD>
<!-- Start Body Insert-->
<BODY bgcolor="#FFFFFF" text="#000000" link="#0000FF" alink=
"#FF0000" vlink="#660066">
<!-- End Body Insert-->
<!-- Start PageTop Insert -->
<TABLE>
<TR>
<TD>
<P></P>
<TABLE border="0" width="100%" cellpadding="0" cellspacing="0">
<TR valign="TOP">
<TD width="100%"><IMG src="../../../images/chiclet.row.gif" width=
"55" height="18" alt=""></TD>
<TD rowspan="4" align="RIGHT" width="152">
<IMG src="../../../images/developer.connection.header.gif" border="0"
height="42" width="319" alt="Java Developer Connection(SM)">
</TD>
</TR>
<TR valign="TOP">
<TD bgcolor="#FFFFFF" height="1" width="100%"><IMG src=
"../../../images/pixel.gif" height="1" width="1" alt=""></TD>
</TR>
<TR valign="TOP">
<TD bgcolor="#CC9966" height="1" width="100%"><IMG src=
"../../../images/pixel.gif" height="1" width="1" alt=""></TD>
</TR>
<TR valign="TOP">
<TD><IMG src="../../../images/codesamples.gif" width="165" height=
"22" alt="Code Samples" border="0"></TD>
</TR>
</TABLE>
<!-- End PageTop Insert -->
<TABLE border="0" cellpadding="0" cellspacing="0">
<TR>
<TD><FONT face="Verdana, Arial, Helvetica, sans-serif">
<!-- Template Version 2.0 -->
<!-- ================== -->
<!-- Start Main Content -->
<!-- ================== -->
<A name="top"></A></FONT>
<DIV align="right"><FONT face=
"Verdana, Arial, Helvetica, sans-serif"></FONT>
<H2><FONT face="Verdana, Arial, Helvetica, sans-serif">Examplets
from The Java Developers Almanac 2000<BR>
</FONT></H2>
</DIV>
<CENTER>
<TABLE border="0" cellpadding="0" cellspacing="0" width="90%">
<TR>
<TD bgcolor="#336666" height="2" width="90%"><IMG src=
"../../../images/pixel.gif" height="2" width="2" alt=""></TD>
</TR>
</TABLE>
</CENTER>
<TABLE border="0" cellspacing="0" cellpadding="0" width="90%">
<TR>
<TD valign="TOP"><FONT face=
"Verdana, Arial, Helvetica, sans-serif"></FONT>
<P><FONT face="Verdana, Arial, Helvetica, sans-serif"><BR>
</FONT></P>
<TABLE border="0" cellpadding="0" cellspacing="0" width="90%">
<TR>
<TD><FONT face="Verdana, Arial, Helvetica, sans-serif"><BR>
The following code Examplets<SUP><FONT size="-2">TM</FONT></SUP>
are Copyrighted 2000 by Addison-Wesley and Patrick Chan
and are provided as a courtesy for your educational, non-commercial use.
</FONT>
<BR>
<BR>
Examplets are code snippets that illustrate a particular task.
They're designed to show which classes and members are involved in
performing the task, and how the classes and members interact with
each other. You will see blue italicized text in an examplet; this
indicates code that should be replaced if you use it in your
program.</FONT>
<P><FONT face="Verdana, Arial, Helvetica, sans-serif">An examplet
can have enough detail for you to use it, as is. Or you might have
to get more information about the involved classes. A good place to
find information about the Java 2 Platform APIs is the <A href=
"../../../products/jdk/1.2/docs/api/index-files/index-1.html">Java
2 Platform API index</A>.</FONT></P>
<P><FONT face="Verdana, Arial, Helvetica, sans-serif">It's also
good practice to add catch clauses, as appropriate, to the
examplets. If the code of an examplet throws a checked exception,
the code is surrounded by a try/catch statement. However, to reduce
space and distraction, the catch clause is left blank. Catch
clauses should always handle the exception and should never be left
blank. So, at the very least, you should include a call to
<CODE>e.printStackTrace()</CODE> to display the exception on the
console.</FONT></P>
<P><FONT face="Verdana, Arial, Helvetica, sans-serif">You'll find
examplets in a variety of categories. See the <A href=
"#exmtoc">Table of Contents</A> for a list of categories, and the
examplets in each category.<BR clear="ALL">
<BR>
</FONT></P>
<CENTER><FONT face="Verdana, Arial, Helvetica, sans-serif"></FONT>
<TABLE border="0" cellpadding="0" cellspacing="0" width="90%">
<TR>
<TD bgcolor="#336666" height="2" width="90%"><IMG src=
"../../../images/pixel.gif" height="2" width="2" alt=""></TD>
</TR>
</TABLE>
</CENTER>
<FONT face="Verdana, Arial, Helvetica, sans-serif"><A name=
"exmtoc"></A></FONT>
<H3><FONT face="Verdana, Arial, Helvetica, sans-serif">Table of
Contents</FONT></H3>
<TABLE border="0" cellpadding="5" cellspacing="0">
<TR>
<TD valign="TOP"><FONT face=
"Verdana, Arial, Helvetica, sans-serif"><A href=
"#Accessibility">Accessibility</A><BR>
<A href="#java.lang">Arrays</A><BR>
<A href="#Applets">Applets</A><BR>
<A href="#java.lang">Application and System</A><BR>
<A href=
"#AWT (Abstract Windowing Toolkit)">AWT (Abstract Windowing Toolkit)</A><BR>
<IMG src="../../../images/pixel.gif" width="20" height="2" alt=""
border="0"><A href=
"#AWT (Abstract Windowing Toolkit) (java.awt)Clipboard">Clipboard</A><BR>
<IMG src="../../../images/pixel.gif" width="20" height="2" alt=""
border="0"><A href=
"#AWT (Abstract Windowing Toolkit) (java.awt)Drag and Drop">Drag and Drop</A><BR>
<IMG src="../../../images/pixel.gif" width="20" height="2" alt=""
border="0"><A href=
"#AWT (Abstract Windowing Toolkit) (java.awt)Events">Events</A><BR>
<IMG src="../../../images/pixel.gif" width="20" height="2" alt=""
border="0"><A href=
"#AWT (Abstract Windowing Toolkit) (java.awt)Fonts">Fonts</A><BR>
<IMG src="../../../images/pixel.gif" width="20" height="2" alt=""
border="0"><A href=
"#AWT (Abstract Windowing Toolkit) (java.awt)Shapes">Shapes</A><BR>
<A href="#Compression">Compression</A><BR>
<IMG src="../../../images/pixel.gif" width="20" height="2" alt=""
border="0"><A href=
"#Compression (java.util.zip)JAR files">JAR files</A><BR>
<A href="#Database - JDBC">Database - JDBC</A><BR>
<A href=
"#Data Structures and Algorithms">Data Structures and Algorithms</A><BR>
<A href=
"#Files, Streams, I/O">Files, Streams, I/O</A><BR>
<A href="#Images">Images</A><BR>
<A href="#Internationization">Internationization</A><BR>
<A href="#JavaBeans (tm)">JavaBeans</A> <FONT size=
"-2"><SUP>TM</SUP></FONT><BR>
<A href="#JavaxNaming">JNDI</A><BR>
<IMG src="../../../images/pixel.gif" width="20" height="2" alt=""
border="0"><A href="#JavaxNamingDirectory">Directory</A><BR>
<IMG src="../../../images/pixel.gif" width="20" height="2" alt=""
border="0"><A href="#JavaxNamingEvent">Event</A><BR>
<IMG src="../../../images/pixel.gif" width="20" height="2" alt=""
border="0"><A href="#JavaxNamingLdap">Ldap</A><BR>
<A href="#Math">Math</A><BR>
<A href="#Networking">Networking</A><BR>
<A href="#Printing">Printing</A><BR>
<A href="#Reference Objects">Reference Objects</A><BR>
<A href="#Reflection">Reflection</A><BR>
<A href="#RMI">RMI</A><BR>
<A href="#Security">Security</A><BR>
<A href="#Sound">Sound</A><BR>
<IMG src="../../../images/pixel.gif" width="20" height="2" alt=""
border="0"><A href="#JavaxSoundSampled">Sampled</A><BR>
<IMG src="../../../images/pixel.gif" width="20" height="2" alt=""
border="0"><A href="#JavaxSoundMidi">Midi</A><BR>
<A href="#java.lang">Strings</A><BR>
<A href="#Swing">Swing</A><BR>
<IMG src="../../../images/pixel.gif" width="20" height="2" alt=""
border="0"><A href="#Swing (javax.swing)Events">Events</A><BR>
<IMG src="../../../images/pixel.gif" width="20" height="2" alt=""
border="0"><A href=
"#Swing (javax.swing)File Chooser">File Chooser</A><BR>
<IMG src="../../../images/pixel.gif" width="20" height="2" alt=""
border="0"><A href="#Swing (javax.swing)Layou
没有合适的资源?快使用搜索试试~ 我知道了~
Java源代码全集展示,最优美的代码
共365个文件
html:326个
log:38个
txt:1个
5星 · 超过95%的资源 需积分: 47 44 下载量 177 浏览量
2009-10-11
23:09:43
上传
评论 1
收藏 717KB RAR 举报
温馨提示
涵盖了JavaSE的所有源代码例子 所有的代码都十分优美,十分有价值 这是一款很有用的代码,对学习Java有很大用处
资源推荐
资源详情
资源评论
收起资源包目录
Java源代码全集展示,最优美的代码 (365个子文件)
index.html 53KB
280.html 8KB
281.html 8KB
282.html 7KB
317.html 7KB
214.html 7KB
311.html 7KB
9.html 6KB
278.html 6KB
64.html 6KB
34.html 6KB
313.html 6KB
69.html 6KB
190.html 6KB
236.html 6KB
10.html 6KB
305.html 6KB
122.html 6KB
26.html 6KB
252.html 6KB
294.html 6KB
146.html 6KB
7.html 6KB
304.html 6KB
297.html 6KB
229.html 6KB
151.html 6KB
68.html 6KB
61.html 6KB
208.html 6KB
42.html 6KB
227.html 6KB
194.html 6KB
298.html 6KB
143.html 6KB
249.html 6KB
231.html 6KB
188.html 6KB
75.html 6KB
67.html 6KB
308.html 6KB
129.html 6KB
16.html 6KB
35.html 6KB
24.html 6KB
300.html 6KB
107.html 6KB
40.html 6KB
307.html 6KB
0.html 6KB
314.html 6KB
228.html 6KB
296.html 6KB
20.html 6KB
77.html 6KB
293.html 6KB
108.html 6KB
114.html 6KB
203.html 6KB
144.html 6KB
299.html 6KB
14.html 6KB
222.html 6KB
291.html 6KB
303.html 6KB
213.html 6KB
110.html 6KB
251.html 6KB
139.html 6KB
312.html 6KB
170.html 6KB
230.html 6KB
49.html 6KB
199.html 6KB
36.html 6KB
286.html 6KB
8.html 6KB
223.html 6KB
41.html 6KB
72.html 6KB
321.html 5KB
315.html 5KB
56.html 5KB
169.html 5KB
118.html 5KB
189.html 5KB
165.html 5KB
242.html 5KB
15.html 5KB
164.html 5KB
45.html 5KB
290.html 5KB
175.html 5KB
103.html 5KB
196.html 5KB
295.html 5KB
38.html 5KB
193.html 5KB
57.html 5KB
76.html 5KB
共 365 条
- 1
- 2
- 3
- 4
资源评论
- yshao817102013-12-06代码挺好,就是太多,缺少说明。
- wm_hust2013-06-04写得很漂亮,值得学习
- s168763342018-09-24值得借鉴,谢谢了!
- 西瓜可乐5202014-09-03很好很不错的优秀代码。谢谢了。
- cn3212312013-08-06代码挺优秀,值得借鉴
romanticaabb
- 粉丝: 0
- 资源: 15
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功