📄 border.html
字号:
<CODE>static <A HREF="../../../../javax/swing/border/Border.html">Border</A></CODE></FONT></TD><TD><CODE><B>BorderFactory.</B><B><A HREF="../../../../javax/swing/BorderFactory.html#createEtchedBorder(int, java.awt.Color, java.awt.Color)">createEtchedBorder</A></B>(int type, <A HREF="../../../../java/awt/Color.html">Color</A> highlight, <A HREF="../../../../java/awt/Color.html">Color</A> shadow)</CODE><BR> 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 <A HREF="../../../../javax/swing/border/Border.html">Border</A></CODE></FONT></TD><TD><CODE><B>BorderFactory.</B><B><A HREF="../../../../javax/swing/BorderFactory.html#createEmptyBorder()">createEmptyBorder</A></B>()</CODE><BR> 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 <A HREF="../../../../javax/swing/border/Border.html">Border</A></CODE></FONT></TD><TD><CODE><B>BorderFactory.</B><B><A HREF="../../../../javax/swing/BorderFactory.html#createEmptyBorder(int, int, int, int)">createEmptyBorder</A></B>(int top, int left, int bottom, int right)</CODE><BR> 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> <A HREF="../../../../javax/swing/border/Border.html">Border</A></CODE></FONT></TD><TD><CODE><B>UIDefaults.</B><B><A HREF="../../../../javax/swing/UIDefaults.html#getBorder(java.lang.Object)">getBorder</A></B>(<A HREF="../../../../java/lang/Object.html">Object</A> key)</CODE><BR> If the value of <code>key</code> is a <code>Border</code> return it, otherwise return <code>null</code>.</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>UIManager.</B><B><A HREF="../../../../javax/swing/UIManager.html#getBorder(java.lang.Object)">getBorder</A></B>(<A HREF="../../../../java/lang/Object.html">Object</A> key)</CODE><BR> Returns a border from the defaults table.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../javax/swing/border/Border.html">Border</A></CODE></FONT></TD><TD><CODE><B>JScrollPane.</B><B><A HREF="../../../../javax/swing/JScrollPane.html#getViewportBorder()">getViewportBorder</A></B>()</CODE><BR> Returns the <code>Border</code> object that surrounds the viewport.</TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../../javax/swing/package-summary.html">javax.swing</A> with parameters of type <A HREF="../../../../javax/swing/border/Border.html">Border</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>JComponent.</B><B><A HREF="../../../../javax/swing/JComponent.html#setBorder(javax.swing.border.Border)">setBorder</A></B>(<A HREF="../../../../javax/swing/border/Border.html">Border</A> border)</CODE><BR> Sets the border of this component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>JViewport.</B><B><A HREF="../../../../javax/swing/JViewport.html#setBorder(javax.swing.border.Border)">setBorder</A></B>(<A HREF="../../../../javax/swing/border/Border.html">Border</A> border)</CODE><BR> The viewport "scrolls" it's child (called the "view") by the normal parent/child clipping (typically the view is moved in the opposite direction of the scroll).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B>JComponent.AccessibleJComponent.</B><B><A HREF="../../../../javax/swing/JComponent.AccessibleJComponent.html#getBorderTitle(javax.swing.border.Border)">getBorderTitle</A></B>(<A HREF="../../../../javax/swing/border/Border.html">Border</A> b)</CODE><BR> Recursively search through the border hierarchy (if it exists) for a TitledBorder with a non-null title.</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>BorderFactory.</B><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>BorderFactory.</B><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>BorderFactory.</B><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>BorderFactory.</B><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>BorderFactory.</B><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/CompoundBorder.html">CompoundBorder</A></CODE></FONT></TD><TD><CODE><B>BorderFactory.</B><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> outsideBorder, <A HREF="../../../../javax/swing/border/Border.html">Border</A> insideBorder)</CODE><BR> 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> void</CODE></FONT></TD><TD><CODE><B>JScrollPane.</B><B><A HREF="../../../../javax/swing/JScrollPane.html#setViewportBorder(javax.swing.border.Border)">setViewportBorder</A></B>(<A HREF="../../../../javax/swing/border/Border.html">Border</A> viewportBorder)</CODE><BR> Adds a border around the viewport.</TD></TR></TABLE> <P><A NAME="javax.swing.border"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2">Uses of <A HREF="../../../../javax/swing/border/Border.html">Border</A> in <A HREF="../../../../javax/swing/border/package-summary.html">javax.swing.border</A></FONT></TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Classes in <A HREF="../../../../javax/swing/border/package-summary.html">javax.swing.border</A> that implement <A HREF="../../../../javax/swing/border/Border.html">Border</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/border/AbstractBorder.html">AbstractBorder</A></B></CODE><BR> A class that implements an empty border with no size.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/border/BevelBorder.html">BevelBorder</A></B></CODE><BR> A class which implements a simple 2 line bevel border.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/border/CompoundBorder.html">CompoundBorder</A></B></CODE><BR> A composite Border class used to compose two Border objects into a single border by nesting an inside Border object within the insets of an outside Border object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/border/EmptyBorder.html">EmptyBorder</A></B></CODE><BR> A class which provides an empty, transparent border which takes up space but does no drawing.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/border/EtchedBorder.html">EtchedBorder</A></B></CODE><BR> A class which implements a simple etched border which can either be etched-in or etched-out.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/border/LineBorder.html">LineBorder</A></B></CODE><BR> A class which implements a line border of arbitrary thickness and of a single color.</TD>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -