Inspectopedia
 
2024.3

Use DPI-aware insets

Warning
Code Style
New
Last modified: 03 December 2024

Reports usages of java.awt.Insets and JBUI.insetsXyz() that can be simplified.

The Insets instances are not DPI-aware and can result in UI layout problems.

Quick fix performs replacement with JBUI.insets() or simplifies the expression.

Example: