1   package debugger.gui;
2   
3   import javax.swing.*;
4   import java.awt.*;
5   
6   /**
7    * Copyright (c) Ontos AG (http://www.ontosearch.com).
8    * This class is part of JAPE Debugger component for
9    * GATE (Copyright (c) "The University of Sheffield" see http://gate.ac.uk/) <br>
10   * Main debugger frame.
11   * @author Oleg Mishchenko, Andrey Shafirin
12   */
13  public class MainFrame extends JFrame
14  {
15      private JComponent mainPanel;
16  
17      public MainFrame()
18      {
19          super("Jape Debugger [build $build_number$] (Ontos AG)");
20          initGui();
21      }
22  
23      private void initGui()
24      {
25          this.getContentPane().setLayout(new BorderLayout());
26          this.getContentPane().add(getMainPanel(), BorderLayout.CENTER);
27      }
28  
29      public JComponent getMainPanel()
30      {
31          if(mainPanel == null)
32          {
33              mainPanel = new MainPanel();
34          }
35          return mainPanel;
36      }
37  }
38