• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JPanel doesn't show up

 
Garry Kalra
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have created a panel and add it to the center of the window and call its show method. In its constructor i have set it visible.
Still the thing doesn't come up automatically until and unless i resize the window. I think some sorts of update is to be called. Can anyone help me with this.
Gaurav
 
Andras Nemeth
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
May be setSize(int,int) or pack()?
I use setVisible(true) and setSize(500,500).
Kr,
Ban
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic