This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one 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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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