“Wie man Fenster in Java macht” Code-Antworten

Java erstellen Fenster

//THIS IS A FIX OF THE ONE BY FRANCY FROG
//THEY FIXED THEIRS
import javax.swing.JFrame;

public class example {
  public static void main(String[] args){
    JFrame frame = new JFrame();
    frame.setSize(100,100);
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.setTitle("Example Frame");
    frame.setVisible(true);
  }
}
Rabid Goose

Java erstellen JFrame

import javax.swing.JFrame;

public class example {
  public static void main(String[] args){
    JFrame frame = new JFrame();
    frame.setSize(100,100);
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOES);
    frame.setTitle("Example Frame");
    frame.setVisible(true);
  }
}
Fancy Frog

Wie man Fenster in Java macht

//It is easy
//Don't forget to mention package or it will cause error
import javax.swing.*;

public class coder83 {
  public static void main(String[] args){
    JFrame firstFrame = new JFrame();
//x and y are your wish
    firstFrame.setsize(y,x);
    firstFrame.setTitle("Coder83");
//It is important or else your window won't clode
    firstFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
 
    firstFrame.setVisible(true);
  }}
    
VScoder

Ähnliche Antworten wie “Wie man Fenster in Java macht”

Fragen ähnlich wie “Wie man Fenster in Java macht”

Weitere verwandte Antworten zu “Wie man Fenster in Java macht” auf Java

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen