package examples;
public class MainGUI extends javax.swing.JFrame {
/** Creates new form Antenna */
public void MainGUI() {
initComponents();
}
private void initComponents() {
throw new UnsupportedOperationException("Not yet implemented");
}
public class Communicate_it extends javax.swing.JFrame {
void GetIt() {
int PropArr[] = null;
PropArr[0] = jSlider1.getValue();
PropArr[1] = jSlider2.getValue();
PropArr[2] = jSlider3.getValue();
}
/** Creates new form Antenna */
/** 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 ">
private void initComponents() {
jTextField1 = new javax.swing.JTextField();
jTextField2 = new javax.swing.JTextField();
jSlider1 = new javax.swing.JSlider();
jSlider2 = new javax.swing.JSlider();
jTextField3 = new javax.swing.JTextField();
jSlider3 = new javax.swing.JSlider();
jScrollPane1 = new javax.swing.JScrollPane();
jTextArea1 = new javax.swing.JTextArea();
jLabel1 = new javax.swing.JLabel();
jTextField4 = new javax.swing.JTextField();
jLabel2 = new javax.swing.JLabel();
jPanel1 = new javax.swing.JPanel();
jMenuBar1 = new javax.swing.JMenuBar();
jMenu1 = new javax.swing.JMenu();
jMenuItem3 = new javax.swing.JMenuItem();
jMenuItem4 = new javax.swing.JMenuItem();
jMenu2 = new javax.swing.JMenu();
jMenuItem5 = new javax.swing.JMenuItem();
jMenuItem6 = new javax.swing.JMenuItem();
jMenu3 = new javax.swing.JMenu();
jMenuItem1 = new javax.swing.JMenuItem();
jMenuItem2 = new javax.swing.JMenuItem();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("ImageJ");
jTextField1.setText("No1");
jTextField1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
jTextField1.getAccessibleContext().setAccessibleName("NrField1");
jTextField1.getAccessibleContext().setAccessibleParent(this);
jTextField2.setText("No2");
jTextField2.setBorder(javax.swing.BorderFactory.createEtchedBorder());
jTextField2.getAccessibleContext().setAccessibleName("NrField2");
jTextField2.getAccessibleContext().setAccessibleParent(this);
jSlider1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
jSlider1.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
public void propertyChange(java.beans.PropertyChangeEvent evt) {
jSlider1PropertyChange(evt);
}
});
jSlider1.getAccessibleContext().setAccessibleName("NrSlid1");
jSlider1.getAccessibleContext().setAccessibleDescription("");
jSlider1.getAccessibleContext().setAccessibleParent(this);
jSlider2.setBorder(javax.swing.BorderFactory.createEtchedBorder());
jSlider2.getAccessibleContext().setAccessibleName("NrSlid2");
jSlider2.getAccessibleContext().setAccessibleParent(this);
jTextField3.setText("No3");
jTextField3.setBorder(javax.swing.BorderFactory.createEtchedBorder());
jTextField3.getAccessibleContext().setAccessibleName("NrField3");
jSlider3.setBorder(javax.swing.BorderFactory.createEtchedBorder());
jSlider3.getAccessibleContext().setAccessibleName("NrSlid3");
jTextArea1.setColumns(20);
jTextArea1.setRows(5);
jTextArea1.setBorder(null);
jTextArea1.setMinimumSize(new java.awt.Dimension(0, 0));
jScrollPane1.setViewportView(jTextArea1);
jTextArea1.getAccessibleContext().setAccessibleName("VerboseOut");
jTextArea1.getAccessibleContext().setAccessibleParent(this);
jLabel1.setText("Verbose Output:");
jTextField4.setBorder(javax.swing.BorderFactory.createEtchedBorder());
jTextField4.getAccessibleContext().setAccessibleName("CmdIn");
jTextField4.getAccessibleContext().setAccessibleParent(this);
jLabel2.setText("Comand Line:");
jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(0, 313, Short.MAX_VALUE)
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(0, 265, Short.MAX_VALUE)
);
jMenuBar1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
jMenu1.setBorder(null);
jMenu1.setText("Data");
jMenu1.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
jMenu1MouseClicked(evt);
}
});
jMenuItem3.setText("Item");
jMenuItem3.setActionCommand("LoadP");
jMenuItem3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem3ActionPerformed(evt);
}
});
jMenu1.add(jMenuItem3);
jMenuItem3.getAccessibleContext().setAccessibleName("Load Preset");
jMenuItem3.getAccessibleContext().setAccessibleParent(jMenu1);
jMenuItem4.setText("Item");
jMenuItem4.setActionCommand("SaveP");
jMenu1.add(jMenuItem4);
jMenuItem4.getAccessibleContext().setAccessibleName("Save Preset");
jMenuItem4.getAccessibleContext().setAccessibleParent(jMenu1);
jMenuBar1.add(jMenu1);
jMenu1.getAccessibleContext().setAccessibleParent(jMenuBar1);
jMenu2.setBorder(null);
jMenu2.setText("Edit");
jMenuItem5.setText("Item");
jMenu2.add(jMenuItem5);
jMenuItem6.setText("Item");
jMenu2.add(jMenuItem6);
jMenuBar1.add(jMenu2);
jMenu2.getAccessibleContext().setAccessibleParent(jMenuBar1);
jMenu3.setBorder(null);
jMenu3.setText("Misc");
jMenuItem1.setText("Item");
jMenu3.add(jMenuItem1);
jMenuItem2.setText("Item");
jMenu3.add(jMenuItem2);
jMenuBar1.add(jMenu3);
jMenu3.getAccessibleContext().setAccessibleParent(jMenuBar1);
setJMenuBar(jMenuBar1);
org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.addContainerGap()
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(jTextField4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 526, Short.MAX_VALUE)
.add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 526, Short.MAX_VALUE)
.add(jLabel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 90, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.add(layout.createSequentialGroup()
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.add(jLabel2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 96, Short.MAX_VALUE)
.add(113, 113, 113))
.add(layout.createSequentialGroup()
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(jTextField1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 102, Short.MAX_VALUE)
.add(jTextField3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 102, Short.MAX_VALUE)
.add(jTextField2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 102, Short.MAX_VALUE))
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
.add(jSlider3, 0, 0, Short.MAX_VALUE)
.add(jSlider2, 0, 0, Short.MAX_VALUE)
.add(jSlider1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 101, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)))
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.addContainerGap()
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(jTextField1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 28, Short.MAX_VALUE)
.add(jSlider1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
.add(jTextField2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 28, Short.MAX_VALUE)
.add(jSlider2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(jTextField3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 28, Short.MAX_VALUE)
.add(jSlider3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.add(159, 159, 159)
.add(jLabel2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.add(jPanel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(jTextField4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(jLabel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 26, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 103, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
);
pack();
}// </editor-fold>
private void jSlider1PropertyChange(java.beans.PropertyChangeEvent evt) {
// TODO add your handling code here:
int Val = jSlider1.getValue();
}
private void jMenu1MouseClicked(java.awt.event.MouseEvent evt) {
// TODO add your handling code here:
}
private void jMenuItem3ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
}
/**
* @param args the command line arguments
*/
public void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new MainGUI().setVisible(true);
}
});
}
public void Talk() {
}
public void Listen() {
}