📄 borderfactory.html
字号:
<CODE>static <A HREF="../../javax/swing/border/Border.html">Border</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/BorderFactory.html#createLineBorder(java.awt.Color)">createLineBorder</A></B>(<A HREF="../../java/awt/Color.html">Color</A> color)</CODE><BR> Creates a line border withe the specified color.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../javax/swing/border/Border.html">Border</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/BorderFactory.html#createLineBorder(java.awt.Color, int)">createLineBorder</A></B>(<A HREF="../../java/awt/Color.html">Color</A> color, int thickness)</CODE><BR> Creates a line border with the specified color and width.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../javax/swing/border/Border.html">Border</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/BorderFactory.html#createLoweredBevelBorder()">createLoweredBevelBorder</A></B>()</CODE><BR> Creates a border with a lowered beveled edge, 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 <A HREF="../../javax/swing/border/MatteBorder.html">MatteBorder</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/BorderFactory.html#createMatteBorder(int, int, int, int, java.awt.Color)">createMatteBorder</A></B>(int top, int left, int bottom, int right, <A HREF="../../java/awt/Color.html">Color</A> color)</CODE><BR> Creates a matte-look border using a solid color.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../javax/swing/border/MatteBorder.html">MatteBorder</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/BorderFactory.html#createMatteBorder(int, int, int, int, javax.swing.Icon)">createMatteBorder</A></B>(int top, int left, int bottom, int right, <A HREF="../../javax/swing/Icon.html">Icon</A> tileIcon)</CODE><BR> Creates a matte-look border that consists of multiple tiles of a specified icon.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../javax/swing/border/Border.html">Border</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/BorderFactory.html#createRaisedBevelBorder()">createRaisedBevelBorder</A></B>()</CODE><BR> Creates a border with a raised beveled edge, 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 <A HREF="../../javax/swing/border/TitledBorder.html">TitledBorder</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/BorderFactory.html#createTitledBorder(javax.swing.border.Border)">createTitledBorder</A></B>(<A HREF="../../javax/swing/border/Border.html">Border</A> border)</CODE><BR> Creates a new title border with an empty title specifying the border object, using the default text position (sitting on the top line) and default justification (leading) and using the default font, text color, and border determined by the current look and feel.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../javax/swing/border/TitledBorder.html">TitledBorder</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/BorderFactory.html#createTitledBorder(javax.swing.border.Border, java.lang.String)">createTitledBorder</A></B>(<A HREF="../../javax/swing/border/Border.html">Border</A> border, <A HREF="../../java/lang/String.html">String</A> title)</CODE><BR> Adds a title to an existing border, specifying the text of the title, using the default positioning (sitting on the top line) and default justification (leading) and using the default font and text color determined by the current look and feel.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../javax/swing/border/TitledBorder.html">TitledBorder</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/BorderFactory.html#createTitledBorder(javax.swing.border.Border, java.lang.String, int, int)">createTitledBorder</A></B>(<A HREF="../../javax/swing/border/Border.html">Border</A> border, <A HREF="../../java/lang/String.html">String</A> title, int titleJustification, int titlePosition)</CODE><BR> Adds a title to an existing border, specifying the text of the title along with its positioning, using the default font and text color determined by the current look and feel.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../javax/swing/border/TitledBorder.html">TitledBorder</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/BorderFactory.html#createTitledBorder(javax.swing.border.Border, java.lang.String, int, int, java.awt.Font)">createTitledBorder</A></B>(<A HREF="../../javax/swing/border/Border.html">Border</A> border, <A HREF="../../java/lang/String.html">String</A> title, int titleJustification, int titlePosition, <A HREF="../../java/awt/Font.html">Font</A> titleFont)</CODE><BR> Adds a title to an existing border, specifying the text of the title along with its positioning and font, using the default text color determined by the current look and feel.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../javax/swing/border/TitledBorder.html">TitledBorder</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/BorderFactory.html#createTitledBorder(javax.swing.border.Border, java.lang.String, int, int, java.awt.Font, java.awt.Color)">createTitledBorder</A></B>(<A HREF="../../javax/swing/border/Border.html">Border</A> border, <A HREF="../../java/lang/String.html">String</A> title, int titleJustification, int titlePosition, <A HREF="../../java/awt/Font.html">Font</A> titleFont, <A HREF="../../java/awt/Color.html">Color</A> titleColor)</CODE><BR> Adds a title to an existing border, specifying the text of the title along with its positioning, font, and color.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../javax/swing/border/TitledBorder.html">TitledBorder</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/BorderFactory.html#createTitledBorder(java.lang.String)">createTitledBorder</A></B>(<A HREF="../../java/lang/String.html">String</A> title)</CODE><BR> Creates a new title border specifying the text of the title, using the default border (etched), using the default text position (sitting on the top line) and default justification (leading) and using the default font and text color determined by the current look and feel.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<A HREF="../../java/lang/Object.html">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../java/lang/Object.html#clone()">clone</A>, <A HREF="../../java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../java/lang/Object.html#finalize()">finalize</A>, <A HREF="../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../java/lang/Object.html#toString()">toString</A>, <A HREF="../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../java/lang/Object.html#wait(long)">wait</A>, <A HREF="../../java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="createLineBorder(java.awt.Color)"><!-- --></A><H3>createLineBorder</H3><PRE>public static <A HREF="../../javax/swing/border/Border.html">Border</A> <B>createLineBorder</B>(<A HREF="../../java/awt/Color.html">Color</A> color)</PRE><DL><DD>Creates a line border withe the specified color.<DD><DL><DT><B>Parameters:</B><DD><CODE>color</CODE> - a <code>Color</code> to use for the line<DT><B>Returns:</B><DD>the <code>Border</code> object</DL></DD></DL><HR><A NAME="createLineBorder(java.awt.Color, int)"><!-- --></A><H3>createLineBorder</H3><PRE>public static <A HREF="../../javax/swing/border/Border.html">Border</A> <B>createLineBorder</B>(<A HREF="../../java/awt/Color.html">Color</A> color, int thickness)</PRE><DL><DD>Creates a line border with the specified color and width. The width applies to all four sides of the border. To specify widths individually for the top, bottom, left, and right, use <A HREF="../../javax/swing/BorderFactory.html#createMatteBorder(int, int, int, int, java.awt.Color)"><CODE>createMatteBorder(int,int,int,int,Color)</CODE></A>.<DD><DL><DT><B>Parameters:</B><DD><CODE>color</CODE> - a <code>Color</code> to use for the line<DD><CODE>thickness</CODE> - an integer specifying the width in pixels<DT><B>Returns:</B><DD>the <code>Border</code> object</DL></DD></DL><HR><A NAME="createRaisedBevelBorder()"><!-- --></A><H3>createRaisedBevelBorder</H3><PRE>public static <A HREF="../../javax/swing/border/Border.html">Border</A> <B>createRaisedBevelBorder</B>()</PRE><DL><DD>Creates a border with a raised beveled edge, using brighter shades of the component's current background color for highlighting, and darker shading for shadows. (In a raised border, highlights are on top and shadows are underneath.)<DD><DL><DT><B>Returns:</B><DD>the <code>Border</code> object</DL></DD></DL><HR><A NAME="createLoweredBevelBorder()"><!-- --></A><H3>createLoweredBevelBorder</H3><PRE>public static <A HREF="../../javax/swing/border/Border.html">Border</A> <B>createLoweredBevelBorder</B>()</PRE><DL><DD>Creates a border with a lowered beveled edge, using brighter shades of the component's current background color for highlighting, and darker shading for shadows.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -