Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Label dissapears in Netbeans Editor if it has no text

 
Panagiotis Kalogeropoulos
Rancher
Posts: 99
Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

I am using the Netbeans editor to create some simple guis. In one gui i put some labels that have no text and are used to display error messages when they happen. The problem is that if a JLabel has not text, it is like it does not exist in the editor so I can't select it, modify it, or even delete it. Do you know how to select a JLabel in the Netbeans editor if it has no text?

Thanks a lot in advance.
 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1103
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will have a 'Inspector' window in the left bottom part when you are in 'Design' mode. You can select the label there.
 
Panagiotis Kalogeropoulos
Rancher
Posts: 99
Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know that I can select the components from the inspector. But if a label has no text, then selecting it in the editor does not open the Properties window on the right. This means that I can't modify it after I initialize it with an empty text.
 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1103
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The property editor may be in undocked mode. In that case, you have to drag it and dock it. Label being empty is in no way related to docking/undocking of windows.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic