On Wed, 7 Oct 2020 06:48:29 GMT, Prasanta Sadhukhan <psadhuk...@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