From: Greg K. <gk...@po...> - 2006-12-12 06:56:30
|
Greg Kopff wrote: > Has anyone been looking at changes in 1.6 and might be able to steer me > in the right direction for making this work again. I guess Sun changed > the internal workings of JTabbedPane.getIconAt(). > > I'm about to go off and dive a bit deeper, but I just wanted to know if > anyone out there had already come across this. I'll report back if I > find anything definitive. > ClosableTabbedPane.removeTabAt(): index: 0 ClosableTabbedPane.removeTabAt(): getting icon at: 0 ... ClosableTabbedPane.removeTabAt(): ... got icon ClosableTabbedPane.removeTabAt(): calling super.removeTabAt() ... ClossableTabbedPane.SelectionHandler.stateChanged(): entry. ClossableTabbedPane.SelectionHandler.stateChanged(): setting button hidden ... ClosableTabbedPane.setButtonVisible(): index: 0 visible: false Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 0 >= 0 at java.util.Vector.elementAt(Unknown Source) at javax.swing.JTabbedPane.getIconAt(Unknown Source) It looks like we get a tab change event and use that to hide the right hand side "event icon" ... ... however, it would appear that in JDK 6 the tab is already gone at this point. Does anyone more knowledgeable have an idea how to make this work? Kindest regards, -- Greg Kopff =================================================== gk...@po... PowerSource Software Chief Technologist http://www.powersource.com.au =================================================== did you know 'if' is the middle word in 'life'? =================================================== Typhoon a revolution in wagering & gaming http://www.typhoon.com.au/ =================================================== |