1 package org.opentrafficsim.swing.gui;
2
3 import javax.swing.Icon;
4 import javax.swing.JButton;
5
6 /**
7 * Appearance control {@link JButton}.
8 * <p>
9 * Copyright (c) 2024-2026 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
10 * BSD-style license. See <a href="https://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>.
11 * </p>
12 * @author Wouter Schakel
13 */
14 public class AppearanceControlButton extends JButton implements AppearanceControl
15 {
16 /** Serialization version UID. */
17 private static final long serialVersionUID = 20180206L;
18
19 /**
20 * Constructor.
21 * @param loadIcon icon
22 */
23 public AppearanceControlButton(final Icon loadIcon)
24 {
25 super(loadIcon);
26 }
27
28 @Override
29 public boolean isFont()
30 {
31 return true;
32 }
33
34 @Override
35 public String toString()
36 {
37 return "AppearanceControlButton []";
38 }
39 }