J window = new J(); // Add component to the window window.getContentPane().add(component, BorderLayout.CENTER); // Set initial size window.setSize(300, 300); // Show the window window.setVisible(true);
J window = new J(); // Add component to the window window.getContentPane().add(component, BorderLayout.CENTER); // Set initial size window.setSize(300, 300); // Show the window window.setVisible(true);