org.xulux.guilayer.swing.widgets
Class TabPanel.RepaintComponent

java.lang.Object
  extended by org.xulux.guilayer.swing.widgets.TabPanel.RepaintComponent
All Implemented Interfaces:
java.awt.event.HierarchyListener, java.lang.Runnable, java.util.EventListener
Enclosing class:
TabPanel

public class TabPanel.RepaintComponent
extends java.lang.Object
implements java.lang.Runnable, java.awt.event.HierarchyListener

Fixes painting issues with the tabPanel. Eg buttons from another panel would shine through the first panel. After selecting the panel with the shine through buttons on it, the problems would never appear again. The selection of other tabs needs to be done in seperate runnables, since else the painting doesn't complete of other components. Probably calling the listeners with fireStatChanged will do, but couldn't figure that out yet..


Constructor Summary
TabPanel.RepaintComponent()
          the constructor
 
Method Summary
 void hierarchyChanged(java.awt.event.HierarchyEvent e)
           
 void run()
           
 void selectIndex(int index)
          Select the specified index
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TabPanel.RepaintComponent

public TabPanel.RepaintComponent()
the constructor

Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
See Also:
Runnable.run()

selectIndex

public void selectIndex(int index)
Select the specified index

Parameters:
index - the index

hierarchyChanged

public void hierarchyChanged(java.awt.event.HierarchyEvent e)
Specified by:
hierarchyChanged in interface java.awt.event.HierarchyListener
See Also:
HierarchyListener.hierarchyChanged(java.awt.event.HierarchyEvent)


Copyright © 2002-2007 Martin van den Bemt. All Rights Reserved.