Introduction
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 window.setVisible(true);