@Override
  protected JPanel createFormPanel() {
    JPanel mainPanel = new JPanel();
    JScrollPane scroll = new JScrollPane();
    JTextArea textArea = new JTextArea();

    textArea.setColumns(20);
    textArea.setRows(5);
    scroll.setViewportView(textArea);

    textArea.setText(HELP_TXT);
    textArea.setEditable(false);

    GroupLayout layout = new GroupLayout(mainPanel);
    mainPanel.setLayout(layout);
    layout.setHorizontalGroup(
        layout
            .createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGroup(
                layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .addComponent(scroll, GroupLayout.DEFAULT_SIZE, 376, Short.MAX_VALUE)
                    .addContainerGap()));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGroup(
                layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .addComponent(scroll, GroupLayout.DEFAULT_SIZE, 276, Short.MAX_VALUE)
                    .addContainerGap()));
    return mainPanel;
  }
  // constructor for form
  private void initComponents() {
    // elements for error message
    errorMessage = new JLabel();
    errorMessage.setForeground(Color.RED);

    // elements for participant
    participantNameTextField = new JTextField();
    participantNameLabel = new JLabel();
    addParticipantButton = new JButton();

    // global settings & listeners
    setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
    setTitle("Event Registration");

    participantNameLabel.setText("Name: ");
    addParticipantButton.setText("Add Participant");
    addParticipantButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            addParticipantButtonActionPerformed(evt);
          }
        });

    // layout
    GroupLayout layout = new GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setAutoCreateGaps(true);
    layout.setAutoCreateContainerGaps(true);

    layout.setHorizontalGroup(
        layout
            .createParallelGroup()
            .addComponent(errorMessage)
            .addGroup(
                layout
                    .createSequentialGroup()
                    .addComponent(participantNameLabel)
                    .addGroup(
                        layout
                            .createParallelGroup()
                            .addComponent(participantNameTextField, 200, 200, 400)
                            .addComponent(addParticipantButton))));

    layout.linkSize(
        SwingConstants.HORIZONTAL,
        new java.awt.Component[] {addParticipantButton, participantNameTextField});

    layout.setVerticalGroup(
        layout
            .createSequentialGroup()
            .addComponent(errorMessage)
            .addGroup(
                layout
                    .createParallelGroup()
                    .addComponent(participantNameLabel)
                    .addComponent(participantNameTextField))
            .addComponent(addParticipantButton));

    pack();
  }
  /**
   * 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.
   */
  @SuppressWarnings("unchecked")
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    jMenuBar1 = new javax.swing.JMenuBar();
    jMenu1 = new javax.swing.JMenu();
    jMenu2 = new javax.swing.JMenu();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setLocation(new java.awt.Point(0, 0));
    setLocationByPlatform(true);
    setSize(Toolkit.getDefaultToolkit().getScreenSize());

    jMenu1.setText("File");
    jMenuBar1.add(jMenu1);

    jMenu2.setText("Edit");
    jMenuBar1.add(jMenu2);

    setJMenuBar(jMenuBar1);

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 593, Short.MAX_VALUE));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 511, Short.MAX_VALUE));

    pack();
  } // </editor-fold>//GEN-END:initComponents
  private void initComponents(Object[][] data) {
    String[] columnList = JTableUtils.getLogFileColumnHeaders();
    logFileTable = new ConfigurationTable(data, columnList, JTableUtils.getLogFileColumnTypes());
    logFileTable.setColumnSelectionAllowed(true);
    logFileTable.getTableHeader().setReorderingAllowed(false);
    logFileTable.setRowSelectionAllowed(true);
    logFileTable.setColumnSelectionAllowed(false);
    logFileTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    logFileTable
        .getSelectionModel()
        .addListSelectionListener(new RowSelectionListener(logFileTable));
    logFileTableScroller = new JScrollPane();
    logFileTableScroller.setViewportView(logFileTable);

    GroupLayout layout = new GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(
        layout
            .createParallelGroup(GroupLayout.Alignment.LEADING)
            .addComponent(logFileTableScroller, GroupLayout.DEFAULT_SIZE, 410, Short.MAX_VALUE));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(GroupLayout.Alignment.LEADING)
            .addComponent(logFileTableScroller, GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE));
  }
