Class MSwing


  • public class MSwing
    extends Object
    • Constructor Detail

      • MSwing

        public MSwing()
    • Method Detail

      • toColor

        public static Color toColor​(String string,
                                    Color def)
        Convert string information to color.
        Parameters:
        string -
        def -
        Returns:
        the color
      • toBufferedImage

        public static BufferedImage toBufferedImage​(Image _in)
        Cast a Image to a Buffered Image. The new image is a BufferedImage.TYPE_3BYTE_BGR type. Perhaps some informations of the origin image will be lost.
        Parameters:
        _in -
        Returns:
        the image
      • toBufferedImage

        public static BufferedImage toBufferedImage​(Image _in,
                                                    int _width,
                                                    int _height)
      • toString

        public static String toString​(Color _in)
        Convert Color information to string. Do not store alpha value.
        Parameters:
        _in -
        Returns:
        color as string
      • toString

        public static String toString​(Font _in)
        Convert Font information to string.
        Parameters:
        _in -
        Returns:
        the font as string
      • getSelectedPart

        public static String getSelectedPart​(JTextArea text)
      • halfFrame

        public static void halfFrame​(Window _frame)
      • tribleFrame

        public static void tribleFrame​(Window _frame)
      • centerFrame

        public static void centerFrame​(Window _frame)
      • centerDialog

        public static void centerDialog​(Window _frame,
                                        JDialog _dialog)
      • getLookAndFeels

        public static String[] getLookAndFeels()
      • setLookAndFeel

        public static void setLookAndFeel​(int _nr)