I have done something like that in an awt applet,
maybe something like the following will works lso for your needs:
class MyVetoableChange implements java.beans.VetoableChangeListener
{
public void vetoableChange(java.beans.PropertyChangeEvent event)
throws java.beans.PropertyVetoException
{
Object object = event.getSource();
if (object == tabPanelVersuche)
tabPanelVersuche_vetoableChange(event);
}
}
void tabPanelVersuche_vetoableChange(java.beans.PropertyChangeEvent event)
throws java.beans.PropertyVetoException
{
// get the switches property
event.getPropertyName().equals( "CurrentTab" )
newTab = ((Integer)event.getNewValue()).intValue()
switch( newTab ) // do your actions
}
hope it will help
Salvador Richter
Web-Applikationsentwickler/Projektleiter
mailto:[EMAIL PROTECTED]
--------------------------------------------
in-integrierte informationssysteme GmbH
Am Seerhein 8
D-78467 Konstanz
http://www.in-gmbh.de
--------------------------------------------
Telefon +49 (0) 7531 - 81 45- 0
Telefax +49 (0) 7531 - 81 45-81
-----Urspr�ngliche Nachricht-----
Von: Pallika Haridas Kanani [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 27. August 2002 21:18
An: [EMAIL PROTECTED]
Betreff: JTabbedPane repaint
Hi all,
I have a JTabbedPane where each panel is used for input to a database and
also displays data from the database. Now i want that everytime a panel gets
displayed (i.e. corresponding tab gets focus) the panel should be repainted
(so that it has the updated data). Any suggestions?
Thanx,
Pallika.�
_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing
_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing