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

📄 borderfactory.html

📁 我在学习JAVA的讲义
💻 HTML
📖 第 1 页 / 共 5 页
字号:
    <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&nbsp;type,
                                        <A title="class in java.awt" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/awt/Color.html">Color</A>&nbsp;highlight,
                                        <A title="class in java.awt" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/awt/Color.html">Color</A>&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;border,
                                              <A title="class in java.lang" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/lang/String.html">String</A>&nbsp;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>&nbsp;border,
                                              <A title="class in java.lang" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/lang/String.html">String</A>&nbsp;title,
                                              int&nbsp;titleJustification,
                                              int&nbsp;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>&nbsp;border,
                                              <A title="class in java.lang" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/lang/String.html">String</A>&nbsp;title,
                                              int&nbsp;titleJustification,
                                              int&nbsp;titlePosition,
                                              <A title="class in java.awt" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/awt/Font.html">Font</A>&nbsp;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>&nbsp;border,
                                              <A title="class in java.lang" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/lang/String.html">String</A>&nbsp;title,
                                              int&nbsp;titleJustification,
                                              int&nbsp;titlePosition,
                                              <A title="class in java.awt" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/awt/Font.html">Font</A>&nbsp;titleFont,
                                              <A title="class in java.awt" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/awt/Color.html">Color</A>&nbsp;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 + -