In my last patch I made a slight mistake. I used the next index directly, instead of looking up the next tab run in the tabRuns array. This caused most tabs to be not drawn.
2006-03-20 Roman Kennke <[EMAIL PROTECTED]>
* javax/swing/plaf/basic/BasicTabbedPaneUI.java
(paintTabArea): Look up tab run indices in tabRuns array instead
of using the index directly.
Roman
--
“Improvement makes straight roads, but the crooked roads, without
Improvement, are roads of Genius.” - William Blake
Index: javax/swing/plaf/basic/BasicTabbedPaneUI.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/plaf/basic/BasicTabbedPaneUI.java,v
retrieving revision 1.37
diff -u -r1.37 BasicTabbedPaneUI.java
--- javax/swing/plaf/basic/BasicTabbedPaneUI.java 20 Mar 2006 17:34:57 -0000 1.37
+++ javax/swing/plaf/basic/BasicTabbedPaneUI.java 20 Mar 2006 19:28:36 -0000
@@ -1803,9 +1803,9 @@
int start = tabRuns[i];
int next;
if (i == runCount - 1)
- next = 0;
+ next = tabRuns[0];
else
- next = i + 1;
+ next = tabRuns[i + 1];
int end = (next != 0 ? next - 1 : tabCount - 1);
for (int j = start; j <= end; ++j)
{
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
