I am writing a program where I want to call the creation of a window in the constructor from the main method. Code:
private class window extends JFrame { public window() { setTitle("Спасибо!"); setSize(500, 300); setVisible(true); } public void main(String[] args) { /* Вызов конструктора window */ } } The question is, in fact, that you need to write in place of a comment so that when you call a method, a window is created?