Skip to content

Commit

Permalink
Merge pull request akeranen#79 from akeranen/supress-gui-serialw
Browse files Browse the repository at this point in the history
Suppressing serialization warnings of GUI classes
  • Loading branch information
akeranen authored Apr 16, 2020
2 parents 7a653c2 + aa72feb commit bb0e088
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/EventLogControlPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* Control panel for event log
*
*/
@SuppressWarnings("serial")
public class EventLogControlPanel extends JPanel implements ActionListener {
private static final String TITLE_TEXT = "Event log controls";
private static final String SHOW_TEXT = "show";
Expand Down
1 change: 1 addition & 0 deletions src/gui/EventLogPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
/**
* Event log panel where log entries are displayed.
*/
@SuppressWarnings("serial")
public class EventLogPanel extends JPanel
implements ConnectionListener, MessageListener, ActionListener {

Expand Down
3 changes: 3 additions & 0 deletions src/gui/GUIControls.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
import java.awt.Graphics2D;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.event.*;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.image.BufferedImage;
Expand All @@ -35,6 +37,7 @@
* GUI's control panel
*
*/
@SuppressWarnings("serial")
public class GUIControls extends JPanel implements ActionListener, ChangeListener {
private static final String PATH_GRAPHICS = "buttonGraphics/";
private static final String ICON_PAUSE = "Pause16.gif";
Expand Down
1 change: 1 addition & 0 deletions src/gui/InfoPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
/**
* Information panel that shows data of selected messages and nodes.
*/
@SuppressWarnings("serial")
public class InfoPanel extends JPanel implements ActionListener{
private JComboBox msgChooser;
private JLabel info;
Expand Down
1 change: 1 addition & 0 deletions src/gui/MainWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* Main window for the program. Takes care of layouting the main components
* in the window.
*/
@SuppressWarnings("serial")
public class MainWindow extends JFrame {
/** The namespace for general GUI settings */
public static final String GUI_NS = "GUI";
Expand Down
1 change: 1 addition & 0 deletions src/gui/NodeChooser.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
/**
* Node chooser panel
*/
@SuppressWarnings("serial")
public class NodeChooser extends JPanel implements ActionListener {
private DTNSimGUI gui;
/** the maximum number of allNodes to show in the list per page */
Expand Down
1 change: 1 addition & 0 deletions src/gui/RoutingInfoWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
/**
* A window for displaying routing information
*/
@SuppressWarnings("serial")
public class RoutingInfoWindow extends JFrame implements ActionListener {
private DTNHost host;
private JButton refreshButton;
Expand Down
1 change: 1 addition & 0 deletions src/gui/SimMenuBar.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
* Menu bar of the simulator GUI
*
*/
@SuppressWarnings("serial")
public class SimMenuBar extends JMenuBar implements ActionListener {
/** title of the about window */
public static final String ABOUT_TITLE = "about ONE";
Expand Down
1 change: 1 addition & 0 deletions src/gui/playfield/PlayField.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
* The canvas where node graphics and message visualizations are drawn.
*
*/
@SuppressWarnings("serial")
public class PlayField extends JPanel {
public static final int PLAYFIELD_OFFSET = 10;

Expand Down

0 comments on commit bb0e088

Please sign in to comment.