Windows应用程序中的后退按钮代码 [英] Back button code in a Windows Application

查看:151
本文介绍了Windows应用程序中的后退按钮代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用Core JAVA开发一个项目,现在遇到了问题.有两种形式,即Form1和Form2.在Form1中,单击确定"按钮时,必须打开Form2.在Form2中,单击返回"按钮时,必须打开Form1.

我首先编译并执行了FORM1,它第一次可以正确运行.但是,在编译Form2时,会出现Form2的错误.
然后我们重新编译Form1,再次显示与Form2相同的错误.

为什么会出现此问题,我该如何解决?

I am working on a project in Core JAVA and now encountered with a problem. There are two forms, Form1 and Form2. In Form1, when button "OK" is clicked, then Form2 has to be opened. And in Form2 when button "BACK" is clicked, then Form1 has to be opened.

I have first compiled and executed FORM1, it runs correctly for first time. But when Form2 is compiled,there comes the error for Form2.
Then we re-compiled Form1, again the same error of Form2 is showing.

Why is this problem occurred and how could I resolve it????

推荐答案

将其设置为向导.那具有您要使用下一个/后退功能搜索的功能,等等.

这比其他任何事情都简单得多.您只需要将向导下的窗口/对话框"更改为向导即可.很简单.

向导-教程 [
Make it a Wizard. That one has the capability that you are searching with next/back function and so on.

That is much simpler than anything else. You just need to change the Window/Dialog underneath to a Wizard. Pretty simple.

Wizzard - Tutorial[^]


这篇关于Windows应用程序中的后退按钮代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