Class GhostText

java.lang.Object
org.opentrafficsim.swing.gui.GhostText
All Implemented Interfaces:
FocusListener, PropertyChangeListener, EventListener, DocumentListener

public class GhostText extends Object implements FocusListener, DocumentListener, PropertyChangeListener
Code taken from stack overflow. This class shows light gray text within a JTextComponent when it is empty, as a hint as to what a user might type.

Copyright (c) 2024-2026 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

Author:
Wouter Schakel
See Also: