📄 borderfactory.html
字号:
<CODE>EtchedBorder.LOWERED</CODE>
<DT><B>Since:</B>
<DD>1.3 </DD></DL></DD></DL>
<HR>
<A name="createEtchedBorder(int, java.awt.Color, java.awt.Color)"><!-- --></A>
<H3>createEtchedBorder</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>createEtchedBorder</B>(int type,
<A title="class in java.awt" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/awt/Color.html">Color</A> highlight,
<A title="class in java.awt" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/awt/Color.html">Color</A> shadow)</PRE>
<DL>
<DD>Creates a border with an "etched" look using the specified highlighting
and shading colors.
<P></P>
<DD>
<DL>
<DT><B>Parameters:</B>
<DD><CODE>type</CODE> - one of <CODE>EtchedBorder.RAISED</CODE>, or
<CODE>EtchedBorder.LOWERED</CODE>
<DD><CODE>highlight</CODE> - a <CODE>Color</CODE> object for the border
highlights
<DD><CODE>shadow</CODE> - a <CODE>Color</CODE> object for the border shadows
<DT><B>Returns:</B>
<DD>the <CODE>Border</CODE> object
<DT><B>Since:</B>
<DD>1.3 </DD></DL></DD></DL>
<HR>
<A name=createTitledBorder(java.lang.String)><!-- --></A>
<H3>createTitledBorder</H3><PRE>public static <A title="class in javax.swing.border" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/javax/swing/border/TitledBorder.html">TitledBorder</A> <B>createTitledBorder</B>(<A title="class in java.lang" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/lang/String.html">String</A> title)</PRE>
<DL>
<DD>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.
<P></P>
<DD>
<DL>
<DT><B>Parameters:</B>
<DD><CODE>title</CODE> - a <CODE>String</CODE> containing the text of the
title
<DT><B>Returns:</B>
<DD>the <CODE>TitledBorder</CODE> object</DD></DL></DD></DL>
<HR>
<A name=createTitledBorder(javax.swing.border.Border)><!-- --></A>
<H3>createTitledBorder</H3><PRE>public static <A title="class in javax.swing.border" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/javax/swing/border/TitledBorder.html">TitledBorder</A> <B>createTitledBorder</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> border)</PRE>
<DL>
<DD>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, and text color.
<P></P>
<DD>
<DL>
<DT><B>Parameters:</B>
<DD><CODE>border</CODE> - the <CODE>Border</CODE> object to add the title
to, if null the <CODE>Border</CODE> is determined by the current look and
feel.
<DT><B>Returns:</B>
<DD>the <CODE>TitledBorder</CODE> object</DD></DL></DD></DL>
<HR>
<A name="createTitledBorder(javax.swing.border.Border, java.lang.String)"><!-- --></A>
<H3>createTitledBorder</H3><PRE>public static <A title="class in javax.swing.border" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/javax/swing/border/TitledBorder.html">TitledBorder</A> <B>createTitledBorder</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> border,
<A title="class in java.lang" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/lang/String.html">String</A> title)</PRE>
<DL>
<DD>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.
<P></P>
<DD>
<DL>
<DT><B>Parameters:</B>
<DD><CODE>border</CODE> - the <CODE>Border</CODE> object to add the title to
<DD><CODE>title</CODE> - a <CODE>String</CODE> containing the text of the
title
<DT><B>Returns:</B>
<DD>the <CODE>TitledBorder</CODE> object</DD></DL></DD></DL>
<HR>
<A
name="createTitledBorder(javax.swing.border.Border, java.lang.String, int, int)"><!-- --></A>
<H3>createTitledBorder</H3><PRE>public static <A title="class in javax.swing.border" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/javax/swing/border/TitledBorder.html">TitledBorder</A> <B>createTitledBorder</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> border,
<A title="class in java.lang" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/lang/String.html">String</A> title,
int titleJustification,
int titlePosition)</PRE>
<DL>
<DD>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.
<P></P>
<DD>
<DL>
<DT><B>Parameters:</B>
<DD><CODE>border</CODE> - the <CODE>Border</CODE> object to add the title to
<DD><CODE>title</CODE> - a <CODE>String</CODE> containing the text of the
title
<DD><CODE>titleJustification</CODE> - an integer specifying the
justification of the title -- one of the following:
<UL>
<LI><CODE>TitledBorder.LEFT</CODE>
<LI><CODE>TitledBorder.CENTER</CODE>
<LI><CODE>TitledBorder.RIGHT</CODE>
<LI><CODE>TitledBorder.LEADING</CODE>
<LI><CODE>TitledBorder.TRAILING<CODE>
<LI><CODE>TitledBorder.DEFAULT_JUSTIFICATION</CODE> (leading) </LI></UL>
<DD><CODE>titlePosition</CODE> - an integer specifying the vertical position
of the text in relation to the border -- one of the following:
<UL>
<LI><CODE>TitledBorder.ABOVE_TOP</CODE>
<LI>TitledBorder.TOP</CODE> (sitting on the top line)
<LI><CODE>TitledBorder.BELOW_TOP</CODE>
<LI><CODE>TitledBorder.ABOVE_BOTTOM</CODE>
<LI><CODE>TitledBorder.BOTTOM</CODE> (sitting on the bottom line)
<LI><CODE>TitledBorder.BELOW_BOTTOM</CODE>
<LI><CODE>TitledBorder.DEFAULT_POSITION</CODE> (top) </LI></UL>
<DT><B>Returns:</B>
<DD>the <CODE>TitledBorder</CODE> object</DD></DL></DD></DL>
<HR>
<A
name="createTitledBorder(javax.swing.border.Border, java.lang.String, int, int, java.awt.Font)"><!-- --></A>
<H3>createTitledBorder</H3><PRE>public static <A title="class in javax.swing.border" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/javax/swing/border/TitledBorder.html">TitledBorder</A> <B>createTitledBorder</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> border,
<A title="class in java.lang" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/lang/String.html">String</A> title,
int titleJustification,
int titlePosition,
<A title="class in java.awt" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/awt/Font.html">Font</A> titleFont)</PRE>
<DL>
<DD>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.
<P></P>
<DD>
<DL>
<DT><B>Parameters:</B>
<DD><CODE>border</CODE> - the <CODE>Border</CODE> object to add the title to
<DD><CODE>title</CODE> - a <CODE>String</CODE> containing the text of the
title
<DD><CODE>titleJustification</CODE> - an integer specifying the
justification of the title -- one of the following:
<UL>
<LI><CODE>TitledBorder.LEFT</CODE>
<LI><CODE>TitledBorder.CENTER</CODE>
<LI><CODE>TitledBorder.RIGHT</CODE>
<LI><CODE>TitledBorder.LEADING</CODE>
<LI><CODE>TitledBorder.TRAILING<CODE>
<LI><CODE>TitledBorder.DEFAULT_JUSTIFICATION</CODE> (leading) </LI></UL>
<DD><CODE>titlePosition</CODE> - an integer specifying the vertical position
of the text in relation to the border -- one of the following:
<UL>
<LI><CODE>TitledBorder.ABOVE_TOP</CODE>
<LI>TitledBorder.TOP</CODE> (sitting on the top line)
<LI><CODE>TitledBorder.BELOW_TOP</CODE>
<LI><CODE>TitledBorder.ABOVE_BOTTOM</CODE>
<LI><CODE>TitledBorder.BOTTOM</CODE> (sitting on the bottom line)
<LI><CODE>TitledBorder.BELOW_BOTTOM</CODE>
<LI><CODE>TitledBorder.DEFAULT_POSITION</CODE> (top) </LI></UL>
<DD><CODE>titleFont</CODE> - a Font object specifying the title font
<DT><B>Returns:</B>
<DD>the TitledBorder object</DD></DL></DD></DL>
<HR>
<A
name="createTitledBorder(javax.swing.border.Border, java.lang.String, int, int, java.awt.Font, java.awt.Color)"><!-- --></A>
<H3>createTitledBorder</H3><PRE>public static <A title="class in javax.swing.border" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/javax/swing/border/TitledBorder.html">TitledBorder</A> <B>createTitledBorder</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> border,
<A title="class in java.lang" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/lang/String.html">String</A> title,
int titleJustification,
int titlePosition,
<A title="class in java.awt" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/awt/Font.html">Font</A> titleFont,
<A title="class in java.awt" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/awt/Color.html">Color</A> titleColor)</PRE>
<DL>
<DD>Adds a title to an existing border, specifying the text of the title along
with its positioning, font, and color.
<P></P>
<DD>
<DL>
<DT><B>Parameters:</B>
<DD><CODE>border</CODE> - the <CODE>Border</CODE> object to add the title to
<DD><CODE>title</CODE> - a <CODE>String</CODE> containing the text of the
title
<DD><CODE>titleJustification</CODE> - an integer specifying the
justification of the title -- one of the following:
<UL>
<LI><CODE>TitledBorder.LEFT</CODE>
<LI><CODE>TitledBorder.CENTER</CODE>
<LI><CODE>TitledBorder.RIGHT</CODE>
<LI><CODE>TitledBorder.LEADING</CODE>
<LI><CODE>TitledBorder.TRAILING<CODE>
<LI><CODE>TitledBorder.DEFAULT_JUSTIFICATION</CODE> (leading) </LI></UL>
<DD><CODE>titlePosition</CODE> - an integer specifying the vertical position
of the text in relation to the border -- one of the following:
<UL>
<LI><CODE>TitledBorder.ABOVE_TOP</CODE>
<LI>TitledBorder.TOP</CODE> (sitting on the top line)
<LI><CODE>TitledBorder.BELOW_TOP</CODE>
<LI><CODE>TitledBorder.ABOVE_BOTTOM</CODE>
<LI><CODE>TitledBorder.BOTTOM</CODE> (sitting on the bottom line)
<LI><CODE>TitledBorder.BELOW_BOTTOM</CODE>
<LI><CODE>TitledBorder.DEFAULT_POSITION</CODE> (top) </LI></UL>
<DD><CODE>titleFont</CODE> - a <CODE>Font</CODE> object specifying the title
font
<DD><CODE>titleColor</CODE> - a <CODE>Color</CODE> object specifying the
title color
<DT><B>Returns:</B>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -