RFR: 8216471: GTK LnF: Frame is clipped and does not show JTable,Tooltip and JTree demo in SwingSet2 demo [v3]
Abhishek Kumar
abhiscxk at openjdk.org
Fri Jul 12 09:34:49 UTC 2024
On Fri, 12 Jul 2024 09:14:57 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
>> Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Panel size updated to avoid clipping in Java L&F
>
> src/demo/share/jfc/SwingSet2/SwingSet2.java line 852:
>
>> 850: } else {
>> 851: if (currentLookAndFeel.name.contains("GTK")) {
>> 852: this.setPreferredSize(new Dimension(PREFERRED_WIDTH + 260, PREFERRED_HEIGHT + 230));
>
> It seems height increase by further 230 is too much causing too much space below JInternalFrames which again spoils the aesthetics..Guess +80 is good enough...so 980x720 as compared to 720x640
Updated.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/20052#discussion_r1675584580
More information about the client-libs-dev
mailing list