NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
javahop56
Joined: 17 Sep 2009 Posts: 3
|
Posted: Thu Sep 17, 2009 4:57 pm Post subject: How to view source from GUI builder |
|
|
Hello I am using nebeans 6.5. I created a new class file for a UI. I have created a UI using the graphical UI editor. I have added a button and a text box. When I look at the code that it generates and I cannot find the location information for the buttons and text entry...what I mean is that when I write java without netbeans I have to specify the location of the buttons...So where is this information found when netbeans generates the code? Is there some special file it creates or something. I was hoping to have some way of creating a source file that can be compiled in a regular java editor. The main reason that I am interested is that I would like to know what lines of code are being compiled. Anyways sorry if this has already been discussed I was just wondering if there were some explanations.
Thanks. |
|
| Back to top |
|
 |
Mike Riley Posted via mailing list.
|
Posted: Thu Sep 17, 2009 7:14 pm Post subject: How to view source from GUI builder |
|
|
javahop56 wrote:
| Quote: | Hello I am using nebeans 6.5. I created a new class file for a UI. I have created a UI using the graphical UI editor. I have added a button and a text box. When I look at the code that it generates and I cannot find the location information for the buttons and text entry...what I mean is that when I write java without netbeans I have to specify the location of the buttons...So where is this information found when netbeans generates the code? Is there some special file it creates or something. I was hoping to have some way of creating a source file that can be compiled in a regular java editor. The main reason that I am interested is that I would like to know what lines of code are being compiled. Anyways sorry if this has already been discussed I was just wondering if there were some explanations.
|
If you want to view source you simply click on "Source" just at the top
left of the layout window.
But it sounds like you want to view and edit the properties of the GUI
elements. For that you want to use the Inspector tab. In my 6.7.1 that
is in the lower left window, where it has a Navigator and Inspector tab.
Just find the element you want to look at and it should show up in a
window on the right, with selections for: Properties, Binding, Events, and
Code. You can also simply right-click on it in the Inspector window and
Select Properties. There are several other selections available from the
right-click menu that may interest you.
Hope that helps.
Mike |
|
| Back to top |
|
 |
javahop56
Joined: 17 Sep 2009 Posts: 3
|
Posted: Thu Sep 17, 2009 11:51 pm Post subject: |
|
|
| Thanks for the help! |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|