CS3401 Homework Assignment 8
Homework Assignment #8 Exercise #1 Modify the DisplayBinaryTree.java class given out in Sample Code #8, to add three new buttons: "Show Inorder", "Show Preorder", and "Show Postorder". Each of these buttons when pressed must pop up a JOptionPane message dialog box that shows the values in the tree listed in the proper order for the ordering controlled by that button. For instance, if the "Show Inorder" button is pressed for the following tree: Then a pop up dialog will show something like: And if the user had pressed the "Show Preorder" button, a pop up dialog will show something like the following: And if the user had pressed the "Show Postorder" button, a pop up dialog will show something like the following: You will need the following three classes in your class hierarchy in order to get your program working (they are the same ones from the last assignment, and you should not change them at all): ...