package nxm.sys.test;

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import nxm.sys.libg.MidasDisplay;
import nxm.sys.libg.MidasControls;

/** Sample Swing JFrame for SD360 macro for %test_panel_jsetup_wb */
@SuppressWarnings("serial")
public class test_panel_jsetup_wb extends JFrame {

  /** The main top-level pane */
  private JPanel contentPane;
  /** The top plot */
  private MidasDisplay plot1;
  /** The sd360 settings pane containing the sd360 controls */
  private MidasControls pane0;
  /** The bottom plot */
  private MidasDisplay plot2;

  /** Launch the application.
      @param args command line arguments
  */
  public static void main(String[] args) {
    EventQueue.invokeLater(new Runnable() {
      @Override
      public void run() {
        try {
          test_panel_jsetup_wb frame = new test_panel_jsetup_wb();
          frame.setVisible(true);
        } catch (Exception e) {
          e.printStackTrace();
        }
      }
    });
  }

  /**
   * Create the frame.
   */
  public test_panel_jsetup_wb() {
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    setBounds(300, 25, 629, 349);
    contentPane = new JPanel();
    contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
    setContentPane(contentPane);
    contentPane.setLayout(null);

    plot1 = new MidasDisplay();
    plot1.setBounds(256, 0, 357, 134);
    contentPane.add(plot1);

    plot2 = new MidasDisplay();
    plot2.setBounds(256, 146, 357, 165);
    contentPane.add(plot2);

    pane0 = new MidasControls();
    pane0.setBounds(12, 0, 221, 311);
    contentPane.add(pane0);
  }
}
