All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----com.sun.java.swing.SwingUtilities
aComponent
true
if a component a
descends from a component b
a
contains b
aComponent
's window
public SwingUtilities()
public static final boolean isRectangleContainingRectangle(Rectangle a, Rectangle b)
a
contains b
public static Rectangle getLocalBounds(Component aComponent)
aComponent
public static Point convertPoint(Component source, Point aPoint, Component destination)
public static Point convertPoint(Component source, int x, int y, Component destination)
public static Rectangle convertRectangle(Component source, Rectangle aRectangle, Component destination)
public static Container getAncestorOfClass(Class c, Component comp)
public static Container getAncestorNamed(String name, Component comp)
public static Component getDeepestComponentAt(Component parent, int x, int y)
public static MouseEvent convertMouseEvent(Component source, MouseEvent sourceEvent, Component destination)
public static void convertPointToScreen(Point p, Component c)convertPointFromScreen
public static void convertPointFromScreen(Point p, Component c)windowForComponent
public static Window windowForComponent(Component aComponent)
aComponent
's window
public static boolean isDescendingFrom(Component a, Component b)
true
if a component a
descends from a component b
public static void invokeLater(Runnable obj)
public static boolean isEventDispatchThread()
public static void invokeAndWait(Runnable obj) throws InterruptedException, InvocationTargetException
public static Rectangle computeIntersection(int x, int y, int width, int height, Rectangle dest)computeUnion
public static Rectangle computeUnion(int x, int y, int width, int height, Rectangle dest)computeDifference
public static Rectangle[] computeDifference(Rectangle rectA, Rectangle rectB)isLeftMouseButton
public static boolean isLeftMouseButton(MouseEvent anEvent)isMiddleMouseButton
public static boolean isMiddleMouseButton(MouseEvent anEvent)isRightMouseButton
public static boolean isRightMouseButton(MouseEvent anEvent)computeStringWidth
public static int computeStringWidth(FontMetrics fm, String str)layoutCompoundLabel
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)
public static void paintComponent(Graphics g, Component c, Container p, int x, int y, int w, int h)
public static void paintComponent(Graphics g, Component c, Container p, Rectangle r)updateComponentTreeUI
public static void updateComponentTreeUI(Component c)
public static int getAccessibleIndexInParent(Component c)
public static Accessible getAccessibleAt(Component c, Point p)
public static AccessibleStateSet getAccessibleStateSet(Component c)
public static int getAccessibleChildrenCount(Component c)
public static Accessible getAccessibleChild(Component c, int i)
public static Component findFocusOwner(Component c)
public static JRootPane getRootPane(Component c)
All Packages Class Hierarchy This Package Previous Next Index