?? borderfactory.html
字號:
<DD>the <CODE>TitledBorder</CODE> object</DD></DL></DD></DL>
<HR>
<A name=createEmptyBorder()><!-- --></A>
<H3>createEmptyBorder</H3><PRE>public static <A title="interface in javax.swing.border" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/javax/swing/border/Border.html">Border</A> <B>createEmptyBorder</B>()</PRE>
<DL>
<DD>Creates an empty border that takes up no space. (The width of the top,
bottom, left, and right sides are all zero.)
<P></P>
<DD>
<DL>
<DT><B>Returns:</B>
<DD>the <CODE>Border</CODE> object</DD></DL></DD></DL>
<HR>
<A name="createEmptyBorder(int, int, int, int)"><!-- --></A>
<H3>createEmptyBorder</H3><PRE>public static <A title="interface in javax.swing.border" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/javax/swing/border/Border.html">Border</A> <B>createEmptyBorder</B>(int top,
int left,
int bottom,
int right)</PRE>
<DL>
<DD>Creates an empty border that takes up space but which does no drawing,
specifying the width of the top, left, bottom, and right sides.
<P></P>
<DD>
<DL>
<DT><B>Parameters:</B>
<DD><CODE>top</CODE> - an integer specifying the width of the top, in pixels
<DD><CODE>left</CODE> - an integer specifying the width of the left side, in
pixels
<DD><CODE>bottom</CODE> - an integer specifying the width of the right side,
in pixels
<DD><CODE>right</CODE> - an integer specifying the width of the bottom, in
pixels
<DT><B>Returns:</B>
<DD>the <CODE>Border</CODE> object</DD></DL></DD></DL>
<HR>
<A name=createCompoundBorder()><!-- --></A>
<H3>createCompoundBorder</H3><PRE>public static <A title="class in javax.swing.border" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/javax/swing/border/CompoundBorder.html">CompoundBorder</A> <B>createCompoundBorder</B>()</PRE>
<DL>
<DD>Creates a compound border with a <CODE>null</CODE> inside edge and a
<CODE>null</CODE> outside edge.
<P></P>
<DD>
<DL>
<DT><B>Returns:</B>
<DD>the <CODE>CompoundBorder</CODE> object</DD></DL></DD></DL>
<HR>
<A
name="createCompoundBorder(javax.swing.border.Border, javax.swing.border.Border)"><!-- --></A>
<H3>createCompoundBorder</H3><PRE>public static <A title="class in javax.swing.border" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/javax/swing/border/CompoundBorder.html">CompoundBorder</A> <B>createCompoundBorder</B>(<A title="interface in javax.swing.border" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/javax/swing/border/Border.html">Border</A> outsideBorder,
<A title="interface in javax.swing.border" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/javax/swing/border/Border.html">Border</A> insideBorder)</PRE>
<DL>
<DD>Creates a compound border specifying the border objects to use for the
outside and inside edges.
<P></P>
<DD>
<DL>
<DT><B>Parameters:</B>
<DD><CODE>outsideBorder</CODE> - a <CODE>Border</CODE> object for the outer
edge of the compound border
<DD><CODE>insideBorder</CODE> - a <CODE>Border</CODE> object for the inner
edge of the compound border
<DT><B>Returns:</B>
<DD>the <CODE>CompoundBorder</CODE> object</DD></DL></DD></DL>
<HR>
<A name="createMatteBorder(int, int, int, int, java.awt.Color)"><!-- --></A>
<H3>createMatteBorder</H3><PRE>public static <A title="class in javax.swing.border" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/javax/swing/border/MatteBorder.html">MatteBorder</A> <B>createMatteBorder</B>(int top,
int left,
int bottom,
int right,
<A title="class in java.awt" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/awt/Color.html">Color</A> color)</PRE>
<DL>
<DD>Creates a matte-look border using a solid color. (The difference between
this border and a line border is that you can specify the individual border
dimensions.)
<P></P>
<DD>
<DL>
<DT><B>Parameters:</B>
<DD><CODE>top</CODE> - an integer specifying the width of the top, in pixels
<DD><CODE>left</CODE> - an integer specifying the width of the left side, in
pixels
<DD><CODE>bottom</CODE> - an integer specifying the width of the right side,
in pixels
<DD><CODE>right</CODE> - an integer specifying the width of the bottom, in
pixels
<DD><CODE>color</CODE> - a <CODE>Color</CODE> to use for the border
<DT><B>Returns:</B>
<DD>the <CODE>MatteBorder</CODE> object</DD></DL></DD></DL>
<HR>
<A name="createMatteBorder(int, int, int, int, javax.swing.Icon)"><!-- --></A>
<H3>createMatteBorder</H3><PRE>public static <A title="class in javax.swing.border" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/javax/swing/border/MatteBorder.html">MatteBorder</A> <B>createMatteBorder</B>(int top,
int left,
int bottom,
int right,
<A title="interface in javax.swing" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/javax/swing/Icon.html">Icon</A> tileIcon)</PRE>
<DL>
<DD>Creates a matte-look border that consists of multiple tiles of a specified
icon. Multiple copies of the icon are placed side-by-side to fill up the
border area.
<P>Note:<BR>If the icon doesn't load, the border area is painted gray.
<P></P>
<DD>
<DL>
<DT><B>Parameters:</B>
<DD><CODE>top</CODE> - an integer specifying the width of the top, in pixels
<DD><CODE>left</CODE> - an integer specifying the width of the left side, in
pixels
<DD><CODE>bottom</CODE> - an integer specifying the width of the right side,
in pixels
<DD><CODE>right</CODE> - an integer specifying the width of the bottom, in
pixels
<DD><CODE>tileIcon</CODE> - the <CODE>Icon</CODE> object used for the border
tiles
<DT><B>Returns:</B>
<DD>the <CODE>MatteBorder</CODE> object</DD></DL></DD></DL><!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== --><A
name=navbar_bottom><!-- --></A><A title="Skip navigation links"
href="file:///D:/Tools/j2sdk-1_4_2-doc/api/javax/swing/BorderFactory.html#skip-navbar_bottom"></A>
<TABLE cellSpacing=0 cellPadding=1 width="100%" summary="" border=0>
<TBODY>
<TR>
<TD class=NavBarCell1 bgColor=#eeeeff colSpan=3><A
name=navbar_bottom_firstrow><!-- --></A>
<TABLE cellSpacing=3 cellPadding=0 summary="" border=0>
<TBODY>
<TR vAlign=top align=middle>
<TD class=NavBarCell1 bgColor=#eeeeff><A
href="file:///D:/Tools/j2sdk-1_4_2-doc/api/overview-summary.html"><FONT
class=NavBarFont1><B>Overview</B></FONT></A> </TD>
<TD class=NavBarCell1 bgColor=#eeeeff><A
href="file:///D:/Tools/j2sdk-1_4_2-doc/api/javax/swing/package-summary.html"><FONT
class=NavBarFont1><B>Package</B></FONT></A> </TD>
<TD class=NavBarCell1Rev bgColor=#ffffff> <FONT
class=NavBarFont1Rev><B>Class</B></FONT> </TD>
<TD class=NavBarCell1 bgColor=#eeeeff><A
href="file:///D:/Tools/j2sdk-1_4_2-doc/api/javax/swing/class-use/BorderFactory.html"><FONT
class=NavBarFont1><B>Use</B></FONT></A> </TD>
<TD class=NavBarCell1 bgColor=#eeeeff><A
href="file:///D:/Tools/j2sdk-1_4_2-doc/api/javax/swing/package-tree.html"><FONT
class=NavBarFont1><B>Tree</B></FONT></A> </TD>
<TD class=NavBarCell1 bgColor=#eeeeff><A
href="file:///D:/Tools/j2sdk-1_4_2-doc/api/deprecated-list.html"><FONT
class=NavBarFont1><B>Deprecated</B></FONT></A> </TD>
<TD class=NavBarCell1 bgColor=#eeeeff><A
href="file:///D:/Tools/j2sdk-1_4_2-doc/api/index-files/index-1.html"><FONT
class=NavBarFont1><B>Index</B></FONT></A> </TD>
<TD class=NavBarCell1 bgColor=#eeeeff><A
href="file:///D:/Tools/j2sdk-1_4_2-doc/api/help-doc.html"><FONT
class=NavBarFont1><B>Help</B></FONT></A> </TD></TR></TBODY></TABLE></TD>
<TD vAlign=top align=right rowSpan=3><EM><B>Java<SUP><FONT
size=-2>TM</FONT></SUP> 2 Platform<BR>Std. Ed.
v1.4.2</B></EM> </TD></TR>
<TR>
<TD class=NavBarCell2 bgColor=white><FONT size=-2> <A
title="class in javax.swing"
href="file:///D:/Tools/j2sdk-1_4_2-doc/api/javax/swing/ActionMap.html"><B>PREV
CLASS</B></A> <A title="class in javax.swing"
href="file:///D:/Tools/j2sdk-1_4_2-doc/api/javax/swing/Box.html"><B>NEXT
CLASS</B></A></FONT></TD>
<TD class=NavBarCell2 bgColor=white><FONT size=-2><A
href="file:///D:/Tools/j2sdk-1_4_2-doc/api/index.html"
target=_top><B>FRAMES</B></A> <A
href="file:///D:/Tools/j2sdk-1_4_2-doc/api/javax/swing/BorderFactory.html"
target=_top><B>NO FRAMES</B></A>
<SCRIPT type=text/javascript> <!-- if(window==top) { document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT>
<NOSCRIPT><A
href="file:///D:/Tools/j2sdk-1_4_2-doc/api/allclasses-noframe.html"><B>All
Classes</B></A> </NOSCRIPT></FONT></TD></TR>
<TR>
<TD class=NavBarCell3 vAlign=top><FONT
size=-2>SUMMARY: NESTED | FIELD | CONSTR | <A
href="file:///D:/Tools/j2sdk-1_4_2-doc/api/javax/swing/BorderFactory.html#method_summary">METHOD</A></FONT></TD>
<TD class=NavBarCell3 vAlign=top><FONT
size=-2>DETAIL: FIELD | CONSTR | <A
href="file:///D:/Tools/j2sdk-1_4_2-doc/api/javax/swing/BorderFactory.html#method_detail">METHOD</A></FONT></TD></TR></TBODY></TABLE><A
name=skip-navbar_bottom></A><!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
<FONT size=-1><A href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug
or feature</A><BR>For further API reference and developer documentation, see <A
href="file:///D:/Tools/j2sdk-1_4_2-doc/relnotes/devdocs-vs-specs.html">Java 2
SDK SE Developer Documentation</A>. That documentation contains more detailed,
developer-targeted descriptions, with conceptual overviews, definitions of
terms, workarounds, and working code examples.
<P>Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to
<A href="file:///D:/Tools/j2sdk-1_4_2-doc/relnotes/license.html">license
terms</A>. Also see the <A
href="http://java.sun.com/docs/redist.html">documentation redistribution
policy</A>.</FONT> </P></CODE></CODE></CODE></BODY></HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -