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

📄 swingutilities.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<CODE>static&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/SwingUtilities.html#getAccessibleIndexInParent(java.awt.Component)">getAccessibleIndexInParent</A></B>(<A HREF="../../java/awt/Component.html">Component</A>&nbsp;c)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the index of this object in its accessible parent.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../javax/accessibility/AccessibleStateSet.html">AccessibleStateSet</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/SwingUtilities.html#getAccessibleStateSet(java.awt.Component)">getAccessibleStateSet</A></B>(<A HREF="../../java/awt/Component.html">Component</A>&nbsp;c)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the state of this object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../java/awt/Container.html">Container</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/SwingUtilities.html#getAncestorNamed(java.lang.String, java.awt.Component)">getAncestorNamed</A></B>(<A HREF="../../java/lang/String.html">String</A>&nbsp;name,                 <A HREF="../../java/awt/Component.html">Component</A>&nbsp;comp)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Convenience method for searching above <code>comp</code> in the component hierarchy and returns the first object of <code>name</code> it finds.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../java/awt/Container.html">Container</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/SwingUtilities.html#getAncestorOfClass(java.lang.Class, java.awt.Component)">getAncestorOfClass</A></B>(<A HREF="../../java/lang/Class.html">Class</A>&nbsp;c,                   <A HREF="../../java/awt/Component.html">Component</A>&nbsp;comp)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Convenience method for searching above <code>comp</code> in the component hierarchy and returns the first object of class <code>c</code> it finds.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../java/awt/Component.html">Component</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/SwingUtilities.html#getDeepestComponentAt(java.awt.Component, int, int)">getDeepestComponentAt</A></B>(<A HREF="../../java/awt/Component.html">Component</A>&nbsp;parent,                      int&nbsp;x,                      int&nbsp;y)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the deepest visible descendent Component of <code>parent</code>  that contains the location <code>x</code>, <code>y</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../java/awt/Rectangle.html">Rectangle</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/SwingUtilities.html#getLocalBounds(java.awt.Component)">getLocalBounds</A></B>(<A HREF="../../java/awt/Component.html">Component</A>&nbsp;aComponent)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the rectangle (0,0,bounds.width,bounds.height) for the component <code>aComponent</code></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../java/awt/Component.html">Component</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/SwingUtilities.html#getRoot(java.awt.Component)">getRoot</A></B>(<A HREF="../../java/awt/Component.html">Component</A>&nbsp;c)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the root component for the current component tree.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../javax/swing/JRootPane.html">JRootPane</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/SwingUtilities.html#getRootPane(java.awt.Component)">getRootPane</A></B>(<A HREF="../../java/awt/Component.html">Component</A>&nbsp;c)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If c is a JRootPane descendant return its JRootPane ancestor.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../javax/swing/ActionMap.html">ActionMap</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/SwingUtilities.html#getUIActionMap(javax.swing.JComponent)">getUIActionMap</A></B>(<A HREF="../../javax/swing/JComponent.html">JComponent</A>&nbsp;component)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the ActionMap provided by the UI  in component <code>component</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../javax/swing/InputMap.html">InputMap</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/SwingUtilities.html#getUIInputMap(javax.swing.JComponent, int)">getUIInputMap</A></B>(<A HREF="../../javax/swing/JComponent.html">JComponent</A>&nbsp;component,              int&nbsp;condition)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the InputMap provided by the UI for condition <code>condition</code> in component <code>component</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../java/awt/Window.html">Window</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/SwingUtilities.html#getWindowAncestor(java.awt.Component)">getWindowAncestor</A></B>(<A HREF="../../java/awt/Component.html">Component</A>&nbsp;c)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/SwingUtilities.html#invokeAndWait(java.lang.Runnable)">invokeAndWait</A></B>(<A HREF="../../java/lang/Runnable.html">Runnable</A>&nbsp;doRun)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Causes <i>doRun.run()</i> to be executed synchronously on the AWT event dispatching thread.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/SwingUtilities.html#invokeLater(java.lang.Runnable)">invokeLater</A></B>(<A HREF="../../java/lang/Runnable.html">Runnable</A>&nbsp;doRun)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Causes <i>doRun.run()</i> to be executed asynchronously on the AWT event dispatching thread.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/SwingUtilities.html#isDescendingFrom(java.awt.Component, java.awt.Component)">isDescendingFrom</A></B>(<A HREF="../../java/awt/Component.html">Component</A>&nbsp;a,                 <A HREF="../../java/awt/Component.html">Component</A>&nbsp;b)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return <code>true</code> if a component <code>a</code> descends from a component <code>b</code></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/SwingUtilities.html#isEventDispatchThread()">isEventDispatchThread</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the current thread is an AWT event dispatching thread.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/SwingUtilities.html#isLeftMouseButton(java.awt.event.MouseEvent)">isLeftMouseButton</A></B>(<A HREF="../../java/awt/event/MouseEvent.html">MouseEvent</A>&nbsp;anEvent)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the mouse event specifies the left mouse button.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/SwingUtilities.html#isMiddleMouseButton(java.awt.event.MouseEvent)">isMiddleMouseButton</A></B>(<A HREF="../../java/awt/event/MouseEvent.html">MouseEvent</A>&nbsp;anEvent)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the mouse event specifies the middle mouse button.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/SwingUtilities.html#isRectangleContainingRectangle(java.awt.Rectangle, java.awt.Rectangle)">isRectangleContainingRectangle</A></B>(<A HREF="../../java/awt/Rectangle.html">Rectangle</A>&nbsp;a,                               <A HREF="../../java/awt/Rectangle.html">Rectangle</A>&nbsp;b)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if <code>a</code> contains <code>b</code></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/SwingUtilities.html#isRightMouseButton(java.awt.event.MouseEvent)">isRightMouseButton</A></B>(<A HREF="../../java/awt/event/MouseEvent.html">MouseEvent</A>&nbsp;anEvent)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the mouse event specifies the right mouse button.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/SwingUtilities.html#layoutCompoundLabel(java.awt.FontMetrics, java.lang.String, javax.swing.Icon, int, int, int, int, java.awt.Rectangle, java.awt.Rectangle, java.awt.Rectangle, int)">layoutCompoundLabel</A></B>(<A HREF="../../java/awt/FontMetrics.html">FontMetrics</A>&nbsp;fm,                    <A HREF="../../java/lang/String.html">String</A>&nbsp;text,                    <A HREF="../../javax/swing/Icon.html">Icon</A>&nbsp;icon,                    int&nbsp;verticalAlignment,                    int&nbsp;horizontalAlignment,                    int&nbsp;verticalTextPosition,                    int&nbsp;horizontalTextPosition,                    <A HREF="../../java/awt/Rectangle.html">Rectangle</A>&nbsp;viewR,                    <A HREF="../../java/awt/Rectangle.html">Rectangle</A>&nbsp;iconR,                    <A HREF="../../java/awt/Rectangle.html">Rectangle</A>&nbsp;textR,                    int&nbsp;textIconGap)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compute and return the location of the icons origin, the location of origin of the text baseline, and a possibly clipped version of the compound labels string.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/SwingUtilities.html#layoutCompoundLabel(javax.swing.JComponent, java.awt.FontMetrics, java.lang.String, javax.swing.Icon, int, int, int, int, java.awt.Rectangle, java.awt.Rectangle, java.awt.Rectangle, int)">layoutCompoundLabel</A></B>(<A HREF="../../javax/swing/JComponent.html">JComponent</A>&nbsp;c,                    <A HREF="../../java/awt/FontMetrics.html">FontMetrics</A>&nbsp;fm,                    <A HREF="../../java/lang/String.html">String</A>&nbsp;text,                    <A HREF="../../javax/swing/Icon.html">Icon</A>&nbsp;icon,                    int&nbsp;verticalAlignment,                    int&nbsp;horizontalAlignment,                    int&nbsp;verticalTextPosition,                    int&nbsp;horizontalTextPosition,                    <A HREF="../../java/awt/Rectangle.html">Rectangle</A>&nbsp;viewR,                    <A HREF="../../java/awt/Rectangle.html">Rectangle</A>&nbsp;iconR,                    <A HREF="../../java/awt/Rectangle.html">Rectangle</A>&nbsp;textR,                    int&nbsp;textIconGap)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compute and return the location of the icons origin, the location of origin of the text baseline, and a possibly clipped version of the compound labels string.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/SwingUtilities.html#notifyAction(javax.swing.Action, javax.swing.KeyStroke, java.awt.event.KeyEvent, java.lang.Object, int)">notifyAction</A></B>(<A HREF="../../javax/swing/Action.html">Action</A>&nbsp;action,             <A HREF="../../javax/swing/KeyStroke.html">KeyStroke</A>&nbsp;ks,             <A HREF="../../java/awt/event/KeyEvent.html">KeyEvent</A>&nbsp;event,             <A HREF="../../java/lang/Object.html">Object</A>&nbsp;sender,             int&nbsp;modifiers)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Invokes <code>actionPerformed</code> on <code>action</code> if <code>action</code> is enabled (and non null).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/SwingUtilities.html#paintComponent(java.awt.Graphics, java.awt.Component, java.awt.Container, int, int, int, int)">paintComponent</A></B>(<A HREF="../../java/awt/Graphics.html">Graphics</A>&nbsp;g,               <A HREF="../../java/awt/Component.html">Component</A>&nbsp;c,               <A HREF="../../java/awt/Container.html">Container</A>&nbsp;p,               int&nbsp;x,               int&nbsp;y,               int&nbsp;w,               int&nbsp;h)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Paint a component c on an abitrary graphics g in the specified rectangle, specifying the rectangle's upper left corner and size.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/SwingUtilities.html#paintComponent(java.awt.Graphics, java.awt.Component, java.awt.Container, java.awt.Rectangle)">paintComponent</A></B>(<A HREF="../../java/awt/Graphics.html">Graphics</A>&nbsp;g,               <A HREF="../../java/awt/Component.html">Component</A>&nbsp;c,               <A HREF="../../java/awt/Container.html">Container</A>&nbsp;p,               <A HREF="../../java/awt/Rectangle.html">Rectangle</A>&nbsp;r)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Paint a component c on an abitrary graphics g in the specified rectangle, specifying a Rectangle object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/SwingUtilities.html#replaceUIActionMap(javax.swing.JComponent, javax.swing.ActionMap)">replaceUIActionMap</A></B>(<A HREF="../../javax/swing/JComponent.html">JComponent</A>&nbsp;component,                   <A HREF="../../javax/swing/ActionMap.html">ActionMap</A>&nbsp;uiActionMap)</CODE>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -