• 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

How to update a JFrame?

 
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello I was wondering if anyone out there knows how to update a JFrame. I already know how to update a JPanel .. you use
JPanel pane = new JPanel();
pane.updateUI();
but you cannot use
frame.updateUI(); for some reason.
Does anyone know how to update a JFrame?
Thanks

yours resptufully Avin Sinanan
 
Ranch Hand
Posts: 144
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you trying to just force a repaint or are you trying to change the look and feel of the JFrame?
 
Avin Sinanan
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well it like this... I can add 2 toolbars to the JFrame. But there can only be one toolbat at a time. So when one tolbar appears the other is removed. But wheneber I add the new toolbar I have to resize the JFrame in oreder tos ee the new toolbar that jas been added to teh JFrame. How do I update the JFrame so I do not have to resize the JFrame.
Thanks a million. Avin
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think u can use UPDATE(PAINT G) method to call the paint method, there by updating the JFrame. Also try SETVISIBLE(BOOLEAN ) method.
 
I child proofed my house but they still get in. Distract them with this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic