java create window
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);
}
}//THIS IS A FIX OF THE ONE BY FRANCY FROG
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);
}
}
Also in Java:
- change java version command line debian
- cgange background from button click java fx
- cannot lock java compile cache as it has already been locked by this process
- java scanner
- java fx display simple rectangle
- finding min and max from given number in java
- how to get witdth of window android
- java int to string
- how to remove a certain string in a arraylist java
- query java persistence
- 2 decimal places print format JAVA
- java windowbuilder full screen
- how to print in java
- java parse xml string
- HOW TO SUPRESS sonar warning in java code
- sort elements with sortedset
- binary number input in int java
- java timestamp
- tower of hanoi program in java using recursion
- while loops java
- java string to boolean
- java list all non directory files in the directory
- java constructor
- java get annotation value