Class MessageTree

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, TreeSelectionListener

public class MessageTree extends JPanel implements TreeSelectionListener
Displays a parsed Message in a window. The window will be divided into two panels. The left panel displays the Message tree. Clicking on a node in the tree shows information on that node in the right panel. Some of this code have been copied from the Java tutorial's JTree section.
See Also:
  • Constructor Details

    • MessageTree

      public MessageTree(Message message)
      Creates a new MessageTree instance displaying the specified Message.
      Parameters:
      message - the message to display.
  • Method Details

    • valueChanged

      public void valueChanged(TreeSelectionEvent e)
      Called whenever the selection changes in the JTree instance showing the Message nodes.
      Specified by:
      valueChanged in interface TreeSelectionListener
      Parameters:
      e - the event.
    • main

      public static void main(String[] args)