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

Panel issue  RSS feed

 
Mark Lockery
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a frame that opens with a panel at the top with buttons in it, and a paint area below that.

I wish to have the frame no able to be resized, and have done so. The problem i have is that without resizing the frame, my panel does not draw all the buttons properly, it draws only the first button.

My code for the frame is as follows:


and my code for the panel is as follows:


Some way to take in all the panel information before drawing it seems to be needed, or a way of effectively "repainting" the panel.

Any suggestions?

thanks,
Mark.
 
Eddie Vanda
Ranch Hand
Posts: 283
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have tried your code and the three buttons come up fine. Some time since i've done any awt programming though!!!

Ed
 
Mark Lockery
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
and you didn't resize it at all?
If i don't resize it only the quit button comes up.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!