Esempio n. 5
0
  /**
   * 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.
   */
  @SuppressWarnings("unchecked")
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    laShowImage = new javax.swing.JLabel();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    addWindowListener(
        new java.awt.event.WindowAdapter() {
          public void windowOpened(java.awt.event.WindowEvent evt) {
            formWindowOpened(evt);
          }
        });

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(laShowImage, javax.swing.GroupLayout.DEFAULT_SIZE, 827, Short.MAX_VALUE));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(laShowImage, javax.swing.GroupLayout.DEFAULT_SIZE, 563, Short.MAX_VALUE));

    setSize(new java.awt.Dimension(845, 610));
    setLocationRelativeTo(null);
  } // </editor-fold>//GEN-END: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.
   */
  @SuppressWarnings("unchecked")
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    jScrollPane1 = new javax.swing.JScrollPane();
    jLabel1 = new javax.swing.JLabel();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

    jScrollPane1.setViewportView(jLabel1);

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(
                jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(
                jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE));

    pack();
  } // </editor-fold>//GEN-END:initComponents
Esempio n. 7
0
  /**
   * 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.
   */
  @SuppressWarnings("unchecked")
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    jLabel1 = new javax.swing.JLabel();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

    jLabel1.setText("Aquest producte no te suficient Estoc!");

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                layout
                    .createSequentialGroup()
                    .addGap(23, 23, 23)
                    .addComponent(jLabel1)
                    .addContainerGap(36, Short.MAX_VALUE)));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                layout
                    .createSequentialGroup()
                    .addGap(25, 25, 25)
                    .addComponent(jLabel1)
                    .addContainerGap(65, Short.MAX_VALUE)));

    pack();
  } // </editor-fold>//GEN-END:initComponents
Esempio n. 8
0
  private void myinit() {

    rereP = new RealRecip(outDialog, mainFrame);
    rereP.setEnabled(true);
    rereP.setVisible(true);

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(
                rereP,
                javax.swing.GroupLayout.DEFAULT_SIZE,
                javax.swing.GroupLayout.DEFAULT_SIZE,
                Short.MAX_VALUE));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(
                rereP,
                javax.swing.GroupLayout.DEFAULT_SIZE,
                javax.swing.GroupLayout.DEFAULT_SIZE,
                Short.MAX_VALUE));

    pack();
  }
Esempio n. 9
0
    private void setupLayout() {
      javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
      this.setLayout(layout);

      layout.setHorizontalGroup(
          layout
              .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(
                  layout
                      .createSequentialGroup()
                      .addGap(100, 100, 100)
                      .addGroup(
                          layout
                              .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                              .addComponent(startGameButton)
                              .addComponent(settingsButton))
                      .addGap(100, 100, 100)));
      layout.setVerticalGroup(
          layout
              .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(
                  layout
                      .createSequentialGroup()
                      .addGap(100, 100, 100)
                      .addComponent(startGameButton)
                      .addGap(100, 100, 100)
                      .addComponent(settingsButton)
                      .addGap(100, 100, 100)));
    }
 private JPanel getPanel_1() {
   if (panelDatos == null) {
     panelDatos = new JPanel();
     GroupLayout gl_panelDatos = new GroupLayout(panelDatos);
     gl_panelDatos.setHorizontalGroup(
         gl_panelDatos
             .createParallelGroup(Alignment.LEADING)
             .addGroup(
                 gl_panelDatos
                     .createSequentialGroup()
                     .addContainerGap()
                     .addComponent(getLblSudoku())
                     .addGap(18)
                     .addComponent(getLabelIdSud())
                     .addContainerGap(95, Short.MAX_VALUE)));
     gl_panelDatos.setVerticalGroup(
         gl_panelDatos
             .createParallelGroup(Alignment.LEADING)
             .addGroup(
                 gl_panelDatos
                     .createSequentialGroup()
                     .addContainerGap()
                     .addGroup(
                         gl_panelDatos
                             .createParallelGroup(Alignment.BASELINE)
                             .addComponent(getLblSudoku())
                             .addComponent(getLabelIdSud()))
                     .addContainerGap(181, Short.MAX_VALUE)));
     panelDatos.setLayout(gl_panelDatos);
   }
   return panelDatos;
 }
  /**
   * 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.
   */
  @SuppressWarnings("unchecked")
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    jScrollPane1 = new javax.swing.JScrollPane();
    jTextArea1 = new javax.swing.JTextArea();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    setTitle("Final Translation Text Window");

    jTextArea1.setColumns(20);
    jTextArea1.setLineWrap(true);
    jTextArea1.setRows(5);
    jTextArea1.setToolTipText("Use this space to write the final translation of your text.");
    jTextArea1.setWrapStyleWord(true);
    jScrollPane1.setViewportView(jTextArea1);

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(
                jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 542, Short.MAX_VALUE));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(
                jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 328, Short.MAX_VALUE));

    pack();
  } // </editor-fold>//GEN-END:initComponents
