Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

draw panel and jbutton not showing  RSS feed

 
Carolin Sha
Ranch Hand
Posts: 68
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

Please see code below, Not sure why the draw panel and jbutton are not showing. any help would be appreciated.

 
Campbell Ritchie
Marshal
Posts: 55741
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to our GUIs forum.

You called setVisible before you added the panel and button. You should call setVisible last (or use revalidate).
 
Carolin Sha
Ranch Hand
Posts: 68
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

I moved setVisible however I am still not seeing the draw panel and jbutton.
 
Carolin Sha
Ranch Hand
Posts: 68
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

Thanks, I finally got it to work.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!