1 package org.opentrafficsim.swing.gui;
2
3 import javax.swing.JTextField;
4
5 /**
6 * Text field that ignores appearance on foreground and background.
7 * <p>
8 * Copyright (c) 2024-2026 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
9 * BSD-style license. See <a href="https://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>.
10 * </p>
11 * @author Alexander Verbraeck
12 * @author Peter Knoppers
13 * @author Wouter Schakel
14 */
15 public class AppearanceControlTextField extends JTextField implements AppearanceControl
16 {
17
18 /** Serialization version UID. */
19 private static final long serialVersionUID = 20240227L;
20
21 /**
22 * Constructor.
23 */
24 public AppearanceControlTextField()
25 {
26 //
27 }
28
29 @Override
30 public boolean isForeground()
31 {
32 return false;
33 }
34
35 @Override
36 public boolean isBackground()
37 {
38 return false;
39 }
40
41 @Override
42 public String toString()
43 {
44 return "AppearanceControlTextField []";
45 }
46
47 }