Class SerializationTest1

java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
org.jfree.ui.ApplicationFrame
org.jfree.chart.demo.SerializationTest1
All Implemented Interfaces:
ActionListener, WindowListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class SerializationTest1
extends org.jfree.ui.ApplicationFrame
implements ActionListener
Based on the DynamicDataDemo class, this demo serializes and deserializes the chart before displaying it - the idea is that this confirms that the serialization process returns a working chart.
See Also:
Serialized Form
  • Constructor Details

    • SerializationTest1

      public SerializationTest1​(String title)
      Constructs a new demonstration application.
      Parameters:
      title - the frame title.
  • Method Details

    • actionPerformed

      public void actionPerformed​(ActionEvent e)
      Handles a click on the button by adding new (random) data.
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      e - the action event.
    • main

      public static void main​(String[] args)
      Starting point for the demonstration application.
      Parameters:
      args - ignored.