Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2006

Tip: Looking for answers? Try searching our database.

Need help about JTabbedPane

Thread view: 
gtcc2009@yahoo.com - 23 Jan 2006 09:58 GMT
Hello, I have a problem with the JTabbedPane in which the
PropertyChanged event is only fired if the selected tab is different
from the current tab while the expected behavior is that whenever a tab
is clicked, it is refreshed even if it is the current tab. Is there
anyway to do that without resorting to the MouseClicked event?

Thanks,

Dor
zero - 23 Jan 2006 14:10 GMT
gtcc2009@yahoo.com wrote in news:1138010288.557994.88760
@z14g2000cwz.googlegroups.com:

> Hello, I have a problem with the JTabbedPane in which the
> PropertyChanged event is only fired if the selected tab is different
[quoted text clipped - 5 lines]
>
> Dor

I can't think of any way that would not involve MouseClicked.  You could
have a look at the JTabbedPane source and see when and how fireStateChanged
is called in responce to clicking a tab.  Then override that method, or
just add your code to fire a ChangeEvent even when the tab isn't changed.

Alternatively, maybe you could add a "refresh" button to the tab's content,
which would be a lot easier to do - but fills up your UI.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.