Integrated: 8216471: GTK LnF: Frame is clipped and does not show JTable,Tooltip and JTree demo in SwingSet2 demo

Abhishek Kumar abhiscxk at openjdk.org
Fri Jul 26 06:29:40 UTC 2024


On Fri, 5 Jul 2024 11:20:47 GMT, Abhishek Kumar <abhiscxk at openjdk.org> wrote:

> The issue is due to the preferred width of the toggle button in GTK L&F for GTK3 only.
> Comparing the preferred width of toggle button with GTK2 or other LAF, it is much higher in GTK3. The difference is due to the insets value in GTK3.
> 
> In SwingSet2 demo there are as many as 16 demos are added in toolbar and the preferred width of frame is set to 720px.
> In GTK L&F (For GTK3), overall preferred width of toolbar is ~980 px which is more than frame width and that results in the clipping of last few demos.
> In other L&F and GTK2, the preferred width of toolbar is less than frame width. Hence, there is no clipping.
> 
> The proposed solution is to increase the width and height of SwingSet2 demo frame.

This pull request has now been integrated.

Changeset: 487450cb
Author:    Abhishek Kumar <abhiscxk at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/487450cb5e8b3781f77896125573ee89a556b454
Stats:     8 lines in 1 file changed: 7 ins; 0 del; 1 mod

8216471: GTK LnF: Frame is clipped and does not show JTable,Tooltip and JTree demo in SwingSet2 demo

Reviewed-by: psadhukhan, achung

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

PR: https://git.openjdk.org/jdk/pull/20052


More information about the client-libs-dev mailing list