Difference between JFrame and JWindow : JWindow « Swing « Java Tutorial






import javax.swing.JFrame;
import javax.swing.JWindow;

public class Main {
  public static void main(String[] args) {
    JFrame f = new JFrame("The Frame");
    f.setSize(300, 300);
    f.setLocation(100, 100);

    JWindow w = new JWindow();
    w.setSize(300, 300);
    w.setLocation(500, 100);

    f.setVisible(true);
    w.setVisible(true);
  }
}








14.78.JWindow
14.78.1.Difference between JFrame and JWindow
14.78.2.Have borders on a JWindow/JFrame
14.78.3.Extending JWindowExtending JWindow
14.78.4.Center window
14.78.5.Center Within Parent