Interfaccia grafica
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/build/
|
||||
276
src/registrazionepalestra/RegistrazionePalestra.form
Normal file
276
src/registrazionepalestra/RegistrazionePalestra.form
Normal file
@@ -0,0 +1,276 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
|
||||
<NonVisualComponents>
|
||||
<Component class="javax.swing.ButtonGroup" name="Sesso">
|
||||
</Component>
|
||||
</NonVisualComponents>
|
||||
<Properties>
|
||||
<Property name="defaultCloseOperation" type="int" value="3"/>
|
||||
</Properties>
|
||||
<SyntheticProperties>
|
||||
<SyntheticProperty name="formSizePolicy" type="int" value="1"/>
|
||||
<SyntheticProperty name="generateCenter" type="boolean" value="false"/>
|
||||
</SyntheticProperties>
|
||||
<AuxValues>
|
||||
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
|
||||
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
|
||||
<AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
|
||||
<AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
|
||||
<AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
|
||||
<AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
|
||||
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="3"/>
|
||||
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
|
||||
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
|
||||
</AuxValues>
|
||||
|
||||
<Layout>
|
||||
<DimensionLayout dim="0">
|
||||
<Group type="103" groupAlignment="0" attributes="0">
|
||||
<Group type="102" attributes="0">
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
<Group type="103" groupAlignment="0" attributes="0">
|
||||
<Component id="lblNome" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||
<Component id="lblCognome" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||
<Component id="lblCodiceFiscale" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||
<Component id="lblEmail" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||
<Component id="lblPassword" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||
<Component id="lblSesso" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||
<Component id="lblCittà" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||
<Component id="lblCorsi" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||
<Component id="lblNote" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||
<Component id="btnRegistra" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
<EmptySpace min="-2" pref="35" max="-2" attributes="0"/>
|
||||
<Group type="103" groupAlignment="0" max="-2" attributes="0">
|
||||
<Group type="102" attributes="0">
|
||||
<Component id="btnCancella" min="-2" max="-2" attributes="0"/>
|
||||
<EmptySpace max="32767" attributes="0"/>
|
||||
<Component id="btnChiudi" min="-2" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
<Group type="102" alignment="0" attributes="0">
|
||||
<Component id="chkYoga" min="-2" max="-2" attributes="0"/>
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
<Component id="chkPilates" min="-2" max="-2" attributes="0"/>
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
<Component id="chkFitness" min="-2" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
<Component id="txtNome" max="32767" attributes="0"/>
|
||||
<Component id="txtCognome" max="32767" attributes="0"/>
|
||||
<Component id="txtCodiceFiscale" max="32767" attributes="0"/>
|
||||
<Component id="txtEmail" max="32767" attributes="0"/>
|
||||
<Group type="102" alignment="1" attributes="0">
|
||||
<Component id="radSessoM" min="-2" max="-2" attributes="0"/>
|
||||
<EmptySpace min="-2" pref="38" max="-2" attributes="0"/>
|
||||
<Component id="radSessoF" min="-2" max="-2" attributes="0"/>
|
||||
<EmptySpace min="-2" pref="47" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
<Component id="jComboBox1" alignment="0" max="32767" attributes="0"/>
|
||||
<Component id="txtPassword" alignment="0" max="32767" attributes="0"/>
|
||||
<Component id="jScrollPane1" min="-2" pref="192" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
<EmptySpace pref="16" max="32767" attributes="0"/>
|
||||
</Group>
|
||||
</Group>
|
||||
</DimensionLayout>
|
||||
<DimensionLayout dim="1">
|
||||
<Group type="103" groupAlignment="0" attributes="0">
|
||||
<Group type="102" alignment="0" attributes="0">
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
<Group type="103" groupAlignment="3" attributes="0">
|
||||
<Component id="lblNome" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||
<Component id="txtNome" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
<Group type="103" groupAlignment="0" attributes="0">
|
||||
<Component id="lblCognome" min="-2" max="-2" attributes="0"/>
|
||||
<Component id="txtCognome" min="-2" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
<Group type="103" groupAlignment="0" attributes="0">
|
||||
<Component id="lblCodiceFiscale" min="-2" max="-2" attributes="0"/>
|
||||
<Component id="txtCodiceFiscale" min="-2" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
<Group type="103" groupAlignment="0" attributes="0">
|
||||
<Component id="lblEmail" min="-2" max="-2" attributes="0"/>
|
||||
<Component id="txtEmail" min="-2" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
<Group type="103" groupAlignment="0" attributes="0">
|
||||
<Component id="lblPassword" min="-2" max="-2" attributes="0"/>
|
||||
<Component id="txtPassword" min="-2" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
<Group type="103" groupAlignment="0" attributes="0">
|
||||
<Component id="lblSesso" min="-2" max="-2" attributes="0"/>
|
||||
<Group type="103" alignment="0" groupAlignment="3" attributes="0">
|
||||
<Component id="radSessoM" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||
<Component id="radSessoF" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
</Group>
|
||||
<EmptySpace min="-2" pref="5" max="-2" attributes="0"/>
|
||||
<Group type="103" groupAlignment="3" attributes="0">
|
||||
<Component id="lblCittà" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||
<Component id="jComboBox1" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
<Group type="103" groupAlignment="3" attributes="0">
|
||||
<Component id="lblCorsi" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||
<Component id="chkYoga" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||
<Component id="chkPilates" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||
<Component id="chkFitness" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
<Group type="103" groupAlignment="0" attributes="0">
|
||||
<Component id="lblNote" min="-2" max="-2" attributes="0"/>
|
||||
<Component id="jScrollPane1" min="-2" pref="121" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
<EmptySpace pref="13" max="32767" attributes="0"/>
|
||||
<Group type="103" groupAlignment="3" attributes="0">
|
||||
<Component id="btnRegistra" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||
<Component id="btnCancella" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||
<Component id="btnChiudi" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
</Group>
|
||||
</Group>
|
||||
</DimensionLayout>
|
||||
</Layout>
|
||||
<SubComponents>
|
||||
<Component class="javax.swing.JLabel" name="lblNome">
|
||||
<Properties>
|
||||
<Property name="text" type="java.lang.String" value="Nome"/>
|
||||
</Properties>
|
||||
</Component>
|
||||
<Component class="javax.swing.JLabel" name="lblCognome">
|
||||
<Properties>
|
||||
<Property name="text" type="java.lang.String" value="Cognome"/>
|
||||
</Properties>
|
||||
</Component>
|
||||
<Component class="javax.swing.JLabel" name="lblCodiceFiscale">
|
||||
<Properties>
|
||||
<Property name="text" type="java.lang.String" value="Codice Fiscale"/>
|
||||
</Properties>
|
||||
</Component>
|
||||
<Component class="javax.swing.JLabel" name="lblEmail">
|
||||
<Properties>
|
||||
<Property name="text" type="java.lang.String" value="Email"/>
|
||||
</Properties>
|
||||
</Component>
|
||||
<Component class="javax.swing.JLabel" name="lblPassword">
|
||||
<Properties>
|
||||
<Property name="text" type="java.lang.String" value="Password"/>
|
||||
</Properties>
|
||||
</Component>
|
||||
<Component class="javax.swing.JLabel" name="lblSesso">
|
||||
<Properties>
|
||||
<Property name="text" type="java.lang.String" value="Sesso"/>
|
||||
</Properties>
|
||||
</Component>
|
||||
<Component class="javax.swing.JLabel" name="lblCittà">
|
||||
<Properties>
|
||||
<Property name="text" type="java.lang.String" value="Città"/>
|
||||
</Properties>
|
||||
</Component>
|
||||
<Component class="javax.swing.JLabel" name="lblCorsi">
|
||||
<Properties>
|
||||
<Property name="text" type="java.lang.String" value="Corsi"/>
|
||||
</Properties>
|
||||
</Component>
|
||||
<Component class="javax.swing.JLabel" name="lblNote">
|
||||
<Properties>
|
||||
<Property name="text" type="java.lang.String" value="Note"/>
|
||||
</Properties>
|
||||
</Component>
|
||||
<Component class="javax.swing.JTextField" name="txtNome">
|
||||
</Component>
|
||||
<Component class="javax.swing.JTextField" name="txtCognome">
|
||||
</Component>
|
||||
<Component class="javax.swing.JTextField" name="txtCodiceFiscale">
|
||||
</Component>
|
||||
<Component class="javax.swing.JTextField" name="txtEmail">
|
||||
</Component>
|
||||
<Component class="javax.swing.JPasswordField" name="txtPassword">
|
||||
</Component>
|
||||
<Component class="javax.swing.JRadioButton" name="radSessoM">
|
||||
<Properties>
|
||||
<Property name="buttonGroup" type="javax.swing.ButtonGroup" editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor">
|
||||
<ComponentRef name="Sesso"/>
|
||||
</Property>
|
||||
<Property name="text" type="java.lang.String" value="M"/>
|
||||
</Properties>
|
||||
</Component>
|
||||
<Component class="javax.swing.JRadioButton" name="radSessoF">
|
||||
<Properties>
|
||||
<Property name="buttonGroup" type="javax.swing.ButtonGroup" editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor">
|
||||
<ComponentRef name="Sesso"/>
|
||||
</Property>
|
||||
<Property name="text" type="java.lang.String" value="F"/>
|
||||
</Properties>
|
||||
</Component>
|
||||
<Component class="javax.swing.JComboBox" name="jComboBox1">
|
||||
<Properties>
|
||||
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
|
||||
<StringArray count="6">
|
||||
<StringItem index="0" value="Roma"/>
|
||||
<StringItem index="1" value="Londra"/>
|
||||
<StringItem index="2" value="Parigi"/>
|
||||
<StringItem index="3" value="Berlino"/>
|
||||
<StringItem index="4" value="Mosca"/>
|
||||
<StringItem index="5" value="Tjumen"/>
|
||||
</StringArray>
|
||||
</Property>
|
||||
</Properties>
|
||||
<AuxValues>
|
||||
<AuxValue name="JavaCodeGenerator_TypeParameters" type="java.lang.String" value="<String>"/>
|
||||
</AuxValues>
|
||||
</Component>
|
||||
<Component class="javax.swing.JCheckBox" name="chkYoga">
|
||||
<Properties>
|
||||
<Property name="text" type="java.lang.String" value="Yoga"/>
|
||||
</Properties>
|
||||
</Component>
|
||||
<Component class="javax.swing.JCheckBox" name="chkPilates">
|
||||
<Properties>
|
||||
<Property name="text" type="java.lang.String" value="Pilates"/>
|
||||
</Properties>
|
||||
</Component>
|
||||
<Component class="javax.swing.JCheckBox" name="chkFitness">
|
||||
<Properties>
|
||||
<Property name="text" type="java.lang.String" value="Fitness"/>
|
||||
</Properties>
|
||||
</Component>
|
||||
<Container class="javax.swing.JScrollPane" name="jScrollPane1">
|
||||
<AuxValues>
|
||||
<AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
|
||||
</AuxValues>
|
||||
|
||||
<Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
|
||||
<SubComponents>
|
||||
<Component class="javax.swing.JTextArea" name="txtaNote">
|
||||
<Properties>
|
||||
<Property name="columns" type="int" value="20"/>
|
||||
<Property name="lineWrap" type="boolean" value="true"/>
|
||||
<Property name="rows" type="int" value="5"/>
|
||||
</Properties>
|
||||
</Component>
|
||||
</SubComponents>
|
||||
</Container>
|
||||
<Component class="javax.swing.JButton" name="btnRegistra">
|
||||
<Properties>
|
||||
<Property name="text" type="java.lang.String" value="Registra"/>
|
||||
</Properties>
|
||||
</Component>
|
||||
<Component class="javax.swing.JButton" name="btnCancella">
|
||||
<Properties>
|
||||
<Property name="text" type="java.lang.String" value="Cancella"/>
|
||||
</Properties>
|
||||
</Component>
|
||||
<Component class="javax.swing.JButton" name="btnChiudi">
|
||||
<Properties>
|
||||
<Property name="text" type="java.lang.String" value="Chiudi"/>
|
||||
</Properties>
|
||||
</Component>
|
||||
</SubComponents>
|
||||
</Form>
|
||||
253
src/registrazionepalestra/RegistrazionePalestra.java
Normal file
253
src/registrazionepalestra/RegistrazionePalestra.java
Normal file
@@ -0,0 +1,253 @@
|
||||
/*
|
||||
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
||||
* Click nbfs://nbhost/SystemFileSystem/Templates/GUIForms/JFrame.java to edit this template
|
||||
*/
|
||||
package registrazionepalestra;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Verde
|
||||
*/
|
||||
public class RegistrazionePalestra extends javax.swing.JFrame {
|
||||
|
||||
private static final java.util.logging.Logger logger = java.util.logging.Logger.getLogger(RegistrazionePalestra.class.getName());
|
||||
|
||||
/**
|
||||
* Creates new form RegistrazionePalestra
|
||||
*/
|
||||
public RegistrazionePalestra() {
|
||||
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() {
|
||||
|
||||
Sesso = new javax.swing.ButtonGroup();
|
||||
lblNome = new javax.swing.JLabel();
|
||||
lblCognome = new javax.swing.JLabel();
|
||||
lblCodiceFiscale = new javax.swing.JLabel();
|
||||
lblEmail = new javax.swing.JLabel();
|
||||
lblPassword = new javax.swing.JLabel();
|
||||
lblSesso = new javax.swing.JLabel();
|
||||
lblCittà = new javax.swing.JLabel();
|
||||
lblCorsi = new javax.swing.JLabel();
|
||||
lblNote = new javax.swing.JLabel();
|
||||
txtNome = new javax.swing.JTextField();
|
||||
txtCognome = new javax.swing.JTextField();
|
||||
txtCodiceFiscale = new javax.swing.JTextField();
|
||||
txtEmail = new javax.swing.JTextField();
|
||||
txtPassword = new javax.swing.JPasswordField();
|
||||
radSessoM = new javax.swing.JRadioButton();
|
||||
radSessoF = new javax.swing.JRadioButton();
|
||||
jComboBox1 = new javax.swing.JComboBox<>();
|
||||
chkYoga = new javax.swing.JCheckBox();
|
||||
chkPilates = new javax.swing.JCheckBox();
|
||||
chkFitness = new javax.swing.JCheckBox();
|
||||
jScrollPane1 = new javax.swing.JScrollPane();
|
||||
txtaNote = new javax.swing.JTextArea();
|
||||
btnRegistra = new javax.swing.JButton();
|
||||
btnCancella = new javax.swing.JButton();
|
||||
btnChiudi = new javax.swing.JButton();
|
||||
|
||||
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
|
||||
|
||||
lblNome.setText("Nome");
|
||||
|
||||
lblCognome.setText("Cognome");
|
||||
|
||||
lblCodiceFiscale.setText("Codice Fiscale");
|
||||
|
||||
lblEmail.setText("Email");
|
||||
|
||||
lblPassword.setText("Password");
|
||||
|
||||
lblSesso.setText("Sesso");
|
||||
|
||||
lblCittà.setText("Città");
|
||||
|
||||
lblCorsi.setText("Corsi");
|
||||
|
||||
lblNote.setText("Note");
|
||||
|
||||
Sesso.add(radSessoM);
|
||||
radSessoM.setText("M");
|
||||
|
||||
Sesso.add(radSessoF);
|
||||
radSessoF.setText("F");
|
||||
|
||||
jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Roma", "Londra", "Parigi", "Berlino", "Mosca", "Tjumen" }));
|
||||
|
||||
chkYoga.setText("Yoga");
|
||||
|
||||
chkPilates.setText("Pilates");
|
||||
|
||||
chkFitness.setText("Fitness");
|
||||
|
||||
txtaNote.setColumns(20);
|
||||
txtaNote.setLineWrap(true);
|
||||
txtaNote.setRows(5);
|
||||
jScrollPane1.setViewportView(txtaNote);
|
||||
|
||||
btnRegistra.setText("Registra");
|
||||
|
||||
btnCancella.setText("Cancella");
|
||||
|
||||
btnChiudi.setText("Chiudi");
|
||||
|
||||
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(lblNome)
|
||||
.addComponent(lblCognome)
|
||||
.addComponent(lblCodiceFiscale)
|
||||
.addComponent(lblEmail)
|
||||
.addComponent(lblPassword)
|
||||
.addComponent(lblSesso)
|
||||
.addComponent(lblCittà)
|
||||
.addComponent(lblCorsi)
|
||||
.addComponent(lblNote)
|
||||
.addComponent(btnRegistra))
|
||||
.addGap(35, 35, 35)
|
||||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
|
||||
.addGroup(layout.createSequentialGroup()
|
||||
.addComponent(btnCancella)
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||
.addComponent(btnChiudi))
|
||||
.addGroup(layout.createSequentialGroup()
|
||||
.addComponent(chkYoga)
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addComponent(chkPilates)
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addComponent(chkFitness))
|
||||
.addComponent(txtNome)
|
||||
.addComponent(txtCognome)
|
||||
.addComponent(txtCodiceFiscale)
|
||||
.addComponent(txtEmail)
|
||||
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
|
||||
.addComponent(radSessoM)
|
||||
.addGap(38, 38, 38)
|
||||
.addComponent(radSessoF)
|
||||
.addGap(47, 47, 47))
|
||||
.addComponent(jComboBox1, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||
.addComponent(txtPassword)
|
||||
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 192, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||
.addContainerGap(16, Short.MAX_VALUE))
|
||||
);
|
||||
layout.setVerticalGroup(
|
||||
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||
.addGroup(layout.createSequentialGroup()
|
||||
.addContainerGap()
|
||||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||
.addComponent(lblNome)
|
||||
.addComponent(txtNome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||
.addComponent(lblCognome)
|
||||
.addComponent(txtCognome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||
.addComponent(lblCodiceFiscale)
|
||||
.addComponent(txtCodiceFiscale, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||
.addComponent(lblEmail)
|
||||
.addComponent(txtEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||
.addComponent(lblPassword)
|
||||
.addComponent(txtPassword, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||
.addComponent(lblSesso)
|
||||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||
.addComponent(radSessoM)
|
||||
.addComponent(radSessoF)))
|
||||
.addGap(5, 5, 5)
|
||||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||
.addComponent(lblCittà)
|
||||
.addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||
.addComponent(lblCorsi)
|
||||
.addComponent(chkYoga)
|
||||
.addComponent(chkPilates)
|
||||
.addComponent(chkFitness))
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||
.addComponent(lblNote)
|
||||
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 13, Short.MAX_VALUE)
|
||||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||
.addComponent(btnRegistra)
|
||||
.addComponent(btnCancella)
|
||||
.addComponent(btnChiudi))
|
||||
.addContainerGap())
|
||||
);
|
||||
|
||||
pack();
|
||||
}// </editor-fold>//GEN-END:initComponents
|
||||
|
||||
/**
|
||||
* @param args the command line arguments
|
||||
*/
|
||||
public static void main(String args[]) {
|
||||
/* Set the Nimbus look and feel */
|
||||
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
|
||||
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
|
||||
* For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
|
||||
*/
|
||||
try {
|
||||
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
|
||||
if ("Nimbus".equals(info.getName())) {
|
||||
javax.swing.UIManager.setLookAndFeel(info.getClassName());
|
||||
break;
|
||||
}
|
||||
}
|
||||
} catch (ReflectiveOperationException | javax.swing.UnsupportedLookAndFeelException ex) {
|
||||
logger.log(java.util.logging.Level.SEVERE, null, ex);
|
||||
}
|
||||
//</editor-fold>
|
||||
|
||||
/* Create and display the form */
|
||||
java.awt.EventQueue.invokeLater(() -> new RegistrazionePalestra().setVisible(true));
|
||||
}
|
||||
|
||||
// Variables declaration - do not modify//GEN-BEGIN:variables
|
||||
private javax.swing.ButtonGroup Sesso;
|
||||
private javax.swing.JButton btnCancella;
|
||||
private javax.swing.JButton btnChiudi;
|
||||
private javax.swing.JButton btnRegistra;
|
||||
private javax.swing.JCheckBox chkFitness;
|
||||
private javax.swing.JCheckBox chkPilates;
|
||||
private javax.swing.JCheckBox chkYoga;
|
||||
private javax.swing.JComboBox<String> jComboBox1;
|
||||
private javax.swing.JScrollPane jScrollPane1;
|
||||
private javax.swing.JLabel lblCittà;
|
||||
private javax.swing.JLabel lblCodiceFiscale;
|
||||
private javax.swing.JLabel lblCognome;
|
||||
private javax.swing.JLabel lblCorsi;
|
||||
private javax.swing.JLabel lblEmail;
|
||||
private javax.swing.JLabel lblNome;
|
||||
private javax.swing.JLabel lblNote;
|
||||
private javax.swing.JLabel lblPassword;
|
||||
private javax.swing.JLabel lblSesso;
|
||||
private javax.swing.JRadioButton radSessoF;
|
||||
private javax.swing.JRadioButton radSessoM;
|
||||
private javax.swing.JTextField txtCodiceFiscale;
|
||||
private javax.swing.JTextField txtCognome;
|
||||
private javax.swing.JTextField txtEmail;
|
||||
private javax.swing.JTextField txtNome;
|
||||
private javax.swing.JPasswordField txtPassword;
|
||||
private javax.swing.JTextArea txtaNote;
|
||||
// End of variables declaration//GEN-END:variables
|
||||
}
|
||||
Reference in New Issue
Block a user