Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 8 of 8

Thread: How to reload JInternalFrame

  1. #1
    Junior Member
    Join Date
    Apr 2010
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation How to reload JInternalFrame

    Hi...

    How could I be able to update or refresh the contents of my components in the JInternalFrame.
    I've been researching any methods yet none of them works.
    I have a hard time implementing those codes ony my JIF.

    Could someone help me..


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: How to reload JInternalFrame

    It depends how you wish to 'update'. You can try calling repaint() to repaint some components, or if you've added other components you should call revalidate.

  3. #3
    Junior Member
    Join Date
    Apr 2010
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: How to reload JInternalFrame

    Can you post a sample code of repaint?

  4. #4
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: How to reload JInternalFrame

    repaint()
    That's about all it takes...why don't you post your sample code, in which case the situational conditions and reason for updates/refresh will be more apparent and a better answer might be unveiled.

  5. #5
    Member Darryl.Burke's Avatar
    Join Date
    Mar 2010
    Location
    Madgaon, Goa, India
    Posts
    494
    Thanks
    8
    Thanked 48 Times in 46 Posts

    Default Re: How to reload JInternalFrame


  6. #6
    Junior Member
    Join Date
    Apr 2010
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: How to reload JInternalFrame

    Darryl.Burke

    I'm eager to find solutions to my question.
    I know a sample code is needed and it will be up after this reply.

  7. #7
    Member Darryl.Burke's Avatar
    Join Date
    Mar 2010
    Location
    Madgaon, Goa, India
    Posts
    494
    Thanks
    8
    Thanked 48 Times in 46 Posts

    Default Re: How to reload JInternalFrame

    So you actually think cross posting to 3 forums will get you an answer sooner?

    That's not how it works.

    db

  8. #8
    Junior Member
    Join Date
    Apr 2010
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: How to reload JInternalFrame

    Problem is resolved thanks to repaint()
    Thanks to copeg
    I have resolve this problem.

Similar Threads

  1. Key Listener not working in jinternalframe
    By furqankhan in forum What's Wrong With My Code?
    Replies: 1
    Last Post: February 12th, 2010, 09:48 AM
  2. Question about JInternalFrame
    By TimW in forum AWT / Java Swing
    Replies: 0
    Last Post: November 7th, 2009, 08:31 AM