Write a graph drawing program in Java. Use the program in the next s.docx

This preview shows page 1 - 3 out of 8 pages.

Background image
Write a graph drawing program in Java. Use the program in the next section (Graph.java, GraphPanel.java) and make the following changes and additions:Replace the filled oval at the end of the edges with an arrowhead (two short line segments starting at the end point).You may use code from DirectionPanel.java.Add two more buttons - Create and Delete. When the Create button is pressed new nodes and edges can be added (as in the original program from the lecture notes). After pressing the Delete button, nodes and edges can be removed by clicking on them. Add a prompt on the panel indicating the current mode (Create or Delete). The third button, "Print

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture