• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Panel issue

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 283
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic