@@ -0,0 +1,1959 @@
+package de.jangobrick.swapper.windows;%0A%0Aimport java.awt.GraphicsConfiguration;%0A%0Aimport javax.swing.JFrame;%0A%0Aimport de.jangobrick.swapper.ContainerSwap;%0A%0A%0A/**%0A * Swap class for %7B@link JFrame%7D, allowing control over the frame's contents and%0A * display parameters.%0A */%0Apublic class FrameSwap extends ContainerSwap%3CJFrame%3E%0A%7B%0A    private GraphicsConfiguration gc;%0A%0A    /**%0A     * Constructs a new, empty, invisible %7B@code FrameSwap%7D using the default%0A     * graphics configuration.%0A     */%0A    public FrameSwap()%0A    %7B%0A        // empty constructor%0A    %7D%0A%0A    /**%0A     * Constructs a new, empty, invisible %7B@code FrameSwap%7D using a specific%0A     * graphics configuration.%0A     * %0A     * @param gc The graphics configuration to use.%0A     */%0A    public FrameSwap(GraphicsConfiguration gc)%0A    %7B%0A        this.gc = gc;%0A    %7D%0A%0A    @Override%0A    protected JFrame build()%0A    %7B%0A        return gc != null ? new JFrame(gc) : new JFrame();%0A    %7D%0A%0A    /**%0A     * Sets the frame's title.%0A     * %0A     * @param title The new title.%0A     * %0A     * @return This instance.%0A     */%0A    public FrameSwap title(String title)%0A    %7B%0A        getComponent().setTitle(title);%0A        return this;%0A    %7D%0A%0A    /**%0A     * Shows (%7B@code true%7D) or hides (%7B@code false%7D) the frame.%0A     * %0A     * @param visible Whether the frame shall be visible.%0A     * %0A     * @return This instance.%0A     */%0A    public FrameSwap setVisible(boolean visible)%0A    %7B%0A        getComponent().setVisible(visible);%0A        return this;%0A    %7D%0A%0A    /**%0A     * Prepares the frame for being displayed.%0A     * %0A     * @return This instance.%0A     */%0A    public FrameSwap pack()%0A    %7B%0A        getComponent().pack();%0A        return this;%0A    %7D%0A%0A    /**%0A     * Packs the frame, then sets it visible.%0A     * %0A     * %3Cp%3E%0A     * In other words, this is a shortcut for %7B@code pack().setVisible(true)%7D.%0A     * %0A     * @return This instance.%0A     */%0A    public FrameSwap show()%0A    %7B%0A        return pack().setVisible(true);%0A    %7D%0A%7D%0A

Add FrameSwap class for building frames