Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/xpath/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
netbeans中的按钮似乎不起作用_Netbeans - Fatal编程技术网

netbeans中的按钮似乎不起作用

netbeans中的按钮似乎不起作用,netbeans,Netbeans,基本上,return(Returnbtn)按钮应该打开一个新屏幕(主屏幕),但它没有。“HelpBtn”工作正常,但它只是返回按钮 只是为了确定:代码是否被调用?或者换句话说,是否将ActionListener添加到返回按钮? private void ReturnBtnActionPerformed(java.awt.event.ActionEvent evt) { //Return Btn Code this.setVisible(false); new HomeSc

基本上,return(Returnbtn)按钮应该打开一个新屏幕(主屏幕),但它没有。“HelpBtn”工作正常,但它只是返回按钮


只是为了确定:代码是否被调用?或者换句话说,是否将ActionListener添加到返回按钮?
private void ReturnBtnActionPerformed(java.awt.event.ActionEvent evt) {  
    //Return Btn Code
   this.setVisible(false);
   new HomeScreen().setVisible(true);   
}

private void HelpBtnActionPerformed(java.awt.event.ActionEvent evt) {                                        
    //Help BTN code
                                       
   this.setVisible(false);
   new Help().setVisible(true);                                       
}