Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Trouble creating a simple swing application

 
vikas Gourishetty
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 441
IntelliJ IDE Scala Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the top left of the design window, there are two buttons, "Source" and "Design". Click the "Source" button.
 
vikas Gourishetty
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 441
IntelliJ IDE Scala Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic