📄 titledborder.html
字号:
</TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="title"><!-- --></A><H3>title</H3><PRE>protected <A HREF="../../../java/lang/String.html">String</A> <B>title</B></PRE><DL></DL><HR><A NAME="border"><!-- --></A><H3>border</H3><PRE>protected <A HREF="../../../javax/swing/border/Border.html">Border</A> <B>border</B></PRE><DL></DL><HR><A NAME="titlePosition"><!-- --></A><H3>titlePosition</H3><PRE>protected int <B>titlePosition</B></PRE><DL></DL><HR><A NAME="titleJustification"><!-- --></A><H3>titleJustification</H3><PRE>protected int <B>titleJustification</B></PRE><DL></DL><HR><A NAME="titleFont"><!-- --></A><H3>titleFont</H3><PRE>protected <A HREF="../../../java/awt/Font.html">Font</A> <B>titleFont</B></PRE><DL></DL><HR><A NAME="titleColor"><!-- --></A><H3>titleColor</H3><PRE>protected <A HREF="../../../java/awt/Color.html">Color</A> <B>titleColor</B></PRE><DL></DL><HR><A NAME="DEFAULT_POSITION"><!-- --></A><H3>DEFAULT_POSITION</H3><PRE>public static final int <B>DEFAULT_POSITION</B></PRE><DL><DD>Use the default vertical orientation for the title text.</DL><HR><A NAME="ABOVE_TOP"><!-- --></A><H3>ABOVE_TOP</H3><PRE>public static final int <B>ABOVE_TOP</B></PRE><DL><DD>Position the title above the border's top line.</DL><HR><A NAME="TOP"><!-- --></A><H3>TOP</H3><PRE>public static final int <B>TOP</B></PRE><DL><DD>Position the title in the middle of the border's top line.</DL><HR><A NAME="BELOW_TOP"><!-- --></A><H3>BELOW_TOP</H3><PRE>public static final int <B>BELOW_TOP</B></PRE><DL><DD>Position the title below the border's top line.</DL><HR><A NAME="ABOVE_BOTTOM"><!-- --></A><H3>ABOVE_BOTTOM</H3><PRE>public static final int <B>ABOVE_BOTTOM</B></PRE><DL><DD>Position the title above the border's bottom line.</DL><HR><A NAME="BOTTOM"><!-- --></A><H3>BOTTOM</H3><PRE>public static final int <B>BOTTOM</B></PRE><DL><DD>Position the title in the middle of the border's bottom line.</DL><HR><A NAME="BELOW_BOTTOM"><!-- --></A><H3>BELOW_BOTTOM</H3><PRE>public static final int <B>BELOW_BOTTOM</B></PRE><DL><DD>Position the title below the border's bottom line.</DL><HR><A NAME="DEFAULT_JUSTIFICATION"><!-- --></A><H3>DEFAULT_JUSTIFICATION</H3><PRE>public static final int <B>DEFAULT_JUSTIFICATION</B></PRE><DL><DD>Use the default justification for the title text.</DL><HR><A NAME="LEFT"><!-- --></A><H3>LEFT</H3><PRE>public static final int <B>LEFT</B></PRE><DL><DD>Position title text at the left side of the border line.</DL><HR><A NAME="CENTER"><!-- --></A><H3>CENTER</H3><PRE>public static final int <B>CENTER</B></PRE><DL><DD>Position title text in the center of the border line.</DL><HR><A NAME="RIGHT"><!-- --></A><H3>RIGHT</H3><PRE>public static final int <B>RIGHT</B></PRE><DL><DD>Position title text at the right side of the border line.</DL><HR><A NAME="LEADING"><!-- --></A><H3>LEADING</H3><PRE>public static final int <B>LEADING</B></PRE><DL><DD>Position title text at the left side of the border line for left to right orientation, at the right side of the border line for right to left orientation.</DL><HR><A NAME="TRAILING"><!-- --></A><H3>TRAILING</H3><PRE>public static final int <B>TRAILING</B></PRE><DL><DD>Position title text at the right side of the border line for left to right orientation, at the left side of the border line for right to left orientation.</DL><HR><A NAME="EDGE_SPACING"><!-- --></A><H3>EDGE_SPACING</H3><PRE>protected static final int <B>EDGE_SPACING</B></PRE><DL></DL><HR><A NAME="TEXT_SPACING"><!-- --></A><H3>TEXT_SPACING</H3><PRE>protected static final int <B>TEXT_SPACING</B></PRE><DL></DL><HR><A NAME="TEXT_INSET_H"><!-- --></A><H3>TEXT_INSET_H</H3><PRE>protected static final int <B>TEXT_INSET_H</B></PRE><DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="TitledBorder(java.lang.String)"><!-- --></A><H3>TitledBorder</H3><PRE>public <B>TitledBorder</B>(<A HREF="../../../java/lang/String.html">String</A> title)</PRE><DL><DD>Creates a TitledBorder instance.<DD><DL><DT><B>Parameters:</B><DD><CODE>title</CODE> - the title the border should display</DL></DD></DL><HR><A NAME="TitledBorder(javax.swing.border.Border)"><!-- --></A><H3>TitledBorder</H3><PRE>public <B>TitledBorder</B>(<A HREF="../../../javax/swing/border/Border.html">Border</A> border)</PRE><DL><DD>Creates a TitledBorder instance with the specified border and an empty title.<DD><DL><DT><B>Parameters:</B><DD><CODE>border</CODE> - the border</DL></DD></DL><HR><A NAME="TitledBorder(javax.swing.border.Border, java.lang.String)"><!-- --></A><H3>TitledBorder</H3><PRE>public <B>TitledBorder</B>(<A HREF="../../../javax/swing/border/Border.html">Border</A> border, <A HREF="../../../java/lang/String.html">String</A> title)</PRE><DL><DD>Creates a TitledBorder instance with the specified border and title.<DD><DL><DT><B>Parameters:</B><DD><CODE>border</CODE> - the border<DD><CODE>title</CODE> - the title the border should display</DL></DD></DL><HR><A NAME="TitledBorder(javax.swing.border.Border, java.lang.String, int, int)"><!-- --></A><H3>TitledBorder</H3><PRE>public <B>TitledBorder</B>(<A HREF="../../../javax/swing/border/Border.html">Border</A> border, <A HREF="../../../java/lang/String.html">String</A> title, int titleJustification, int titlePosition)</PRE><DL><DD>Creates a TitledBorder instance with the specified border, title, title-justification, and title-position.<DD><DL><DT><B>Parameters:</B><DD><CODE>border</CODE> - the border<DD><CODE>title</CODE> - the title the border should display<DD><CODE>titleJustification</CODE> - the justification for the title<DD><CODE>titlePosition</CODE> - the position for the title</DL></DD></DL><HR><A NAME="TitledBorder(javax.swing.border.Border, java.lang.String, int, int, java.awt.Font)"><!-- --></A><H3>TitledBorder</H3><PRE>public <B>TitledBorder</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)</PRE><DL><DD>Creates a TitledBorder instance with the specified border, title, title-justification, title-position, and title-font.<DD><DL><DT><B>Parameters:</B><DD><CODE>border</CODE> - the border<DD><CODE>title</CODE> - the title the border should display<DD><CODE>titleJustification</CODE> - the justification for the title<DD><CODE>titlePosition</CODE> - the position for the title<DD><CODE>titleFont</CODE> - the font for rendering the title</DL></DD></DL><HR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -