无法删除JLabel(Netbeans) [英] Cannot remove JLabel (Netbeans)

查看:122
本文介绍了无法删除JLabel(Netbeans)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

(对不起,我的英语)当我在Netbeans中将JLabel添加到Form中时,我无法移动它.我将它从Form中删除了.现在我要编译项目,它显示错误消息:

(sorry for my english) When I add JLabel to Form in Netbeans, I couldn´t move with it.I removed it from form. Now I want compile project and it show error message:

error: cannot find symbol jLabel8 = new javax.swing.JLabel();

其他jLabel都可以,但是这是错误的.我将其从表单中删除,但是它始终在检查器中.

other jLabels are ok, but this one is wrong. i remove it from form, but it is always in inspector.

检查打印屏幕(1. jLabel8是错误的,我无法将其删除; 2.其他标签还可以,可以在菜单中选择删除):

check printscreens (1. jLabel8 is wrong, i cant remove it; 2.other labels are ok, in menu is option to delete) :

屏幕1:

屏幕2:

推荐答案

1)很难为您提供Java Desktop Aplications的帮助,因为基于Swing方法的此框架已被长时间折旧且不受支持,因此 NetBeans论坛,但是看起来这些论坛也已经很久了,

1) to hard to help you with Java Desktop Aplications, because this Framework based on Swing methods is long time depreciated and un_suported, these areas were supported on NetBeans Forums, but looks like as these forums are long time died too,

2)通过使用标准 Swing JComponents 标准LayoutManagers ,并通过

2) use Standard Swing JComponents, by using Standard LayoutManagers and listening for events by Standard Listeners rather that use Java Desktop Aplications Framework

3)为了尽快获得更好的帮助,请在此处发布包含 SSCCE 示例的问题: //stackoverflow.com/search?q=%5Bjava%5D%20sscce">SSCCE ,

3) for better help sooner please post here question that contains SSCCE examples for SSCCE,

编辑

4)在某些情况下,无法使用此框架直接覆盖基本的Swing方法,例如从更改FrameView的Java Cup图标开始

4) in some cases isn't possible directly override basic Swing methods by using this Framework, f.e. starting with to change Java Cup Icon for FrameView

这篇关于无法删除JLabel(Netbeans)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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