Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

where is the frame and its components

 
bharani rao
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

i have the following code which has 3 Jlabels, 3 jtextfield and one jbutton.
but when i run thre are no components present.






when i click and drag it ( resizing manually,) all the componets are there.

what should i do to solve this problem


thanks in advance

when i run it is showing some minute thing on the left top corner.
 
Swastik Dey
Rancher
Posts: 1604
5
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JDialogTest frame = new JDialogTest();

The above line will invoke the default constructor of the class. But your entire initialization code is inside the method named init(). So either you need to define the constructor and put the initialization code there or you need to call the init method.

frame.init();
 
bharani rao
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi swastik,

i tried but it did not work... same problem.



thank you in advance
 
Swastik Dey
Rancher
Posts: 1604
5
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There seems to be nothing applet-specific about the question; moving to the Swing forum.
 
bharani rao
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you swastik,,

it is working..


thank you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic