This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Trouble creating a simple swing application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Trouble creating a simple swing application" Watch "Trouble creating a simple swing application" New topic
Author

Trouble creating a simple swing application

vikas Gourishetty
Ranch Hand

Joined: Aug 20, 2010
Posts: 38
I am trying to learn swing frame work using netbeans IDE.

In a video tutorial I see that:
when ever we insert a panel in design view, there is code being inseterd in source area. [Netbeans IDE].


But, I could not see all that happening in when I am try to do that.


Do you have any suggestions?


Thanks.
Luigi Plinge
Ranch Hand

Joined: Jan 06, 2011
Posts: 441

In the top left of the design window, there are two buttons, "Source" and "Design". Click the "Source" button.
vikas Gourishetty
Ranch Hand

Joined: Aug 20, 2010
Posts: 38
Hi Luigi,

THank you.

Well I know what you meant.

Problem I face is when I drag and drop in "Design" field,

I donot see any code updated in "source" Field.

You have some thing to help out ?

Thanks.
Luigi Plinge
Ranch Hand

Joined: Jan 06, 2011
Posts: 441

The source code is collapsed by default (in grey), so you need to expand it to see what the actual code is.

I don't find it particularly useful to look at this myself, as it uses GroupLayouts which are intended for use by GUI builders, not to be especially readable by people!

You might also find this useful:

Java tutorial: laying out components
vikas Gourishetty
Ranch Hand

Joined: Aug 20, 2010
Posts: 38
Thank you Luigi,


I see that there is a (+) sign [on hover says generated code]. on clicking that i see all the generated code.


Thank you very much.


-Vikas
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Trouble creating a simple swing application
 
Similar Threads
JTable Spread Sheet
Is there any eclipse-plugin for Spring?
How to add Date Picker in JFrame
Java swing
hello guys java beans 6 is really irritating me