File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion 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
  • 0
  • 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: 1101
10
Java Netbeans IDE Ubuntu
  • 0
  • 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
  • 0
  • 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: 1101
10
Java Netbeans IDE Ubuntu
  • 0
  • 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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic