United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7188612 JTable's AccessibleJTable throws IllegalComponentStateException instead of null
JDK-7188612 : JTable's AccessibleJTable throws IllegalComponentStateException instead of null

Details
Type:
Bug
Submit Date:
2012-08-02
Status:
Resolved
Updated Date:
2013-04-22
Project Name:
JDK
Resolved Date:
2012-09-05
Component:
client-libs
OS:
linux
Sub-Component:
javax.swing
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:

Related Reports
Backport:

Sub Tasks

Description
FULL PRODUCT VERSION :
java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
Linux 3.2.0-23-generic Ubuntu x86_64
Windows 6.1.7601

A DESCRIPTION OF THE PROBLEM :
When using accessiblity inner classes of JTable such as JTable$AccessibleJTable$AccessibleJTableCell or Table$AccessibleJTable$AccessibleJTableHeaderCell that implement AccessibleComponent, getLocationOnScreen interface throws IllegalComponentStateException instead of null when the corresponding JTable is not visible.  This behavior conflicts with AccessibleComponent.getLocationOnScreen javadoc



REPRODUCIBILITY :
This bug can be reproduced always.

                                    

Comments
EVALUATION

JTable$AccessibleJTable$AccessibleJTableCell and JTable$AccessibleJTable$AccessibleJTableHeaderCell should return null from implemented methods getLocationOnScreen when the corresponding JTable is not visible
                                     
2012-08-20



Hardware and Software, Engineered to Work Together