mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
using base class (Component) is better
This commit is contained in:
@@ -404,7 +404,7 @@ public class SwingHelper {
|
||||
return hyperlink;
|
||||
}
|
||||
|
||||
public static void setPreferredWidth(@NotNull JComponent component, int width) {
|
||||
public static void setPreferredWidth(@NotNull Component component, int width) {
|
||||
Dimension preferredSize = component.getPreferredSize();
|
||||
preferredSize.width = width;
|
||||
component.setPreferredSize(preferredSize);
|
||||
|
||||
Reference in New Issue
Block a user