1 package org.opentrafficsim.swing.gui;
2
3 import javax.swing.JTextField;
4
5 /**
6 * Text field that ignore appearance on foreground and background.
7 * <p>
8 * Copyright (c) 2024-2024 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 <a href="https://github.com/averbraeck">Alexander Verbraeck</a>
12 * @author <a href="https://github.com/peter-knoppers">Peter Knoppers</a>
13 * @author <a href="https://github.com/wjschakel">Wouter Schakel</a>
14 */
15 public class AppearanceControlTextField extends JTextField implements AppearanceControl
16 {
17 /** */
18 private static final long serialVersionUID = 20240227L;
19
20 /**
21 * Constructor.
22 */
23 public AppearanceControlTextField()
24 {
25 //
26 }
27
28 @Override
29 public boolean isForeground()
30 {
31 return false;
32 }
33
34 @Override
35 public boolean isBackground()
36 {
37 return false;
38 }
39
40 @Override
41 public String toString()
42 {
43 return "AppearanceControlTextField []";
44 }
45 }