如何在Net Beans上将代码修改为initComponents()方法? [英] How to modify code to the initComponents() method on Net Beans?
问题描述
我知道这个问题类似于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屋!