Class FrameHelper



  • public class FrameHelper
    extends Object
    Utilities for working with Frames.
    • Constructor Detail

      • FrameHelper

        public FrameHelper()
    • Method Detail

      • showFrameWithComponent

        public static JFrame showFrameWithComponent(String title,
                                                    JComponent component,
                                                    int width,
                                                    int height,
                                                    int x,
                                                    int y,
                                                    boolean show)
        Show the specified component in a JFrame.
        Parameters:
        title - the title of the frame.
        component - the component to show.
        width - the width of the frame.
        height - the height of the frame.
        x - the x position on screen.
        y - the y position on screen.
        show - whether to show the frame.
        Returns:
        the created JFrame.