Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-16-2008, 02:01 AM
Member
 
Join Date: Apr 2008
Posts: 2
olesja is on a distinguished road
refresh JPanel
Hello, everybody!
I am here struggling with refreshing a JPanel (ep5) that is inside another JPanel (p3) that is being added to the JFrame in the program.

ep5 is created separately (and is reading some data from a text file). Then after I click either of the buttons the account is added or deleted to this text file. So the buttons are working perfectly fine. But when I try to revalidate the JPanel nothing happens. I have tried everything by now, so I would really appreciate it if someone helped, cuz i feel it somewhere close but I am just stuck there one step away.
Here is how the panels p3 and ep5 are created, and since p3 is not finished yet, then I really need to only refresh ep5.
Code:
p3.setBackground(c3); ep5=new ThirdPanelA(); p3.add(ep5); //content.add(p3); add(p3);
So, I need to revalidate a JPanel inside another JPanel.

PLEASE, PLEASE, PLEASE!!!! I am really desperate right now.

P.S. The panel ep5 is not being painted. It is just reading data from text file, and generates it using GridLayout.

Last edited by olesja : 04-16-2008 at 02:05 AM. Reason: forgot to mention one thing
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-16-2008, 04:58 PM
Member
 
Join Date: Apr 2008
Posts: 2
olesja is on a distinguished road
The problem is solved. Don't bother.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
My Simple Refresh Problem pmcastillo New To Java 0 03-26-2008 08:59 AM
refresh a different window marceldupont AWT / Swing 3 03-22-2008 03:44 AM
Refresh Button p_dev_anand Java Blogs 1 01-07-2008 11:25 AM
How to Refresh the same page by JSP AbuAziz JavaServer Pages (JSP) and JSTL 2 12-10-2007 05:06 AM
Refresh session cachi JavaServer Pages (JSP) and JSTL 1 08-07-2007 08:52 AM


All times are GMT +3. The time now is 08:53 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org