new JWindow() : JWindow « javax.swing « Java by API






new JWindow()

 
import javax.swing.JWindow;

public class MainClass {

  public static void main(String[] args) {
    JWindow w = new JWindow(  );
    w.setSize(300, 300);
    w.setLocation(500, 100);

    w.setVisible(true);
  }
}
           
         
  








Related examples in the same category

1.JWindow: setLocation(int x, int y)
2.JWindow: setSize(int w, int h)
3.JWindow: setVisible(boolean b)