mbien opened a new pull request, #6577:
URL: https://github.com/apache/netbeans/pull/6577

   The layout on many warning/error dialogs looks a bit broken right now when a 
short message is displayed, while looking serviceable with larger content 
(#6575 for screenshots).
   
   
![dialog-wrong-panel-size](https://github.com/apache/netbeans/assets/114367/724f9d2b-9ba3-4034-93af-79c3fcfd9f5b)
   the reason for that is because the JOptionPane does not compute its minimum 
size properly as can be seen in the debug snapshot:
   
![dialog-wrong-panel-size-debug](https://github.com/apache/netbeans/assets/114367/ad7a2b12-d003-4abb-b2dc-26f9bd5f5d0b)
   
   if we set it to a more reasonable value (min size ~ icon size), small 
dialogs look much nicer:
   
![dialog-wrong-panel-size-after](https://github.com/apache/netbeans/assets/114367/cb29b79a-4089-477e-82ad-59cf25e9e5e6)
   
   
![dialog-wrong-panel-size-after-debug](https://github.com/apache/netbeans/assets/114367/24f11d9f-7c75-4eda-9153-dd25795a8c8a)
   
   larger dialogs still look as expected:
   
![dialog-wrong-panel-size-after2](https://github.com/apache/netbeans/assets/114367/1a7171f6-3aeb-4630-bbdf-49115efeb467)
   
   
   
   Looking at the code, it appears as this has been done before for the basic 
metal LAFs, but wasn't updated for custom LAFs.
   
   
   testing:
    - don't have any project open
    - `profile -> insert profiling point`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to