/*
 * Copyright (c) 2010-2017 Chernikov Vitaly. All rights reserved.
 */

package pkgSwing;

import javax.swing.*;
import java.awt.*;


class ChildFrame extends JFrame {
    ChildFrame()
    {
        final Dimension size = new Dimension(500,500);
        final int xcenter = (int)((GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getDisplayMode().getWidth()-size.getWidth())/2);
        final int ycenter = (int)((GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getDisplayMode().getHeight()-size.getHeight())/2);
        setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
        setLocation(xcenter,ycenter);
        setSize(size);
        setTitle("Child Frame!");
        setAlwaysOnTop(true);
        setVisible(true);

        JLabel label = new JLabel("Change in testing");
        label.setHorizontalAlignment(SwingConstants.CENTER);
        label.setIcon(new ImageIcon("1.png"));
        add(label,BorderLayout.NORTH);

        JLabel label2 = new JLabel("Hot change");
        add(label2,BorderLayout.SOUTH);
        label2.setHorizontalAlignment(SwingConstants.CENTER);
    }
}

@@ -1039,48 +1039,8 @@
 %22);%0A
-        add(label2,BorderLayout.SOUTH);%0A
     
@@ -1093,20 +1093,61 @@
 ts.CENTER);%0A
+        add(label2,BorderLayout.SOUTH);%0A%0A
     %7D%0A%7D%0A

change order