ش | ی | د | س | چ | پ | ج |
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
ساخت فرم در جاوا - قسمت چهارم :
import javax.swing.JFrame;
public class c01_JFrame_01 {
public c01_JFrame_01() {
// TODO Auto-generated constructor stub
}
public static void main(String[] args) {
// TODO Auto-generated method stub
JFrame jf = new JFrame();
jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
jf.setVisible(true);
int window_location_x;
int window_location_y;
int window_size_width;
int window_size_height;
window_location_x = 10;
window_location_y = 10;
window_size_width = 1024 - 60;
window_size_height = 768 - 60;
jf.setBounds(window_location_x, window_location_y, window_size_width,
window_size_height);
}
}