CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2000
    Location
    Kaysville, UT
    Posts
    228

    How do I force JPanels&JFrames to refresh?

    The subject line basically says it all. How do I force a JPanel and a JFrame to refresh (redraw and display all visible components)?

    Thanks!


    "There's nothing more dangerous than a resourceful idiot." ---Dilbert
    BWAHAHAHAHAHAHA! ---Murray

  2. #2
    Join Date
    Nov 1999
    Location
    Indianapolis, IN
    Posts
    191

    Re: How do I force JPanels&JFrames to refresh?

    try this:


    panel.update(panel.getGraphics());
    frame.update(frame.getGraphics());




    at least it worked for some of my refresh problems.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured