Dimension () { Dimension size = super.getPreferredSize(); UIThemeLookAndFeelInfo info = LafManager.getInstance().getCurrentUIThemeLookAndFeel(); if (info != null && info.getName().contains("Windows")) { size.width += 10; } return size; }