import javax.swing.JFrame;
public class Two {
public static void main(String agrs[]){
One r = new One("хз как назвать");
r.setVisible(true);
r.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
r.setSize(300,200);
r.setResizable(false);
r.setLocationRelativeTo(null);
}
}