Esempio n. 12
0
  final void makeLayout() {
    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    GroupLayout.ParallelGroup g =
        layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING);
    for (JPanel p : panels)
      g.addComponent(
          p,
          javax.swing.GroupLayout.DEFAULT_SIZE,
          javax.swing.GroupLayout.DEFAULT_SIZE,
          Short.MAX_VALUE);
    g.addGroup(
        javax.swing.GroupLayout.Alignment.TRAILING,
        layout.createSequentialGroup().addGap(0, 0, Short.MAX_VALUE).addComponent(jButton1));
    layout.setHorizontalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                layout.createSequentialGroup().addContainerGap().addGroup(g).addContainerGap()));
    GroupLayout.SequentialGroup g2 = layout.createSequentialGroup().addContainerGap();
    for (JPanel p : panels)
      g2 =
          g2.addComponent(
                  p,
                  javax.swing.GroupLayout.PREFERRED_SIZE,
                  javax.swing.GroupLayout.DEFAULT_SIZE,
                  javax.swing.GroupLayout.PREFERRED_SIZE)
              .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED);
    g2 = g2.addComponent(jButton1).addContainerGap();
    layout.setVerticalGroup(
        layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(g2));

    pack();
  }
Esempio n. 13
0
  // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
  private void initComponents() {
    jLabel1 = new javax.swing.JLabel();

    jLabel1.setText("Specify the beginning balance");

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                layout
                    .createSequentialGroup()
                    .addGap(40, 40, 40)
                    .addComponent(
                        jLabel1,
                        javax.swing.GroupLayout.PREFERRED_SIZE,
                        267,
                        javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(139, Short.MAX_VALUE)));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                layout
                    .createSequentialGroup()
                    .addGap(25, 25, 25)
                    .addComponent(jLabel1)
                    .addContainerGap(327, Short.MAX_VALUE)));
  } // </editor-fold>//GEN-END:initComponents
      /** Shows the full image in the main area and sets the application title. */
      @Override
      public void actionPerformed(ActionEvent e) {
        if (stopButton.isEnabled() == true) {
          javax.swing.JOptionPane.showMessageDialog(
              null,
              "Please stop the camera before you choose to load image",
              "Action not allowed",
              javax.swing.JOptionPane.INFORMATION_MESSAGE);
        } else {
          clearpanel();
          photographLabel = new JLabel();

          javax.swing.GroupLayout inputPanelLayout = new javax.swing.GroupLayout(inputPanel);
          inputPanel.setLayout(inputPanelLayout);
          inputPanelLayout.setHorizontalGroup(
              inputPanelLayout
                  .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                  .addGroup(
                      inputPanelLayout.createSequentialGroup().addComponent(photographLabel)));
          inputPanelLayout.setVerticalGroup(
              inputPanelLayout
                  .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                  .addGroup(
                      inputPanelLayout.createSequentialGroup().addComponent(photographLabel)));
          photographLabel.setIcon(displayPhoto);
          // setTitle("Icon Demo: " + getValue(SHORT_DESCRIPTION).toString());
          imageload = getValue(SHORT_DESCRIPTION).toString();
          // javax.swing.JOptionPane.showMessageDialog(null, "The image to be processed is
          // "+imageload, "Image", javax.swing.JOptionPane.INFORMATION_MESSAGE);
        }
      }
