Re: Best way to force a JComponent to repaint itself



zerg wrote:
What's the best way to force a JComponent to repaint itself? I've got three candidates:

revalidate()
repaint()
update()

Read Roedy's post and then tell us what you really want to do and what you've been doing before that.

--

Knute Johnson
email s/nospam/knute2008/

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
.



Relevant Pages

  • Re: Graphics help please
    ... calls of repaint() will be coalesced by Swing when they arrive ... Although if performance is critical there are other methods such as active rendering that will significantly improve drawing performance especially on Winblows. ... Posted via NewsDemon.com - Premium Uncensored Newsgroup Service ... Unlimited Access, Anonymous Accounts, Uncensored Broadband Access ...
    (comp.lang.java.programmer)
  • Re: how reapint JLabel
    ... In any case I repeat my statement, you should not need to call repaint() after calling setTexton a JLabel. ... Posted via NewsDemon.com - Premium Uncensored Newsgroup Service ... Unlimited Access, Anonymous Accounts, Uncensored Broadband Access ...
    (comp.lang.java.programmer)
  • Re: updating an ImageIcons backing BufferedImage content from multiple threads
    ... Could that same mechanism work in calls to repaint()? ... Posted via NewsDemon.com - Premium Uncensored Newsgroup Service ... Unlimited Access, Anonymous Accounts, Uncensored Broadband Access ...
    (comp.lang.java.programmer)
  • Re: Best way to force a JComponent to repaint itself
    ... repaint() belongs to Component. ... Posted via NewsDemon.com - Premium Uncensored Newsgroup Service ... Unlimited Access, Anonymous Accounts, Uncensored Broadband Access ...
    (comp.lang.java.programmer)
  • Re: Aqualunging?
    ... Posted via NewsDemon.com - Premium Uncensored Newsgroup Service ... Unlimited Access, Anonymous Accounts, Uncensored Broadband Access ... Country, I suppose. ... Actually I play in a few different venues. ...
    (rec.boats)