On Fri, 27 Sep 2024 11:55:21 GMT, Prasanta Sadhukhan <[email protected]>
wrote:
>> I'm getting this error if I use ` PassFailJFrame.log` to `componentResize`
>> method.
>> `java.lang.NullPointerException: Cannot invoke
>> "javax.swing.JTextArea.append(String)" because "PassFailJFrame.logArea" is
>> null`. Since the test is about resize, I've updated only resize related
>> print statement.
>
> Probably component is resized even before PassFailJFrame creates the logArea
> in Builder interface.
> The instructions says
> "When isResizable is true the dialog is resizable. When isResizable is false
> the dialog is non-resizable" and you are logging
> "PassFailJFrame.log("isResizable is set to: " + bResizeState);"
>
> so, it seems ComponentListener is not needed and all these 4 methods can be
> removed which is only logging and that too is not visible to tester...
this is pending..
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/21174#discussion_r1780355712