Esempio n. 15
0
  /**
   * 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.
   */
  @SuppressWarnings("unchecked")
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    jspLog = new javax.swing.JScrollPane();
    lstLog = new javax.swing.JList();

    setBackground(new java.awt.Color(204, 204, 255));

    jspLog.setBackground(new java.awt.Color(204, 204, 255));
    jspLog.setBorder(null);
    jspLog.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N

    lstLog.setBackground(new java.awt.Color(204, 204, 255));
    lstLog.setForeground(new java.awt.Color(110, 110, 110));
    lstLog.setModel(new DefaultListModel());
    lstLog.setPreferredSize(new java.awt.Dimension(0, 250));
    lstLog.setSelectionBackground(new java.awt.Color(204, 255, 153));
    lstLog.setSelectionForeground(new java.awt.Color(255, 153, 153));
    jspLog.setViewportView(lstLog);
    lstLog.setCellRenderer(new IconListRenderer());

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jspLog, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jspLog, javax.swing.GroupLayout.DEFAULT_SIZE, 199, Short.MAX_VALUE));
  } // </editor-fold>//GEN-END:initComponents
  /**
   * This method is called from within the constructor to initialise the form. WARNING: Do NOT
   * modify this code. The content of this method is always regenerated by the Form Editor.
   */
  @SuppressWarnings("unchecked")
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    jLabel1 = new javax.swing.JLabel();

    jLabel1.setText("bandwidth blabla");
    jLabel1.setName("jLabel1"); // NOI18N

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                layout
                    .createSequentialGroup()
                    .addGap(138, 138, 138)
                    .addComponent(jLabel1)
                    .addContainerGap(155, Short.MAX_VALUE)));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                layout
                    .createSequentialGroup()
                    .addGap(132, 132, 132)
                    .addComponent(jLabel1)
                    .addContainerGap(153, Short.MAX_VALUE)));
  } // </editor-fold>//GEN-END: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.
   */
  @SuppressWarnings("unchecked")
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    jLabel1 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    jSpinner1 = new javax.swing.JSpinner();
    jSpinner2 = new javax.swing.JSpinner();

    setBorder(javax.swing.BorderFactory.createTitledBorder("Adaptive Parameters"));

    jLabel1.setText("k:");

    jLabel2.setText("w size:");

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .addGroup(
                        layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jLabel1)
                            .addComponent(jLabel2)
                            .addComponent(
                                jSpinner1,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                74,
                                Short.MAX_VALUE)
                            .addComponent(jSpinner2))
                    .addContainerGap(18, Short.MAX_VALUE)));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jLabel1)
                    .addGap(3, 3, 3)
                    .addComponent(
                        jSpinner1,
                        javax.swing.GroupLayout.PREFERRED_SIZE,
                        javax.swing.GroupLayout.DEFAULT_SIZE,
                        javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jLabel2)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(
                        jSpinner2,
                        javax.swing.GroupLayout.PREFERRED_SIZE,
                        javax.swing.GroupLayout.DEFAULT_SIZE,
                        javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(22, Short.MAX_VALUE)));
  } // </editor-fold>//GEN-END:initComponents
Esempio n. 18
0
  /**
   * 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.
   */
  @SuppressWarnings("unchecked")
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    jLabel1 = new javax.swing.JLabel();

    setOpaque(false);

    jLabel1.setIcon(
        new javax.swing.ImageIcon(
            getClass()
                .getResource("/org/pepsoft/worldpainter/north_arrow_top_left.png"))); // NOI18N

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jLabel1)
                    .addContainerGap(324, Short.MAX_VALUE)));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                javax.swing.GroupLayout.Alignment.TRAILING,
                layout
                    .createSequentialGroup()
                    .addContainerGap(248, Short.MAX_VALUE)
                    .addComponent(jLabel1)
                    .addGap(20, 20, 20)));
  } // </editor-fold>//GEN-END:initComponents
Esempio n. 19
0
  /**
   * 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.
   */
  @SuppressWarnings("unchecked")

  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    jScrollPane2 = new javax.swing.JScrollPane();
    jTextPane2 = new javax.swing.JTextPane();

    jScrollPane2.setViewportView(jTextPane2);

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    setBackground(new java.awt.Color(255, 255, 255));
    setResizable(false);

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 843, Short.MAX_VALUE));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 499, Short.MAX_VALUE));
  } // </editor-fold>//GEN-END:initComponents
Esempio n. 20
0
 private JPanel buttonsLayout() {
   JPanel panel = new JPanel();
   GroupLayout layout = new GroupLayout(panel);
   layout.setAutoCreateContainerGaps(true);
   layout.setAutoCreateGaps(true);
   panel.setLayout(layout);
   layout.setHorizontalGroup(
       layout
           .createParallelGroup(GroupLayout.Alignment.LEADING)
           .addGroup(
               layout
                   .createSequentialGroup()
                   .addComponent(play)
                   .addComponent(nextClock)
                   .addComponent(pause)
                   .addComponent(open))
           .addComponent(bypass));
   layout.setVerticalGroup(
       layout
           .createSequentialGroup()
           .addGroup(
               layout
                   .createParallelGroup(GroupLayout.Alignment.CENTER)
                   .addComponent(play)
                   .addComponent(nextClock)
                   .addComponent(pause)
                   .addComponent(open))
           .addComponent(bypass));
   Dimension d = new Dimension(220, panel.getHeight());
   panel.setSize(d);
   panel.setPreferredSize(d);
   return panel;
 }
Esempio n. 21
0
  /**
   * 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.
   */
  @SuppressWarnings("unchecked")
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    jScrollPane1 = new javax.swing.JScrollPane();
    jTree1 = new javax.swing.JTree();

    setAutoscrolls(true);

    jTree1.addMouseListener(
        new java.awt.event.MouseAdapter() {
          public void mouseClicked(java.awt.event.MouseEvent evt) {
            jTree1MouseClicked(evt);
          }
        });
    jTree1.setModel(new DefaultTreeModel(AgentTree));
    jTree1.setMinimumSize(new java.awt.Dimension(100, 0));
    jScrollPane1.setViewportView(jTree1);

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(
                jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 104, Short.MAX_VALUE));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(
                jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE));
  } // </editor-fold>//GEN-END: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.
   */
  @SuppressWarnings("unchecked")
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    lblMensagem = new javax.swing.JLabel();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setUndecorated(true);

    lblMensagem.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(
                lblMensagem,
                javax.swing.GroupLayout.Alignment.TRAILING,
                javax.swing.GroupLayout.DEFAULT_SIZE,
                182,
                Short.MAX_VALUE));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(lblMensagem, javax.swing.GroupLayout.DEFAULT_SIZE, 139, Short.MAX_VALUE));

    pack();
  } // </editor-fold>//GEN-END:initComponents
Esempio n. 23
0
  /**
   * 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.
   */
  @SuppressWarnings("unchecked")
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    jCheckBox1 = new javax.swing.JCheckBox();

    jCheckBox1.setText(
        org.openide.util.NbBundle.getMessage(
            JavaCompilerSettingsPanel.class,
            "JavaCompilerSettingsPanel.jCheckBox1.text")); // NOI18N

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jCheckBox1)
                    .addContainerGap(269, Short.MAX_VALUE)));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jCheckBox1)
                    .addContainerGap(270, Short.MAX_VALUE)));
  } // </editor-fold>//GEN-END:initComponents
Esempio n. 24
0
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    mainPanel = new javax.swing.JPanel();

    javax.swing.GroupLayout mainPanelLayout = new javax.swing.GroupLayout(mainPanel);
    mainPanel.setLayout(mainPanelLayout);
    mainPanelLayout.setHorizontalGroup(
        mainPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 334, Short.MAX_VALUE));
    mainPanelLayout.setVerticalGroup(
        mainPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 277, Short.MAX_VALUE));

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(
                mainPanel,
                javax.swing.GroupLayout.DEFAULT_SIZE,
                javax.swing.GroupLayout.DEFAULT_SIZE,
                Short.MAX_VALUE));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(
                mainPanel,
                javax.swing.GroupLayout.DEFAULT_SIZE,
                javax.swing.GroupLayout.DEFAULT_SIZE,
                Short.MAX_VALUE));
  } // </editor-fold>//GEN-END:initComponents
Esempio n. 25
0
  /**
   * 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.
   */
  @SuppressWarnings("unchecked")
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    jLabel1 = new javax.swing.JLabel();

    jLabel1.setText("Het product is gewijzigd");

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jLabel1)
                    .addContainerGap(251, Short.MAX_VALUE)));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jLabel1)
                    .addContainerGap(271, Short.MAX_VALUE)));
  } // </editor-fold>//GEN-END:initComponents
  // <editor-fold defaultstate="collapsed" desc=" Generated Code
  // <editor-fold defaultstate="collapsed" desc=" Generated Code
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    propertySheetPanel = new com.l2fprod.common.propertysheet.PropertySheetPanel();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    setTitle("Properties");
    setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
    setModal(true);
    addWindowListener(
        new java.awt.event.WindowAdapter() {
          public void windowClosed(java.awt.event.WindowEvent evt) {
            formWindowClosed(evt);
          }
        });

    propertySheetPanel.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    propertySheetPanel.setAutoscrolls(true);
    propertySheetPanel.setDescriptionVisible(true);
    propertySheetPanel.setToolBarVisible(true);

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(
                propertySheetPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 273, Short.MAX_VALUE));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(
                propertySheetPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 283, Short.MAX_VALUE));

    pack();
  } // </editor-fold>//GEN-END:initComponents
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    jButton1 = new javax.swing.JButton();

    jButton1.setText("Click Once!");
    jButton1.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton1ActionPerformed(evt);
          }
        });

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jButton1)
                    .addContainerGap(305, Short.MAX_VALUE)));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                javax.swing.GroupLayout.Alignment.TRAILING,
                layout
                    .createSequentialGroup()
                    .addContainerGap(227, Short.MAX_VALUE)
                    .addComponent(jButton1)
                    .addGap(50, 50, 50)));
  } // </editor-fold>//GEN-END:initComponents
Esempio n. 28
0
  /**
   * 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.
   */
  @SuppressWarnings("unchecked")
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    jScrollPane1 = new javax.swing.JScrollPane();
    jLabel1 = new javax.swing.JLabel();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    setResizable(false);

    jScrollPane1.setHorizontalScrollBarPolicy(
        javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
    jScrollPane1.setVerticalScrollBarPolicy(
        javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);

    jLabel1.setIcon(
        new javax.swing.ImageIcon(getClass().getResource("/images/Bibliografia.jpg"))); // NOI18N
    jScrollPane1.setViewportView(jLabel1);

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(
                jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 1210, Short.MAX_VALUE));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(
                jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 600, Short.MAX_VALUE));

    pack();
  } // </editor-fold>//GEN-END:initComponents
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    beanTreeView1 = new org.openide.explorer.view.BeanTreeView();
    beanTreeView2 = new org.openide.explorer.view.BeanTreeView();

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                javax.swing.GroupLayout.Alignment.TRAILING,
                layout
                    .createSequentialGroup()
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(
                        beanTreeView2,
                        javax.swing.GroupLayout.PREFERRED_SIZE,
                        javax.swing.GroupLayout.DEFAULT_SIZE,
                        javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap()));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .addComponent(
                        beanTreeView2,
                        javax.swing.GroupLayout.PREFERRED_SIZE,
                        javax.swing.GroupLayout.DEFAULT_SIZE,
                        javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
  } // </editor-fold>//GEN-END:initComponents
Esempio n. 30
0
    private void initComponents() {

      panelStatus = new JImagePanel();
      labDesc = new JLabel();

      setName("Form"); // NOI18N

      panelStatus.setName("panelStatus"); // NOI18N
      panelStatus.setPreferredSize(new java.awt.Dimension(28, 28));

      javax.swing.GroupLayout panelStatusLayout = new javax.swing.GroupLayout(panelStatus);
      panelStatus.setLayout(panelStatusLayout);
      panelStatusLayout.setHorizontalGroup(
          panelStatusLayout
              .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGap(0, 28, Short.MAX_VALUE));
      panelStatusLayout.setVerticalGroup(
          panelStatusLayout
              .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGap(0, 28, Short.MAX_VALUE));

      labDesc.setFont(new java.awt.Font("Verdana", Font.ITALIC, 12)); // NOI18N
      labDesc.setText(""); // NOI18N
      labDesc.setName("labDesc"); // NOI18N

      javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
      this.setLayout(layout);
      layout.setHorizontalGroup(
          layout
              .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(
                  layout
                      .createSequentialGroup()
                      .addComponent(
                          panelStatus,
                          javax.swing.GroupLayout.PREFERRED_SIZE,
                          javax.swing.GroupLayout.DEFAULT_SIZE,
                          javax.swing.GroupLayout.PREFERRED_SIZE)
                      .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                      .addComponent(
                          labDesc,
                          javax.swing.GroupLayout.PREFERRED_SIZE,
                          311,
                          javax.swing.GroupLayout.PREFERRED_SIZE)
                      .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
      layout.setVerticalGroup(
          layout
              .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addComponent(
                  panelStatus,
                  javax.swing.GroupLayout.PREFERRED_SIZE,
                  javax.swing.GroupLayout.DEFAULT_SIZE,
                  javax.swing.GroupLayout.PREFERRED_SIZE)
              .addComponent(labDesc, javax.swing.GroupLayout.DEFAULT_SIZE, 28, Short.MAX_VALUE));

      toAdjust = new LinkedList<Component>();
      toAdjust.add(this);
      toAdjust.add(labDesc);
      toAdjust.add(panelStatus);
    }