U
User
Gast
Hallo, wie mache ich am besten dass das JFrame beim Start auf volle Grösse des Monitors erscheint.
Danke im Voraus.
Danke im Voraus.
Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
package test;
import javax.swing.JFrame;
public class Fenster extends JFrame {
public Fenster() {
this.setExtendedState(JFrame.MAXIMIZED_BOTH);
this.setTitle(" Test ");
this.setVisible(true);
}
public static void main(String[] args) {
Fenster f = new Fenster();
}
}
package test;
import javax.swing.JFrame;
public class Fenster extends JFrame {
public Fenster() {
this.setBounds(100,100,800,600);
this.setTitle(" Test ");
this.setVisible(true);
}
public static void main(String[] args) {
Fenster f = new Fenster();
f.setExtendedState(JFrame.MAXIMIZED_BOTH);
}
}