/*
* @(#)MotifTextFieldUI.java 1.23 03/12/19
*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package com.sun.java.swing.plaf.motif;
import javax.swing.*;
import javax.swing.plaf.basic.BasicTextFieldUI;
import javax.swing.plaf.*;
import javax.swing.text.Caret;
/**
* Provides the Motif look and feel for a text field.
* <p>
* <strong>Warning:</strong>
* Serialized objects of this class will not be compatible with
* future Swing releases. The current serialization support is appropriate
* for short term storage or RMI between applications running the same
* version of Swing. A future release of Swing will provide support for
* long term persistence.
*
* @author Timothy Prinzing
* @version 1.23 12/19/03
*/
public class MotifTextFieldUI extends BasicTextFieldUI {
/**
* Creates a UI for a JTextField.
*
* @param c the text field
* @return the UI
*/
public static ComponentUI createUI(JComponent c) {
return new MotifTextFieldUI();
}
/**
* Creates the object to use for a caret. By default an
* instance of MotifTextUI.MotifCaret is created. This method
* can be redefined to provide something else that implements
* the Caret interface.
*
* @return the caret object
*/
protected Caret createCaret() {
return MotifTextUI.createCaret();
}
}
|