| Author |
Label dissapears in Netbeans Editor if it has no text
|
Panagiotis Kalogeropoulos
Rancher
Joined: May 27, 2011
Posts: 99
|
|
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
Joined: Oct 16, 2003
Posts: 927
|
|
|
You will have a 'Inspector' window in the left bottom part when you are in 'Design' mode. You can select the label there.
|
Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
|
 |
Panagiotis Kalogeropoulos
Rancher
Joined: May 27, 2011
Posts: 99
|
|
|
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
Joined: Oct 16, 2003
Posts: 927
|
|
|
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.
|
 |
 |
|
|
subject: Label dissapears in Netbeans Editor if it has no text
|
|
|