java.lang.Object
javax.swing.SwingUtilities
- All Implemented Interfaces:
- SwingConstants
- See Also:
- Top Examples, Source Code
public static Rectangle calculateInnerArea(JComponent c,
Rectangle r)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static Rectangle[] computeDifference(Rectangle rectA,
Rectangle rectB)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static Rectangle computeIntersection(int x,
int y,
int width,
int height,
Rectangle dest)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static int computeStringWidth(FontMetrics fm,
String str)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static Rectangle computeUnion(int x,
int y,
int width,
int height,
Rectangle dest)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static MouseEvent convertMouseEvent(Component source,
MouseEvent sourceEvent,
Component destination)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static Point convertPoint(Component source,
int x,
int y,
Component destination)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static Point convertPoint(Component source,
Point aPoint,
Component destination)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static void convertPointFromScreen(Point p,
Component c)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static void convertPointToScreen(Point p,
Component c)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static Rectangle convertRectangle(Component source,
Rectangle aRectangle,
Component destination)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
@Deprecated
public static Component findFocusOwner(Component c)
- See Also:
KeyboardFocusManager.getFocusOwner()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static Accessible getAccessibleAt(Component c,
Point p)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static Accessible getAccessibleChild(Component c,
int i)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static int getAccessibleChildrenCount(Component c)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static int getAccessibleIndexInParent(Component c)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static AccessibleStateSet getAccessibleStateSet(Component c)
- See Also:
AccessibleState
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static Container getAncestorNamed(String name,
Component comp)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static Container getAncestorOfClass(Class<?> c,
Component comp)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static Component getDeepestComponentAt(Component parent,
int x,
int y)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static Rectangle getLocalBounds(Component aComponent)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static Component getRoot(Component c)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static JRootPane getRootPane(Component c)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static ActionMap getUIActionMap(JComponent component)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static InputMap getUIInputMap(JComponent component,
int condition)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static Window getWindowAncestor(Component c)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static void invokeAndWait(Runnable doRun)
throws InterruptedException,
InvocationTargetException
- See Also:
invokeLater(java.lang.Runnable)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static void invokeLater(Runnable doRun)
- See Also:
invokeAndWait(java.lang.Runnable)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
[1543]Ensure that Swing components are updated through the event-dispatching thread
By Anonymous on 2005/09/22 15:33:24 Rate
This method is used to ensure that Swing components are updated through the event-dispatching thread.
public static boolean isDescendingFrom(Component a,
Component b)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static boolean isEventDispatchThread()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static boolean isLeftMouseButton(MouseEvent anEvent)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static boolean isMiddleMouseButton(MouseEvent anEvent)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final boolean isRectangleContainingRectangle(Rectangle a,
Rectangle b)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static boolean isRightMouseButton(MouseEvent anEvent)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static String layoutCompoundLabel(FontMetrics fm,
String text,
Icon icon,
int verticalAlignment,
int horizontalAlignment,
int verticalTextPosition,
int horizontalTextPosition,
Rectangle viewR,
Rectangle iconR,
Rectangle textR,
int textIconGap)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static String layoutCompoundLabel(JComponent c,
FontMetrics fm,
String text,
Icon icon,
int verticalAlignment,
int horizontalAlignment,
int verticalTextPosition,
int horizontalTextPosition,
Rectangle viewR,
Rectangle iconR,
Rectangle textR,
int textIconGap)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static boolean notifyAction(Action action,
KeyStroke ks,
KeyEvent event,
Object sender,
int modifiers)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static void paintComponent(Graphics g,
Component c,
Container p,
int x,
int y,
int w,
int h)
- See Also:
Component.isLightweight()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static void paintComponent(Graphics g,
Component c,
Container p,
Rectangle r)
- See Also:
Component.isLightweight()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static boolean processKeyBindings(KeyEvent event)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static void replaceUIActionMap(JComponent component,
ActionMap uiActionMap)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static void replaceUIInputMap(JComponent component,
int type,
InputMap uiInputMap)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static void updateComponentTreeUI(Component c)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static Window windowForComponent(Component c)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples