|
![](/images/resource/spacer.gif) |
|
Java ผมใช้ Netbean สร้าง JFrame แล้วมันไม่มีตัวแปร frame เพื่อจะไปใช้อ้างอิง ทำยังไงให้มีตัวแปร frame ครับ |
|
![](/images/resource/viewboard_01.gif?v=1001) |
|
|
![](/images/resource/viewboard_03.gif?v=1001) |
![](/images/resource/viewboard_04.gif?v=1001) |
|
Code (Java)
package com.java.myapp;
import javax.swing.JFrame;
public class MyForm {
public static void main(String[] args) {
JFrame frame = new JFrame("A JFrame");
frame.setSize(250, 250);
frame.setLocation(300,200);
frame.setVisible(true);
}
}
ใช้การสร้างแบบนี้แทนครับ
|
![](/images/resource/blockviewtopic_01.gif?v=1001) |
![](/images/resource/blockviewtopic_02.gif?v=1001) |
![](/images/resource/blockviewtopic_03.gif?v=1001) |
![](/images/resource/blockviewtopic_04.gif?v=1001) |
Date :
2014-02-05 17:17:47 |
By :
mr.win |
|
![](/images/resource/blockviewtopic_06.gif?v=1001) |
![](/images/resource/blockviewtopic_07.gif?v=1001) |
![](/images/resource/blockviewtopic_08.gif?v=1001) |
![](/images/resource/blockviewtopic_09.gif?v=1001) |
|
|
![](/images/resource/viewboard_06.gif?v=1001) |
![](/images/resource/viewboard_07.gif?v=1001) |
|
![](/images/resource/viewboard_08.jpg?v=1001) |
![](/images/resource/viewboard_09.gif?v=1001) |
|
|
|
![](/images/digitalocean-banner.jpg)
|
Load balance : Server 02
|