Creating a Window, add Components and show it.


This example creates a Window, adds some components to it and finally displays it.

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


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.