Re: Swing Dev RfR: JDK-8133897, IndexOutOfBounds exception being thrown

2015-08-21 Thread Walter Laan
-dev@openjdk.java.net Subject: Re: Swing Dev RfR: JDK-8133897, IndexOutOfBounds exception being thrown Is this fix trivial enough to qualify for the noreg-trivial tag? On 8/19/15 4:56 PM, Pete Brunet wrote: On 8/19/15 4:50 PM, Pete Brunet wrote: Please review this patch. http

Re: Swing Dev RfR: JDK-8133897, IndexOutOfBounds exception being thrown

2015-08-21 Thread Alexander Scherbatiy
The setTabComponentAt() method allows to set a component to a tabbed pane title. In the following example the tab title is : tabbedPane.addTab(null, new JLabel(Content 1)); tabbedPane.setTabComponentAt(0, new JLabel(Title 1)); The getBounds() method can also try

Re: Swing Dev RfR: JDK-8133897, IndexOutOfBounds exception being thrown

2015-08-20 Thread Alexander Scherbatiy
On 8/20/2015 12:50 AM, Pete Brunet wrote: Please review this patch. http://cr.openjdk.java.net/~ptbrunet/JDK-8133897/webrev.00/ The issue is that the application has a tab with a visible title but for some reason JTabbedPane's title field was . This caused indexOfTab(title) to return -1 and

Re: Swing Dev RfR: JDK-8133897, IndexOutOfBounds exception being thrown

2015-08-20 Thread Pete Brunet
Is this fix trivial enough to qualify for the noreg-trivial tag? On 8/19/15 4:56 PM, Pete Brunet wrote: On 8/19/15 4:50 PM, Pete Brunet wrote: Please review this patch. http://cr.openjdk.java.net/~ptbrunet/JDK-8133897/webrev.00/ The issue is that the application has a tab with a visible

Swing Dev RfR: JDK-8133897, IndexOutOfBounds exception being thrown

2015-08-19 Thread Pete Brunet
Please review this patch. http://cr.openjdk.java.net/~ptbrunet/JDK-8133897/webrev.00/ The issue is that the application has a tab with a visible title but for some reason JTabbedPane's title field was . This caused indexOfTab(title) to return -1 and then getTabBounds(parent, -1) raised

Re: Swing Dev RfR: JDK-8133897, IndexOutOfBounds exception being thrown

2015-08-19 Thread Pete Brunet
On 8/19/15 4:50 PM, Pete Brunet wrote: Please review this patch. http://cr.openjdk.java.net/~ptbrunet/JDK-8133897/webrev.00/ The issue is that the application has a tab with a visible title but for some reason JTabbedPane's title field was . This caused indexOfTab(title) to return -1 and