Window

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);

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.