Results 1 to 2 of 2
  1. #1
    petmoreno is offline Member
    Join Date
    Nov 2010
    Posts
    1
    Rep Power
    0

    Default how to know when jframe swing is painted

    Hi folks,

    I'm just working with a Java application which has several tabs on her Gui. The issue is when I change the tabs I move a Jpanel which has a video on it, and sometimes (I dunno why) the application brokes.

    I've been thinking about the possible solutions, and I want to wait for the Jframe, and of course the tabs, are painted, and then place the video panel on the tab displayed.

    So, my question is: Is there a method which tells you if a Jframe has been painted totally?.

    Thanks in advance

    Regards

    Pedro

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,457
    Rep Power
    20

    Default

    To get better help sooner, post a SSCCE (Short, Self Contained, Compilable and Executable) example that demonstrates the problem. Don't forget to use the code tags.

    db

Similar Threads

  1. Replies: 9
    Last Post: 06-26-2010, 04:16 PM
  2. Replies: 2
    Last Post: 01-30-2010, 06:14 AM
  3. Replies: 16
    Last Post: 01-04-2010, 07:34 PM
  4. Replies: 3
    Last Post: 12-10-2009, 04:07 PM
  5. JFrame/Swing Question
    By Moncleared in forum AWT / Swing
    Replies: 9
    Last Post: 01-16-2009, 09:16 PM

Posting Permissions

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