root/DSeTa/DiscoveryPHI/src/main/java/fr/unicaen/iota/xacml/ihm/test/CaptureModule.java @ 19b58bab
2e0a7cb1 | Sylvain L. Sauvage | /*
|
|
* This program is a part of the IoTa project.
|
|||
*
|
|||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
|||
19b58bab | Rémy Ménard | *
|
|
2e0a7cb1 | Sylvain L. Sauvage | * This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|||
* the Free Software Foundation, either version 3 of the License, or
|
|||
* (at your option) any later version.
|
|||
*
|
|||
* This program is distributed in the hope that it will be useful,
|
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|||
* GNU General Public License for more details.
|
|||
* <http://www.gnu.org/licenses/>
|
|||
*
|
|||
* See AUTHORS for a list of contributors.
|
|||
*/
|
|||
package fr.unicaen.iota.xacml.ihm.test;
|
|||
/**
|
|||
*
|
|||
*/
|
|||
public class CaptureModule extends javax.swing.JFrame {
|
|||
/**
|
|||
* Creates new form CaptureModule
|
|||
*/
|
|||
public CaptureModule() {
|
|||
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();
|
|||
jLabel3 = new javax.swing.JLabel();
|
|||
jLabel8 = new javax.swing.JLabel();
|
|||
sendButton = new javax.swing.JButton();
|
|||
actionComboBox = new javax.swing.JComboBox();
|
|||
userField = new javax.swing.JTextField();
|
|||
partnerField = new javax.swing.JTextField();
|
|||
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
|
|||
jLabel1.setText("Capture Module");
|
|||
jLabel2.setText("User: ");
|
|||
jLabel3.setText("Partner: ");
|
|||
jLabel8.setText("Action: ");
|
|||
sendButton.setText("Send");
|
|||
sendButton.addActionListener(new java.awt.event.ActionListener() {
|
|||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|||
sendButtonActionPerformed(evt);
|
|||
}
|
|||
});
|
|||
actionComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
|
|||
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()
|
|||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|||
.addGroup(layout.createSequentialGroup()
|
|||
.addContainerGap()
|
|||
.addComponent(jLabel3))
|
|||
.addGroup(layout.createSequentialGroup()
|
|||
.addContainerGap()
|
|||
.addComponent(jLabel2))
|
|||
.addGroup(layout.createSequentialGroup()
|
|||
.addContainerGap()
|
|||
.addComponent(jLabel8)))
|
|||
.addGap(20, 20, 20)
|
|||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|||
.addComponent(userField, javax.swing.GroupLayout.DEFAULT_SIZE, 231, Short.MAX_VALUE)
|
|||
.addComponent(partnerField, javax.swing.GroupLayout.DEFAULT_SIZE, 231, Short.MAX_VALUE)
|
|||
.addComponent(actionComboBox, 0, 231, Short.MAX_VALUE)
|
|||
.addComponent(jLabel1)))
|
|||
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
|
|||
.addContainerGap(273, Short.MAX_VALUE)
|
|||
.addComponent(sendButton)))
|
|||
.addContainerGap())
|
|||
);
|
|||
layout.setVerticalGroup(
|
|||
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|||
.addGroup(layout.createSequentialGroup()
|
|||
.addComponent(jLabel1)
|
|||
.addGap(12, 12, 12)
|
|||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
|||
.addComponent(userField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
|||
.addComponent(jLabel2))
|
|||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
|||
.addComponent(partnerField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
|||
.addComponent(jLabel3))
|
|||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
|||
.addComponent(actionComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
|||
.addComponent(jLabel8))
|
|||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
|||
.addComponent(sendButton)
|
|||
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
|||
);
|
|||
pack();
|
|||
}// </editor-fold>//GEN-END:initComponents
|
|||
private void sendButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_sendButtonActionPerformed
|
|||
}//GEN-LAST:event_sendButtonActionPerformed
|
|||
/**
|
|||
* @param args the command line arguments
|
|||
*/
|
|||
public static void main(String args[]) {
|
|||
java.awt.EventQueue.invokeLater(new Runnable() {
|
|||
@Override
|
|||
public void run() {
|
|||
new CaptureModule().setVisible(true);
|
|||
}
|
|||
});
|
|||
}
|
|||
// Variables declaration - do not modify//GEN-BEGIN:variables
|
|||
private javax.swing.JComboBox actionComboBox;
|
|||
private javax.swing.JLabel jLabel1;
|
|||
private javax.swing.JLabel jLabel2;
|
|||
private javax.swing.JLabel jLabel3;
|
|||
private javax.swing.JLabel jLabel8;
|
|||
private javax.swing.JTextField partnerField;
|
|||
private javax.swing.JButton sendButton;
|
|||
private javax.swing.JTextField userField;
|
|||
// End of variables declaration//GEN-END:variables
|
|||
}
|