insets.html
来自「API資料大全」· HTML 代码 · 共 1,156 行 · 第 1/5 页
HTML
1,156 行
<TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Insets.html">Insets</A></CODE></FONT></TD><TD><CODE><B>JComponent.</B><B><A HREF="../../../javax/swing/JComponent.html#getInsets(java.awt.Insets)">getInsets</A></B>(<A HREF="../../../java/awt/Insets.html">Insets</A> insets)</CODE><BR> Returns an Insets object containing this component's inset values.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Insets.html">Insets</A></CODE></FONT></TD><TD><CODE><B>JViewport.</B><B><A HREF="../../../javax/swing/JViewport.html#getInsets()">getInsets</A></B>()</CODE><BR> Returns the insets (border) dimensions as (0,0,0,0), since borders are not supported on a <code>JViewport</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Insets.html">Insets</A></CODE></FONT></TD><TD><CODE><B>JViewport.</B><B><A HREF="../../../javax/swing/JViewport.html#getInsets(java.awt.Insets)">getInsets</A></B>(<A HREF="../../../java/awt/Insets.html">Insets</A> insets)</CODE><BR> Returns an <code>Insets</code> object containing this <code>JViewport</code>s inset values.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Insets.html">Insets</A></CODE></FONT></TD><TD><CODE><B>AbstractButton.</B><B><A HREF="../../../javax/swing/AbstractButton.html#getMargin()">getMargin</A></B>()</CODE><BR> Returns the margin between the button's border and the label.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Insets.html">Insets</A></CODE></FONT></TD><TD><CODE><B>JPopupMenu.</B><B><A HREF="../../../javax/swing/JPopupMenu.html#getMargin()">getMargin</A></B>()</CODE><BR> Returns the margin, in pixels, between the popup menu's border and its containees.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Insets.html">Insets</A></CODE></FONT></TD><TD><CODE><B>UIDefaults.</B><B><A HREF="../../../javax/swing/UIDefaults.html#getInsets(java.lang.Object)">getInsets</A></B>(<A HREF="../../../java/lang/Object.html">Object</A> key)</CODE><BR> If the value of <code>key</code> is an <code>Insets</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> <A HREF="../../../java/awt/Insets.html">Insets</A></CODE></FONT></TD><TD><CODE><B>JToolBar.</B><B><A HREF="../../../javax/swing/JToolBar.html#getMargin()">getMargin</A></B>()</CODE><BR> Returns the margin between the toolbar's border and its buttons.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Insets.html">Insets</A></CODE></FONT></TD><TD><CODE><B>JMenuBar.</B><B><A HREF="../../../javax/swing/JMenuBar.html#getMargin()">getMargin</A></B>()</CODE><BR> Returns the margin between the menubar's border and its menus.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../java/awt/Insets.html">Insets</A></CODE></FONT></TD><TD><CODE><B>UIManager.</B><B><A HREF="../../../javax/swing/UIManager.html#getInsets(java.lang.Object)">getInsets</A></B>(<A HREF="../../../java/lang/Object.html">Object</A> key)</CODE><BR> Returns an Insets object from the defaults table.</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="../../../java/awt/Insets.html">Insets</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Insets.html">Insets</A></CODE></FONT></TD><TD><CODE><B>JComponent.</B><B><A HREF="../../../javax/swing/JComponent.html#getInsets(java.awt.Insets)">getInsets</A></B>(<A HREF="../../../java/awt/Insets.html">Insets</A> insets)</CODE><BR> Returns an Insets object containing this component's inset values.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Insets.html">Insets</A></CODE></FONT></TD><TD><CODE><B>JViewport.</B><B><A HREF="../../../javax/swing/JViewport.html#getInsets(java.awt.Insets)">getInsets</A></B>(<A HREF="../../../java/awt/Insets.html">Insets</A> insets)</CODE><BR> Returns an <code>Insets</code> object containing this <code>JViewport</code>s inset values.</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>AbstractButton.</B><B><A HREF="../../../javax/swing/AbstractButton.html#setMargin(java.awt.Insets)">setMargin</A></B>(<A HREF="../../../java/awt/Insets.html">Insets</A> m)</CODE><BR> Sets space for margin between the button's border and the label.</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>JToolBar.</B><B><A HREF="../../../javax/swing/JToolBar.html#setMargin(java.awt.Insets)">setMargin</A></B>(<A HREF="../../../java/awt/Insets.html">Insets</A> m)</CODE><BR> Sets the margin between the toolbar's border and its buttons.</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>JMenuBar.</B><B><A HREF="../../../javax/swing/JMenuBar.html#setMargin(java.awt.Insets)">setMargin</A></B>(<A HREF="../../../java/awt/Insets.html">Insets</A> m)</CODE><BR> Sets the margin between the menubar's border and its menus.</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="../../../java/awt/Insets.html">Insets</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>Methods in <A HREF="../../../javax/swing/border/package-summary.html">javax.swing.border</A> that return <A HREF="../../../java/awt/Insets.html">Insets</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Insets.html">Insets</A></CODE></FONT></TD><TD><CODE><B>AbstractBorder.</B><B><A HREF="../../../javax/swing/border/AbstractBorder.html#getBorderInsets(java.awt.Component)">getBorderInsets</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> c)</CODE><BR> This default implementation returns the value of getBorderMargins.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Insets.html">Insets</A></CODE></FONT></TD><TD><CODE><B>AbstractBorder.</B><B><A HREF="../../../javax/swing/border/AbstractBorder.html#getBorderInsets(java.awt.Component, java.awt.Insets)">getBorderInsets</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> c, <A HREF="../../../java/awt/Insets.html">Insets</A> insets)</CODE><BR> Reinitializes the insets parameter with this Border's current Insets.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Insets.html">Insets</A></CODE></FONT></TD><TD><CODE><B>BevelBorder.</B><B><A HREF="../../../javax/swing/border/BevelBorder.html#getBorderInsets(java.awt.Component)">getBorderInsets</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> c)</CODE><BR> Returns the insets of the border.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Insets.html">Insets</A></CODE></FONT></TD><TD><CODE><B>BevelBorder.</B><B><A HREF="../../../javax/swing/border/BevelBorder.html#getBorderInsets(java.awt.Component, java.awt.Insets)">getBorderInsets</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> c, <A HREF="../../../java/awt/Insets.html">Insets</A> insets)</CODE><BR> Reinitialize the insets parameter with this Border's current Insets.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Insets.html">Insets</A></CODE></FONT></TD><TD><CODE><B>SoftBevelBorder.</B><B><A HREF="../../../javax/swing/border/SoftBevelBorder.html#getBorderInsets(java.awt.Component)">getBorderInsets</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> c)</CODE><BR> Returns the insets of the border.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Insets.html">Insets</A></CODE></FONT></TD><TD><CODE><B>EmptyBorder.</B><B><A HREF="../../../javax/swing/border/EmptyBorder.html#getBorderInsets(java.awt.Component)">getBorderInsets</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> c)</CODE><BR> Returns the insets of the border.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Insets.html">Insets</A></CODE></FONT></TD><TD><CODE><B>EmptyBorder.</B><B><A HREF="../../../javax/swing/border/EmptyBorder.html#getBorderInsets(java.awt.Component, java.awt.Insets)">getBorderInsets</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> c, <A HREF="../../../java/awt/Insets.html">Insets</A> insets)</CODE><BR> Reinitialize the insets parameter with this Border's current Insets.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Insets.html">Insets</A></CODE></FONT></TD><TD><CODE><B>EmptyBorder.</B><B><A HREF="../../../javax/swing/border/EmptyBorder.html#getBorderInsets()">getBorderInsets</A></B>()</CODE><BR> Returns the insets of the border.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Insets.html">Insets</A></CODE></FONT></TD><TD><CODE><B>MatteBorder.</B><B><A HREF="../../../javax/swing/border/MatteBorder.html#getBorderInsets(java.awt.Component)">getBorderInsets</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> c)</CODE><BR> Returns the insets of the border.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Insets.html">Insets</A></CODE></FONT></TD><TD><CODE><B>MatteBorder.</B><B><A HREF="../../../javax/swing/border/MatteBorder.html#getBorderInsets(java.awt.Component, java.awt.Insets)">getBorderInsets</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> c, <A HREF="../../../java/awt/Insets.html">Insets</A> insets)</CODE><BR>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?