Skip to content

Commit 7a4fe07

Browse files
authored
Add deprecated message to bottom of SD (#200)
1 parent 385fa4f commit 7a4fe07

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/main/java/edu/wpi/first/smartdashboard/gui/DashboardFrame.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import edu.wpi.first.smartdashboard.xml.XMLWidget;
1414
import java.awt.BorderLayout;
1515
import java.awt.CardLayout;
16+
import java.awt.Color;
1617
import java.awt.Dimension;
1718
import java.awt.event.ComponentEvent;
1819
import java.awt.event.ComponentListener;
@@ -27,8 +28,10 @@
2728
import java.util.logging.Level;
2829
import java.util.logging.Logger;
2930
import javax.swing.JFrame;
31+
import javax.swing.JLabel;
3032
import javax.swing.JMenuBar;
3133
import javax.swing.JOptionPane;
34+
import javax.swing.JPanel;
3235
import javax.swing.SwingUtilities;
3336

3437
/**
@@ -69,6 +72,7 @@ public enum DisplayMode {
6972
private final DashboardPanel smartDashboardPanel;
7073
private final DashboardPanel liveWindowPanel;
7174
private final MainPanel mainPanel;
75+
private final JPanel footerPanel;
7276
private DisplayMode displayMode = DisplayMode.SmartDashboard;
7377
/**
7478
* The menu bar
@@ -128,11 +132,17 @@ public DashboardFrame(boolean competition) {
128132
setDisplayMode(DisplayMode.SmartDashboard);
129133
menuBar = new DashboardMenu(this, mainPanel);
130134
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);
131140

132141
if (!shouldHideMenu) {
133142
add(menuBar, BorderLayout.NORTH);
134143
}
135144
add(mainPanel, BorderLayout.CENTER);
145+
add(footerPanel, BorderLayout.SOUTH);
136146

137147
// Look for when the menu bar should be displayed
138148
MouseAdapter hideListener = new MouseAdapter() {

0 commit comments

Comments
 (0)