只是不能在我的GUI中弄清楚這一點,我知道這可能很簡單,但我想問問。如何在Netbeans(java)中添加標題?
我想我需要的東西在此代碼:
public static void main(String args[]) {
/* Create and display the form */
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new myGUI().setVisible(true);
}
});
}
感謝。
編輯 - 出於某種原因公共靜態等沒有出現在上面 - 但你可能不需要。
有啥問題? – Ankit
如何在Netbeans中將標題添加到我的GUI中。我在哪裏下載代碼?除了一次,我看不到在我的代碼中提到的JFrame,所以我JFrame.setTitle(「example」);將無法工作。 – user2558774
你正確的軌道上,你需要在上面的方法裏面設置標題。但是爲了能夠幫助我們需要更多的代碼。 – Ankit