Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

nothing shows. what did i forget?

 
kelvin cheung
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

 
sasi kala
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi kelvin,

add this line at end of your constructor

setContentPane(flate);
setSize(400,400);
setVisible(true);


Hope This Helps.

All The Best
 
kelvin cheung
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi sasi kala,
i see~ ...
oh , the setSize has to be before setVisible.

thank you for your help ^^
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic