package nxm.sys.libxm;

/** Sample SWING GUI that embeds X-Midas X11 displays (xpipe and xcontrols) in Java.
    This is for enhancement BUG 505.
   @author  J. Czechowski IV
   @since NeXtMidas 2.3.0
*/
public class sd360xm extends javax.swing.JFrame {
  /** NOTE: this should be changed if the structure/fields of this class changes. */
  private static final long serialVersionUID = 2013022100331L; // for Serializable interface

  /** Creates new form sd360xm */
  public sd360xm() {
    initComponents();
  }

  /** This method is called from within the constructor to
   * initialize the form.
   * WARNING: Do NOT modify this code. The content of this method is
   * always regenerated by the Form Editor.
   */
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    xs4 = new nxm.sys.libxm.XmDisplay();
    jTabbedPane1 = new javax.swing.JTabbedPane();
    xs2 = new nxm.sys.libxm.XmDisplay();
    xs3 = new nxm.sys.libxm.XmDisplay();
    xs1 = new nxm.sys.libxm.XmDisplay();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

    jTabbedPane1.addTab("tab1", xs2);
    jTabbedPane1.addTab("tab2", xs3);

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
      layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
      .addGroup(layout.createSequentialGroup()
        .addContainerGap()
        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
          .addComponent(xs1, javax.swing.GroupLayout.DEFAULT_SIZE, 267, Short.MAX_VALUE)
          .addComponent(xs4, javax.swing.GroupLayout.DEFAULT_SIZE, 267, Short.MAX_VALUE))
        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
        .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 402, Short.MAX_VALUE)
        .addContainerGap())
    );
    layout.setVerticalGroup(
      layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
      .addGroup(layout.createSequentialGroup()
        .addContainerGap()
        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
          .addComponent(jTabbedPane1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 576, Short.MAX_VALUE)
          .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
            .addComponent(xs1, javax.swing.GroupLayout.DEFAULT_SIZE, 326, Short.MAX_VALUE)
            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
            .addComponent(xs4, javax.swing.GroupLayout.PREFERRED_SIZE, 240, javax.swing.GroupLayout.PREFERRED_SIZE)))
        .addContainerGap())
    );

    pack();
  }// </editor-fold>//GEN-END:initComponents

  /** main
   *  @param args the command line arguments
   */
  public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
      public void run() {
        new sd360xm().setVisible(true);
      }
    });
  }

  // Variables declaration - do not modify//GEN-BEGIN:variables
  /** sd360 Java Tabbed Pane */
  private javax.swing.JTabbedPane jTabbedPane1;
  /** first sd360 X-Midas Display */
  private nxm.sys.libxm.XmDisplay xs1;
  /** second sd360 X-Midas Display (used for first tab) */
  private nxm.sys.libxm.XmDisplay xs2;
  /** third sd360 X-Midas Display (used for second tab) */
  private nxm.sys.libxm.XmDisplay xs3;
  /** fourth sd360 X-Midas Display */
  private nxm.sys.libxm.XmDisplay xs4;
  // End of variables declaration//GEN-END:variables

}
