/**
   Hw3.java
   The class driver for this assignment
   @author Sugiharto Widjaja
   @version 2002/3/19
*/

import java.awt.*;
import javax.swing.*;

public class Hw3 extends JFrame
{
   public static void main(String[] args)
   {
      DataModel aModel = new DataModel();
      GraphView aGraph = new GraphView(aModel);
      TextView tView = new TextView(aModel);
      JFrame frameForGraph = new JFrame();
      JFrame frameForText = new JFrame();
      frameForGraph.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      frameForText.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      Container gContent = frameForGraph.getContentPane();
      Container tContent = frameForText.getContentPane();
      JScrollPane scrollPane = new JScrollPane(tView);
      gContent.add(aGraph);
      tContent.add(scrollPane);
      int xBound = 20;
      int yBound = 20;
      int width = 300;
      int height = 300;
      frameForGraph.setBounds(xBound, yBound, width, height);
      frameForText.setBounds(xBound + width, yBound, width, height);
      frameForGraph.show();
      frameForText.show();
   }
}