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 12-16-2007, 05:16 PM
Member
 
Join Date: Dec 2007
Posts: 3
ottawalyli is on a distinguished road
Why the panel text changed?
OOOPS, I need to move this to AWT/Swing forum.

Hello, I ran into a strange problem:

I have two panels in sequence, both of them displayed from the same JFrame. The JFrame has an Image in the "West" (BorderLayoutManeger). The image is shared between the two panels. The problematic part is the JPanel in the center, which is different from panel to panel.

The first time, a new JPanel is added and a non-editable JEditorPane is added to the JPanel. It displays Text "AAA". I can minimize or hide the panel and then bring the panel back. No problem.


Later a new JPanel is created and a JLabel is added the the new JPanel, and the the new JPanel is set to the center of the JFrame. It first displays text "BBB" properly. But when I minimize or hide the panel, and then bring the panel back, the panel goes back to text "AAA". And it always displays "AAA".

Any suggestions?

Thanks in advance.

Last edited by ottawalyli : 12-17-2007 at 06:26 AM.
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
Java Control Panel not saving changes when I press OK RebelScum New To Java 0 03-21-2008 05:22 PM
Why the panel text changed? ottawalyli AWT / Swing 1 12-17-2007 06:56 AM
How to place panel into frame vivek_9912 AWT / Swing 2 11-20-2007 12:21 AM
Help with drag from panel fernando AWT / Swing 2 08-07-2007 11:19 PM
Strings are immutable yet they can be changed ? anjanesh New To Java 4 05-19-2007 04:08 PM


All times are GMT +3. The time now is 04:11 PM.


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