如何将代码修改为 Net Beans 上的 initComponents() 方法? [英] How to modify code to the initComponents() method on Net Beans?

查看:37
本文介绍了如何将代码修改为 Net Beans 上的 initComponents() 方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这个问题类似于 stackoverflow 中的另一个问题.但它不一样.我想修改initcomponents方法,因为我有我的jar文件的旧版本源代码,我有我的新jar文件(源代码被错误删除)我反编译我的新jar,我得到了源代码,但我没有把它粘贴到旧版本上.因为它不给许可.另一个问题是我的 .java 类也有表单页面.当我反编译我的 jar 文件时,我没有看到 myclass.form 文件.如何通过反编译代码取回它以及如何将其粘贴到我的旧源代码中.

I know this question is similar to another question in stackoverflow. But it doesnt same. I want to modify initcomponents method because I have old version source code of my jar file , and I have my new jar file(source code is deleted by mistakenly) I decompile my new jar and I got source but I didnot paste it on old version. Because it does not give permission. And the other problem is my .java class has form page too. And when I decompile my jar file I didnot see the myclass.form file.How can I get it back by decompile the code and how can I paste it my old source code.

谢谢.

推荐答案

因为您使用的是 NetBeans,被删除的文件可能还处于本地版本控制之下.

Because you are using NetBeans, the deleted file may yet be under local version control.

  • 创建一个具有相同名称和位置的新文件.

  • Create a new file having the same name and location.

右键单击文件选项卡并选择History.

Right click on the file's tab and select History.

点击箭头恢复丢失的内容.

Click on the arrows to restore the missing content.

学习布局并释放您的内部 GUI设计师.

Learn layouts and free your inner GUI designer.

这篇关于如何将代码修改为 Net Beans 上的 initComponents() 方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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