⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 borderfactory.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Thu Apr 27 23:38:12 PDT 2000 --><TITLE>Java 2 Platform SE v1.3: Class  BorderFactory</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/BorderFactory.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../javax/swing/ActionMap.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../javax/swing/Box.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="BorderFactory.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">javax.swing</FONT><BR>Class  BorderFactory</H2><PRE><A HREF="../../java/lang/Object.html">java.lang.Object</A>  |  +--<B>javax.swing.BorderFactory</B></PRE><HR><DL><DT>public class <B>BorderFactory</B><DT>extends <A HREF="../../java/lang/Object.html">Object</A></DL><P>Factory class for vending standard <code>Border</code> objects.  Wherever possible, this factory will hand out references to shared <code>Border</code> instances. For further information and examples see <a href="http://java.sun.com/docs/books/tutorial/uiswing/misc/border.html">Howto Use Borders</a>, a section in <em>The Java Tutorial</em>.<P><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><!-- ======== CONSTRUCTOR SUMMARY ======== --><!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../javax/swing/border/Border.html">Border</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/BorderFactory.html#createBevelBorder(int)">createBevelBorder</A></B>(int&nbsp;type)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a beveled border of the specified type, using brighter shades of the component's current background color for highlighting, and darker shading for shadows.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../javax/swing/border/Border.html">Border</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/BorderFactory.html#createBevelBorder(int, java.awt.Color, java.awt.Color)">createBevelBorder</A></B>(int&nbsp;type,                  <A HREF="../../java/awt/Color.html">Color</A>&nbsp;highlight,                  <A HREF="../../java/awt/Color.html">Color</A>&nbsp;shadow)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a beveled border of the specified type, using the specified highlighting and shadowing.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../javax/swing/border/Border.html">Border</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/BorderFactory.html#createBevelBorder(int, java.awt.Color, java.awt.Color, java.awt.Color, java.awt.Color)">createBevelBorder</A></B>(int&nbsp;type,                  <A HREF="../../java/awt/Color.html">Color</A>&nbsp;highlightOuter,                  <A HREF="../../java/awt/Color.html">Color</A>&nbsp;highlightInner,                  <A HREF="../../java/awt/Color.html">Color</A>&nbsp;shadowOuter,                  <A HREF="../../java/awt/Color.html">Color</A>&nbsp;shadowInner)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a beveled border of the specified type, using the specified colors for the inner and outer highlight and shadow areas.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../javax/swing/border/CompoundBorder.html">CompoundBorder</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/BorderFactory.html#createCompoundBorder()">createCompoundBorder</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a compound border with a <code>null</code> inside edge and a <code>null</code> outside edge.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../javax/swing/border/CompoundBorder.html">CompoundBorder</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/BorderFactory.html#createCompoundBorder(javax.swing.border.Border, javax.swing.border.Border)">createCompoundBorder</A></B>(<A HREF="../../javax/swing/border/Border.html">Border</A>&nbsp;outsideBorder,                     <A HREF="../../javax/swing/border/Border.html">Border</A>&nbsp;insideBorder)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a compound border specifying the border objects to use for the outside and inside edges.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../javax/swing/border/Border.html">Border</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/BorderFactory.html#createEmptyBorder()">createEmptyBorder</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates an empty border that takes up no space.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../javax/swing/border/Border.html">Border</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/BorderFactory.html#createEmptyBorder(int, int, int, int)">createEmptyBorder</A></B>(int&nbsp;top,                  int&nbsp;left,                  int&nbsp;bottom,                  int&nbsp;right)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates an empty border that takes up space but which does no drawing, specifying the width of the top, left, bottom, and right sides.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../javax/swing/border/Border.html">Border</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/BorderFactory.html#createEtchedBorder()">createEtchedBorder</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a border with an "etched" look using the component's current background color for  highlighting and shading.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../javax/swing/border/Border.html">Border</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/BorderFactory.html#createEtchedBorder(java.awt.Color, java.awt.Color)">createEtchedBorder</A></B>(<A HREF="../../java/awt/Color.html">Color</A>&nbsp;highlight,                   <A HREF="../../java/awt/Color.html">Color</A>&nbsp;shadow)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a border with an "etched" look using the specified highlighting and shading colors.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../javax/swing/border/Border.html">Border</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/BorderFactory.html#createEtchedBorder(int)">createEtchedBorder</A></B>(int&nbsp;type)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a border with an "etched" look using the component's current background color for  highlighting and shading.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../javax/swing/border/Border.html">Border</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/BorderFactory.html#createEtchedBorder(int, java.awt.Color, java.awt.Color)">createEtchedBorder</A></B>(int&nbsp;type,                   <A HREF="../../java/awt/Color.html">Color</A>&nbsp;highlight,                   <A HREF="../../java/awt/Color.html">Color</A>&nbsp;shadow)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a border with an "etched" look using the specified highlighting and shading colors.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -