mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Utility method to obtain line height in JTextComponent
This commit is contained in:
@@ -3757,6 +3757,10 @@ public class UIUtil {
|
||||
}
|
||||
}
|
||||
|
||||
public static int getLineHeight(@NotNull JTextComponent textComponent) {
|
||||
return textComponent.getFontMetrics(textComponent.getFont()).getHeight();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the first focusable component in the specified container.
|
||||
* This method returns {@code null} if container is {@code null},
|
||||
|
||||
Reference in New Issue
Block a user