我在使用 netbeans 时遇到问题。请帮忙 错误是
error: code too large
private void initComponents() {
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
最佳答案
您的方法太大而无法编译。方法不能包含超过 64KB 的字节码。
由于这似乎是由 NetBeans 生成的代码,用于向面板或 JFrame 添加和布局 GUI 组件,因此您应该将 GUI 分成几个独立的子面板,而不是尝试将所有内容放入一个面板中。
关于java - 错误: code too large in netbeans,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25221219/