/** * Answer to question. * * - Q: Also use the mouse to resize the frame and check what happens with the components. * * - A: The frame is resized and the components are repositioned. */ public class Start { public static void main(String[] args) { // Dispather javax.swing.SwingUtilities.invokeLater(new Runnable() { @Override public void run() { new MyFrame(); } }); } }