Class SwingUtilities3
java.lang.Object
net.thevpc.common.swing.SwingUtilities3
- Author:
- Taha BEN SALAH (taha.bensalah@gmail.com) %creationtime 13 juil. 2006 22:14:21
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddEscapeBindings(JDialog dialog) static voidaddFileDropListener(Component c, FileDropListener listener) static voidaddFileDropListener(Component c, FileDropListener listener, PrintStream out) static voidaddTableClickListener(JTable tab, JTableClickListener listener) static voidstatic voidcloseFrames(JDesktopPane desk) static voidcollapseAll(JTree tree) static JTableHelpercreateIndexedTable(TableModel model) static JWindowcreateSplashScreen(Component splash, boolean closeOnClick, long timeOut) static JWindowcreateSplashScreen(String imageResource, boolean closeOnClick, long timeout) static JLabelcreateTitleLabel(String text) static JLabelcreateTitleLabel(String text, int fontStyle, float sizeCoeff) static voiddeiconifyFrames(JDesktopPane desk) static voidstatic ObjectgetAncestorByProperty(String prop, Class type, Component comp) static ContainergetAncestorOfClass(Class[] classes, Component comp) static Container[]getAncestors(Component comp) static Stringstatic DialoggetDialogAncestor(Component component) static FramegetFrameAncestor(Component component) static GraphicsDevicegetGraphicsDeviceAt(Point pos) static StringgetModifiersText(int modifiers) static PointgetPreferredPopupLocation(Point point, JPopupMenu popup) static RectanglegetSafeScreenBounds(Point pos) static ImageIcongetScaledIcon(URL url, int width, int heigth) static RectanglegetScreenBoundsAt(Point pos) static Pointstatic InsetsgetScreenInsetsAt(Point pos) static doublestatic voidiconifyFrames(JDesktopPane desk) static voidinvokeAndWait(Runnable doRun) static voidinvokeLater(Runnable doRun) static booleanisAncestorDialog(Component component) static booleanisAncestorFrame(Component component) static booleanstatic StringkeyStroketoString(KeyStroke keyStroke) static Processstatic Processstatic Processstatic Processstatic voidsetTableColumnWidthPercent(JTable tab, double... weigths) static voidshowPopup(Component invoker, Point point, JPopupMenu popup) static voidtileFrames(JDesktopPane desk)
-
Method Details
-
createSplashScreen
-
getAncestors
-
getScreenCentredPosition
-
createSplashScreen
-
expandAll
-
collapseAll
-
getDefaultNativeOpenFileCommand
-
openFile
- Throws:
IOException
-
openFile
- Throws:
IOException
-
openURL
- Throws:
IOException
-
openURL
- Throws:
IOException
-
applyOrientation
-
getAncestorOfClass
-
isAncestorDialog
-
getDialogAncestor
-
isAncestorFrame
-
getFrameAncestor
-
createTitleLabel
-
createTitleLabel
-
getSplitPaneDividerLocationQuotient
-
getAncestorByProperty
-
getModifiersText
-
keyStroketoString
-
invokeAndWait
-
invokeLater
-
addTableClickListener
-
setTableColumnWidthPercent
-
createIndexedTable
-
addFileDropListener
-
addFileDropListener
-
iconifyFrames
-
deiconifyFrames
-
closeFrames
-
tileFrames
-
isShowPopupEvent
-
showPopup
-
getPreferredPopupLocation
-
getSafeScreenBounds
-
getScreenInsetsAt
-
getScreenBoundsAt
-
getGraphicsDeviceAt
-
getScaledIcon
-
addEscapeBindings
-