/** * 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() { jButton1Send = new javax.swing.JButton(); ReceiveText = new javax.swing.JTextField(); SendText = new javax.swing.JTextField(); jButton1Connect = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); jButton1Send.setText("Send"); jButton1Send.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1SendActionPerformed(evt); } }); ReceiveText.setText("Modtag ting"); SendText.setText("Send ting afsted"); SendText.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { SendTextActionPerformed(evt); } }); jButton1Connect.setText("Connect"); jButton1Connect.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ConnectActionPerformed(evt); } }); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( layout .createSequentialGroup() .addGroup( layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( layout .createSequentialGroup() .addGap(254, 254, 254) .addComponent(jButton1Send)) .addGroup( layout .createSequentialGroup() .addGap(48, 48, 48) .addGroup( layout .createParallelGroup( javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jButton1Connect) .addGroup( layout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(ReceiveText) .addComponent( SendText, javax.swing.GroupLayout.DEFAULT_SIZE, 454, Short.MAX_VALUE))))) .addContainerGap(87, Short.MAX_VALUE))); layout.setVerticalGroup( layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( javax.swing.GroupLayout.Alignment.TRAILING, layout .createSequentialGroup() .addGap(36, 36, 36) .addComponent( ReceiveText, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(36, 36, 36) .addComponent( SendText, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED, 31, Short.MAX_VALUE) .addComponent(jButton1Send) .addGap(75, 75, 75) .addComponent(jButton1Connect) .addGap(39, 39, 39))); pack(); } // </editor-fold>//GEN-END:initComponents