Hi Ebi, welcome to CodeRanch! Please
UseCodeTags. I added them for you this time.
Eby George wrote:I am a newbie to Swing and Java World. [...] I am using Netbeans 6.7.1.
Here's the problem. First learn Swing before you learn how to make a Swing program in an
IDE. Writing a Swing application is incredibly hard to get right if your IDE adds all sorts of code and you don't know what it does.
Have you read Oracle's Swing tutorial yet?