|
13 | 13 | import edu.wpi.first.smartdashboard.xml.XMLWidget; |
14 | 14 | import java.awt.BorderLayout; |
15 | 15 | import java.awt.CardLayout; |
| 16 | +import java.awt.Color; |
16 | 17 | import java.awt.Dimension; |
17 | 18 | import java.awt.event.ComponentEvent; |
18 | 19 | import java.awt.event.ComponentListener; |
|
27 | 28 | import java.util.logging.Level; |
28 | 29 | import java.util.logging.Logger; |
29 | 30 | import javax.swing.JFrame; |
| 31 | +import javax.swing.JLabel; |
30 | 32 | import javax.swing.JMenuBar; |
31 | 33 | import javax.swing.JOptionPane; |
| 34 | +import javax.swing.JPanel; |
32 | 35 | import javax.swing.SwingUtilities; |
33 | 36 |
|
34 | 37 | /** |
@@ -69,6 +72,7 @@ public enum DisplayMode { |
69 | 72 | private final DashboardPanel smartDashboardPanel; |
70 | 73 | private final DashboardPanel liveWindowPanel; |
71 | 74 | private final MainPanel mainPanel; |
| 75 | + private final JPanel footerPanel; |
72 | 76 | private DisplayMode displayMode = DisplayMode.SmartDashboard; |
73 | 77 | /** |
74 | 78 | * The menu bar |
@@ -128,11 +132,17 @@ public DashboardFrame(boolean competition) { |
128 | 132 | setDisplayMode(DisplayMode.SmartDashboard); |
129 | 133 | menuBar = new DashboardMenu(this, mainPanel); |
130 | 134 | propEditor = new PropertyEditor(this); |
| 135 | + |
| 136 | + JLabel deprecatedLabel = new JLabel("SmartDashboard is deprecated and will not work with the 2027 control system"); |
| 137 | + deprecatedLabel.setForeground(Color.RED); |
| 138 | + footerPanel = new JPanel(); |
| 139 | + footerPanel.add(deprecatedLabel); |
131 | 140 |
|
132 | 141 | if (!shouldHideMenu) { |
133 | 142 | add(menuBar, BorderLayout.NORTH); |
134 | 143 | } |
135 | 144 | add(mainPanel, BorderLayout.CENTER); |
| 145 | + add(footerPanel, BorderLayout.SOUTH); |
136 | 146 |
|
137 | 147 | // Look for when the menu bar should be displayed |
138 | 148 | MouseAdapter hideListener = new MouseAdapter() { |
|
0 commit comments