Class SwingUtilities3

java.lang.Object
net.thevpc.common.swing.SwingUtilities3

public class SwingUtilities3 extends Object
Author:
Taha BEN SALAH (taha.bensalah@gmail.com) %creationtime 13 juil. 2006 22:14:21
  • Method Details

    • createSplashScreen

      public static JWindow createSplashScreen(Component splash, boolean closeOnClick, long timeOut)
    • getAncestors

      public static Container[] getAncestors(Component comp)
    • getScreenCentredPosition

      public static Point getScreenCentredPosition(Component comp)
    • createSplashScreen

      public static JWindow createSplashScreen(String imageResource, boolean closeOnClick, long timeout)
    • expandAll

      public static void expandAll(JTree tree)
    • collapseAll

      public static void collapseAll(JTree tree)
    • getDefaultNativeOpenFileCommand

      public static String getDefaultNativeOpenFileCommand()
    • openFile

      public static Process openFile(File file) throws IOException
      Throws:
      IOException
    • openFile

      public static Process openFile(File file, String cmd) throws IOException
      Throws:
      IOException
    • openURL

      public static Process openURL(URL url) throws IOException
      Throws:
      IOException
    • openURL

      public static Process openURL(URL url, String cmd) throws IOException
      Throws:
      IOException
    • applyOrientation

      public static void applyOrientation(Component c)
    • getAncestorOfClass

      public static Container getAncestorOfClass(Class[] classes, Component comp)
    • isAncestorDialog

      public static boolean isAncestorDialog(Component component)
    • getDialogAncestor

      public static Dialog getDialogAncestor(Component component)
    • isAncestorFrame

      public static boolean isAncestorFrame(Component component)
    • getFrameAncestor

      public static Frame getFrameAncestor(Component component)
    • createTitleLabel

      public static JLabel createTitleLabel(String text)
    • createTitleLabel

      public static JLabel createTitleLabel(String text, int fontStyle, float sizeCoeff)
    • getSplitPaneDividerLocationQuotient

      public static double getSplitPaneDividerLocationQuotient(JSplitPane p)
    • getAncestorByProperty

      public static Object getAncestorByProperty(String prop, Class type, Component comp)
    • getModifiersText

      public static String getModifiersText(int modifiers)
    • keyStroketoString

      public static String keyStroketoString(KeyStroke keyStroke)
    • invokeAndWait

      public static void invokeAndWait(Runnable doRun)
    • invokeLater

      public static void invokeLater(Runnable doRun)
    • addTableClickListener

      public static void addTableClickListener(JTable tab, JTableClickListener listener)
    • setTableColumnWidthPercent

      public static void setTableColumnWidthPercent(JTable tab, double... weigths)
    • createIndexedTable

      public static JTableHelper createIndexedTable(TableModel model)
    • addFileDropListener

      public static void addFileDropListener(Component c, FileDropListener listener)
    • addFileDropListener

      public static void addFileDropListener(Component c, FileDropListener listener, PrintStream out)
    • iconifyFrames

      public static void iconifyFrames(JDesktopPane desk)
    • deiconifyFrames

      public static void deiconifyFrames(JDesktopPane desk)
    • closeFrames

      public static void closeFrames(JDesktopPane desk)
    • tileFrames

      public static void tileFrames(JDesktopPane desk)
    • isShowPopupEvent

      public static boolean isShowPopupEvent(MouseEvent e)
    • showPopup

      public static void showPopup(Component invoker, Point point, JPopupMenu popup)
    • getPreferredPopupLocation

      public static Point getPreferredPopupLocation(Point point, JPopupMenu popup)
    • getSafeScreenBounds

      public static Rectangle getSafeScreenBounds(Point pos)
    • getScreenInsetsAt

      public static Insets getScreenInsetsAt(Point pos)
    • getScreenBoundsAt

      public static Rectangle getScreenBoundsAt(Point pos)
    • getGraphicsDeviceAt

      public static GraphicsDevice getGraphicsDeviceAt(Point pos)
    • getScaledIcon

      public static ImageIcon getScaledIcon(URL url, int width, int heigth)
    • addEscapeBindings

      public static void addEscapeBindings(JDialog dialog)