Text Panes

VAqua supports native text component borders, backgrounds, and focus rings on text panes (instances of JTextArea, JTextPane, and JEditorPane). The native border and background can be suppressed by installing an application defined border (for example, a zero-sized EmptyBorder) or by explicitly setting the opaque attribute (to either true or false). The focus ring can be suppressed by making the text pane not-focusable or by setting the Aqua.useFocusRing client property to (Boolean) false.

Starting with the macOS 26 Liquid Glass UI, text panes can be displayed with backgrounds and borders that match text fields. By default, instances of JTextArea display using the rounded style of text fields. A style can be selected by setting the JTextField.style client property to round (for rounded corners), square (for a rectangular border), or system (to use the standard style of native text fields).

Native borders, backgrounds, and focus rings are also supported on text panes that are made scrollable by wrapping them in a JScrollPane, under the following conditions:

When these conditions are met, the native text component border, background, and focus ring are displayed on the scroll pane instead of the text pane.