NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

How to view source from GUI builder

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
javahop56



Joined: 17 Sep 2009
Posts: 3

PostPosted: Thu Sep 17, 2009 4:57 pm    Post subject: How to view source from GUI builder Reply with 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.

Thanks.
Back to top
Mike Riley
Posted via mailing list.





PostPosted: Thu Sep 17, 2009 7:14 pm    Post subject: How to view source from GUI builder Reply with quote

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

PostPosted: Thu Sep 17, 2009 11:51 pm    Post subject: Reply with quote

Thanks for the help!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo