On Thu, 21 Mar 2024 10:56:52 GMT, Alexey Ivanov <[email protected]> wrote:

>> Thanks for the information, didn't know that..Updated....there is around 
>> ~400 occurrence of getContentPane() in swing tests in open still so probably 
>> something to be optimised in future...
>
> The tests were probably written before Java 5, even tests written later could 
> still use `getContentPane` so that the test could be run with previous 
> versions of Java. Yet it's irrelevant now.
> 
> The Java Tutorials have never been updated, [How to Make 
> Frames](https://docs.oracle.com/javase/tutorial/uiswing/components/frame.html)
>  uses `getContentPane` explicitly.

Good point..this backward support still keep us using obsolete things..
Java tutorials also there are few bugs like 
[6417303](https://bugs.openjdk.org/browse/JDK-6417303) which needs fix in the 
tutorial..dont know whom to ask or can we do it ourselves..

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/18390#discussion_r1533704146

Reply via email to