<Swing Dev> RFR: 4916923: In MetalRootPaneUI, MetalRootLayout does not correctly calculate minimumsize

Sergey Bylokhov serb at openjdk.java.net
Thu Oct 8 06:54:27 UTC 2020


On Wed, 7 Oct 2020 06:48:29 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

>> If the MetalRootLayout is private and it is not possible to trigger this code in other ways, then it means we can
>> delete it?
>
> MetalRootLayout class and methods are private but it is called from MetalRootPaneUI so we cannot delete it
> but I could not find any ways to invoke MetalRootLayout methods from testcase.

The MetalRootPaneUI installs the MetalRootLayout as a layout manager for the current JRootPane. And it should be used
from the Container.preferredSize()

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

PR: https://git.openjdk.java.net/jdk/pull/433


More information about the swing-dev mailing list