• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Trouble creating a simple swing application

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 441
Scala IntelliJ IDE Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Scala IntelliJ IDE Windows
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic