JTextField, JFormattedTextField, JPasswordField, JTextPane, JTextArea

Client properties:

Property

Type Notes

JComponent

.sizeVariant

java.lang.String Values: "regular", "small"
Quaqua.TextComponent
.showPopup
Boolean

Set this to Boolean.FALSE to disable the text component popup menu.

Quaqua.TextComponent
.autoSelect
Boolean

Set this to Boolean.FALSE to prevent that all text is selected, when the user tabs into the field.
This property does not affect JTextPane and JTextArea.
Note: You can set the UIManager property TextComponent.autoSelect to false, to turn this off globally.

Quaqua.TextField
.style
String

Set this to "search" to get rounded borders like the Spotlight search field.

Set this to "plain" to get a rectangular border like for regular text fields.

The default value is "plain".

Quaqua.Component
.visualMargin
java.awt.Insets

See layout

Size styles:

General

 

Quaqua Look and Feel - JTextField

In order to properly display JTabbedPane's with Panther design, Quaqua sets all text components to non-opaque.

Since Quaqua text fields always draw the background of their content area, they appear to always be opaque. Changing the opaque property of a text field only affects its border.

myTextField.setOpaque(true);

If you want to achieve a text component with a see through content area, you have to set it's background color to a color with a translucent alpha channel value, or you have to replace its border.

Here's how to make the content area completely translucent, without changing its border:

myTextField.setBackground(new Color(0x00000000,true);

 

Here's how to get a rounded border for a seach field:

myTextField.putClientProperty(
   "Quaqua.TextField.style","search"
);