Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'develop' into beta_versions

  • Loading branch information...
commit 9396efaf87d068ce7973481be89dd20fcdb213da 2 parents 3750dd6 + ade1d89
@dav94 authored
View
299 QuickAgenda/src/it/valsecchi/quickagenda/windows/addelements/AddCostumerWindow.java
@@ -126,215 +126,101 @@ public void actionPerformed(ActionEvent e) {
.setText("Aggiungi un nuovo cliente inserendo i dati sottostanti.");
lblAvviso.setText("N.B.: i campi Nome e Cognome sono obbligatori.");
+ label = new JLabel("");
+ label.setIcon(new ImageIcon(AddCostumerWindow.class.getResource("/ico_small/users.png")));
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(
getContentPane());
- layout.setHorizontalGroup(layout
- .createParallelGroup(Alignment.TRAILING)
- .addComponent(jToolBar, GroupLayout.DEFAULT_SIZE, 432,
- Short.MAX_VALUE)
- .addGroup(
- layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(lblIstruzioni,
- GroupLayout.PREFERRED_SIZE, 312,
- GroupLayout.PREFERRED_SIZE)
- .addContainerGap(108, Short.MAX_VALUE))
- .addGroup(
- layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(
- layout.createParallelGroup(
- Alignment.TRAILING, false)
- .addGroup(
- layout.createSequentialGroup()
- .addComponent(
- lblIndirizzo,
- GroupLayout.PREFERRED_SIZE,
- 70,
- GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(
- ComponentPlacement.RELATED)
- .addComponent(
- txtIndirizzo,
- 287,
- 287,
- 287))
- .addGroup(
- layout.createSequentialGroup()
- .addComponent(
- lblTelefono,
- GroupLayout.PREFERRED_SIZE,
- 70,
- GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(
- ComponentPlacement.RELATED)
- .addComponent(
- txtTelefono,
- 287,
- 287,
- 287))
- .addGroup(
- layout.createSequentialGroup()
- .addComponent(
- lblEmail,
- GroupLayout.PREFERRED_SIZE,
- 70,
- GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(
- ComponentPlacement.RELATED)
- .addComponent(
- txtEmail,
- 287,
- 287,
- 287))
- .addGroup(
- layout.createSequentialGroup()
- .addComponent(
- lblAzienda,
- GroupLayout.PREFERRED_SIZE,
- 70,
- GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(
- ComponentPlacement.RELATED)
- .addComponent(
- txtAzienda))
- .addGroup(
- layout.createSequentialGroup()
- .addComponent(
- lblCognome,
- GroupLayout.PREFERRED_SIZE,
- 70,
- GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(
- ComponentPlacement.RELATED)
- .addComponent(
- txtCognome))
- .addGroup(
- layout.createSequentialGroup()
- .addComponent(
- lblNome,
- GroupLayout.PREFERRED_SIZE,
- 70,
- GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(
- ComponentPlacement.RELATED)
- .addComponent(
- txtNome)))
- .addContainerGap(58, Short.MAX_VALUE))
- .addGroup(
- layout.createSequentialGroup().addContainerGap()
- .addComponent(lblAvviso)
- .addContainerGap(110, Short.MAX_VALUE))
- .addGroup(
- Alignment.LEADING,
- layout.createSequentialGroup()
- .addGap(167)
- .addComponent(lblImmagine,
- GroupLayout.PREFERRED_SIZE, 79,
- GroupLayout.PREFERRED_SIZE)
- .addContainerGap(186, Short.MAX_VALUE)));
- layout.setVerticalGroup(layout
- .createParallelGroup(Alignment.LEADING)
- .addGroup(
- layout.createSequentialGroup()
- .addComponent(jToolBar,
- GroupLayout.PREFERRED_SIZE,
- GroupLayout.DEFAULT_SIZE,
- GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(lblIstruzioni,
- GroupLayout.PREFERRED_SIZE, 38,
- GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(
- layout.createParallelGroup(
- Alignment.BASELINE)
- .addComponent(
- lblNome,
- GroupLayout.PREFERRED_SIZE,
- 31,
- GroupLayout.PREFERRED_SIZE)
- .addComponent(
- txtNome,
- GroupLayout.PREFERRED_SIZE,
- GroupLayout.DEFAULT_SIZE,
- GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(
- layout.createParallelGroup(
- Alignment.BASELINE)
- .addComponent(
- lblCognome,
- GroupLayout.PREFERRED_SIZE,
- 31,
- GroupLayout.PREFERRED_SIZE)
- .addComponent(
- txtCognome,
- GroupLayout.PREFERRED_SIZE,
- GroupLayout.DEFAULT_SIZE,
- GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(
- layout.createParallelGroup(
- Alignment.BASELINE)
- .addComponent(
- lblAzienda,
- GroupLayout.PREFERRED_SIZE,
- 31,
- GroupLayout.PREFERRED_SIZE)
- .addComponent(
- txtAzienda,
- GroupLayout.PREFERRED_SIZE,
- GroupLayout.DEFAULT_SIZE,
- GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(
- layout.createParallelGroup(
- Alignment.BASELINE)
- .addComponent(
- lblIndirizzo,
- GroupLayout.PREFERRED_SIZE,
- 31,
- GroupLayout.PREFERRED_SIZE)
- .addComponent(
- txtIndirizzo,
- GroupLayout.PREFERRED_SIZE,
- GroupLayout.DEFAULT_SIZE,
- GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(
- layout.createParallelGroup(
- Alignment.BASELINE)
- .addComponent(
- lblTelefono,
- GroupLayout.PREFERRED_SIZE,
- 31,
- GroupLayout.PREFERRED_SIZE)
- .addComponent(
- txtTelefono,
- GroupLayout.PREFERRED_SIZE,
- GroupLayout.DEFAULT_SIZE,
- GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(
- layout.createParallelGroup(
- Alignment.BASELINE)
- .addComponent(
- lblEmail,
- GroupLayout.PREFERRED_SIZE,
- 31,
- GroupLayout.PREFERRED_SIZE)
- .addComponent(
- txtEmail,
- GroupLayout.PREFERRED_SIZE,
- GroupLayout.DEFAULT_SIZE,
- GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(lblAvviso)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addComponent(lblImmagine)
- .addContainerGap(22, Short.MAX_VALUE)));
+ layout.setHorizontalGroup(
+ layout.createParallelGroup(Alignment.LEADING)
+ .addGroup(layout.createSequentialGroup()
+ .addGroup(layout.createParallelGroup(Alignment.LEADING)
+ .addGroup(layout.createSequentialGroup()
+ .addContainerGap()
+ .addComponent(lblIstruzioni, GroupLayout.PREFERRED_SIZE, 312, GroupLayout.PREFERRED_SIZE))
+ .addGroup(layout.createSequentialGroup()
+ .addContainerGap()
+ .addComponent(lblAvviso))
+ .addGroup(layout.createSequentialGroup()
+ .addGap(167)
+ .addComponent(lblImmagine, GroupLayout.PREFERRED_SIZE, 79, GroupLayout.PREFERRED_SIZE))
+ .addGroup(layout.createSequentialGroup()
+ .addContainerGap()
+ .addGroup(layout.createParallelGroup(Alignment.TRAILING, false)
+ .addGroup(layout.createSequentialGroup()
+ .addComponent(lblIndirizzo, GroupLayout.PREFERRED_SIZE, 70, GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(txtIndirizzo, 287, 287, 287))
+ .addGroup(layout.createSequentialGroup()
+ .addComponent(lblTelefono, GroupLayout.PREFERRED_SIZE, 70, GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(txtTelefono, 287, 287, 287))
+ .addGroup(layout.createSequentialGroup()
+ .addComponent(lblEmail, GroupLayout.PREFERRED_SIZE, 70, GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(txtEmail, 287, 287, 287))
+ .addGroup(layout.createSequentialGroup()
+ .addComponent(lblAzienda, GroupLayout.PREFERRED_SIZE, 70, GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(txtAzienda))
+ .addGroup(layout.createSequentialGroup()
+ .addComponent(lblCognome, GroupLayout.PREFERRED_SIZE, 70, GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(txtCognome))
+ .addGroup(layout.createSequentialGroup()
+ .addComponent(lblNome, GroupLayout.PREFERRED_SIZE, 70, GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(txtNome))))
+ .addGroup(layout.createSequentialGroup()
+ .addGap(18)
+ .addComponent(label)
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(jToolBar, GroupLayout.PREFERRED_SIZE, 171, GroupLayout.PREFERRED_SIZE)))
+ .addContainerGap(58, Short.MAX_VALUE))
+ );
+ layout.setVerticalGroup(
+ layout.createParallelGroup(Alignment.LEADING)
+ .addGroup(layout.createSequentialGroup()
+ .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
+ .addGroup(layout.createSequentialGroup()
+ .addContainerGap()
+ .addComponent(jToolBar, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(ComponentPlacement.UNRELATED))
+ .addGroup(Alignment.TRAILING, layout.createSequentialGroup()
+ .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addComponent(label)
+ .addGap(35)))
+ .addComponent(lblIstruzioni, GroupLayout.PREFERRED_SIZE, 38, GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addGroup(layout.createParallelGroup(Alignment.BASELINE)
+ .addComponent(lblNome, GroupLayout.PREFERRED_SIZE, 31, GroupLayout.PREFERRED_SIZE)
+ .addComponent(txtNome, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addGroup(layout.createParallelGroup(Alignment.BASELINE)
+ .addComponent(lblCognome, GroupLayout.PREFERRED_SIZE, 31, GroupLayout.PREFERRED_SIZE)
+ .addComponent(txtCognome, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addGroup(layout.createParallelGroup(Alignment.BASELINE)
+ .addComponent(lblAzienda, GroupLayout.PREFERRED_SIZE, 31, GroupLayout.PREFERRED_SIZE)
+ .addComponent(txtAzienda, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addGroup(layout.createParallelGroup(Alignment.BASELINE)
+ .addComponent(lblIndirizzo, GroupLayout.PREFERRED_SIZE, 31, GroupLayout.PREFERRED_SIZE)
+ .addComponent(txtIndirizzo, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addGroup(layout.createParallelGroup(Alignment.BASELINE)
+ .addComponent(lblTelefono, GroupLayout.PREFERRED_SIZE, 31, GroupLayout.PREFERRED_SIZE)
+ .addComponent(txtTelefono, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addGroup(layout.createParallelGroup(Alignment.BASELINE)
+ .addComponent(lblEmail, GroupLayout.PREFERRED_SIZE, 31, GroupLayout.PREFERRED_SIZE)
+ .addComponent(txtEmail, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(lblAvviso)
+ .addPreferredGap(ComponentPlacement.UNRELATED)
+ .addComponent(lblImmagine)
+ .addContainerGap(16, Short.MAX_VALUE))
+ );
getContentPane().setLayout(layout);
getRootPane().setDefaultButton(addButton);
pack();
@@ -358,6 +244,7 @@ public void actionPerformed(ActionEvent e) {
private javax.swing.JTextField txtEmail;
private javax.swing.JToolBar jToolBar;
private javax.swing.JLabel lblImmagine;
+ private JLabel label;
/** Classe interna che gestisce il click del pulsante add */
private class AddButtonClickHandler implements ActionListener {
View
300 QuickAgenda/src/it/valsecchi/quickagenda/windows/addelements/AddSessionWindow.java
@@ -148,216 +148,101 @@ public void actionPerformed(ActionEvent e) {
txtNote = new JTextArea();
txtNote.setWrapStyleWord(true);
txtNote.setLineWrap(true);
+
+ label = new JLabel("");
+ label.setIcon(new ImageIcon(AddSessionWindow.class.getResource("/ico_small/tools.png")));
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(
getContentPane());
- layout.setHorizontalGroup(layout
- .createParallelGroup(Alignment.LEADING)
- .addGroup(
- layout.createSequentialGroup()
- .addGap(200)
- .addComponent(lblImmagine,
- GroupLayout.PREFERRED_SIZE, 79,
- GroupLayout.PREFERRED_SIZE)
- .addContainerGap(239, Short.MAX_VALUE))
- .addGroup(
- layout.createSequentialGroup().addContainerGap()
- .addComponent(lblAvviso)
- .addContainerGap(123, Short.MAX_VALUE))
- .addGroup(
- layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(
- layout.createParallelGroup(
- Alignment.TRAILING)
- .addGroup(
- layout.createSequentialGroup()
- .addGroup(
- layout.createParallelGroup(
- Alignment.TRAILING)
- .addComponent(
- lblIstruzioni,
- Alignment.LEADING,
- GroupLayout.DEFAULT_SIZE,
- 362,
- Short.MAX_VALUE)
- .addGroup(
- layout.createSequentialGroup()
- .addComponent(
- lblData,
- GroupLayout.PREFERRED_SIZE,
- 70,
- GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(
- ComponentPlacement.RELATED)
- .addComponent(
- dateChooser,
- GroupLayout.DEFAULT_SIZE,
- 287,
- Short.MAX_VALUE)))
- .addGap(144))
- .addGroup(
- layout.createSequentialGroup()
- .addGroup(
- layout.createParallelGroup(
- Alignment.LEADING)
- .addGroup(
- layout.createSequentialGroup()
- .addComponent(
- lblIDLavoro,
- GroupLayout.PREFERRED_SIZE,
- 70,
- GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(
- ComponentPlacement.RELATED)
- .addComponent(
- txtIDLavoro,
- GroupLayout.PREFERRED_SIZE,
- 219,
- GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(
- ComponentPlacement.RELATED)
- .addComponent(
- btnIDLavoro))
- .addGroup(
- layout.createParallelGroup(
- Alignment.LEADING,
- false)
- .addGroup(
- layout.createSequentialGroup()
- .addComponent(
- lblNote,
- GroupLayout.PREFERRED_SIZE,
- 70,
- GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(
- ComponentPlacement.RELATED)
- .addComponent(
- txtNote,
- GroupLayout.PREFERRED_SIZE,
- 317,
- GroupLayout.PREFERRED_SIZE))
- .addGroup(
- layout.createSequentialGroup()
- .addComponent(
- lblSpesa,
- GroupLayout.PREFERRED_SIZE,
- 70,
- GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(
- ComponentPlacement.RELATED)
- .addComponent(
- txtSpesa))
- .addGroup(
- layout.createSequentialGroup()
- .addComponent(
- lblOre,
- GroupLayout.PREFERRED_SIZE,
- 70,
- GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(
- ComponentPlacement.RELATED)
- .addComponent(
- txtOre,
- 287,
- 287,
- 287))))
- .addContainerGap(
- 114,
- Short.MAX_VALUE))))
- .addGroup(
- layout.createSequentialGroup()
- .addComponent(jToolBar,
- GroupLayout.PREFERRED_SIZE, 334,
- GroupLayout.PREFERRED_SIZE)
- .addContainerGap(184, Short.MAX_VALUE)));
- layout.setVerticalGroup(layout
- .createParallelGroup(Alignment.LEADING)
- .addGroup(
- layout.createSequentialGroup()
- .addComponent(jToolBar,
- GroupLayout.PREFERRED_SIZE,
- GroupLayout.DEFAULT_SIZE,
- GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(lblIstruzioni,
- GroupLayout.PREFERRED_SIZE, 38,
- GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(
- layout.createParallelGroup(
- Alignment.BASELINE)
- .addComponent(
- lblIDLavoro,
- GroupLayout.PREFERRED_SIZE,
- 31,
- GroupLayout.PREFERRED_SIZE)
- .addComponent(
- txtIDLavoro,
- GroupLayout.PREFERRED_SIZE,
- GroupLayout.DEFAULT_SIZE,
- GroupLayout.PREFERRED_SIZE)
- .addComponent(btnIDLavoro))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(
- layout.createParallelGroup(
- Alignment.TRAILING)
- .addComponent(
- lblData,
- GroupLayout.PREFERRED_SIZE,
- 31,
- GroupLayout.PREFERRED_SIZE)
- .addComponent(
- dateChooser,
- GroupLayout.PREFERRED_SIZE,
- 25,
- GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(
- layout.createParallelGroup(
- Alignment.BASELINE)
- .addComponent(
- lblOre,
- GroupLayout.PREFERRED_SIZE,
- 31,
- GroupLayout.PREFERRED_SIZE)
- .addComponent(
- txtOre,
- GroupLayout.PREFERRED_SIZE,
- GroupLayout.DEFAULT_SIZE,
- GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(
- layout.createParallelGroup(
- Alignment.BASELINE)
- .addComponent(
- lblSpesa,
- GroupLayout.PREFERRED_SIZE,
- 31,
- GroupLayout.PREFERRED_SIZE)
- .addComponent(
- txtSpesa,
- GroupLayout.PREFERRED_SIZE,
- GroupLayout.DEFAULT_SIZE,
- GroupLayout.PREFERRED_SIZE))
- .addGap(12)
- .addGroup(
- layout.createParallelGroup(
- Alignment.BASELINE)
- .addComponent(
- lblNote,
- GroupLayout.PREFERRED_SIZE,
- 31,
- GroupLayout.PREFERRED_SIZE)
- .addComponent(
- txtNote,
- GroupLayout.PREFERRED_SIZE,
- 85,
- GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(ComponentPlacement.RELATED,
- 35, Short.MAX_VALUE)
- .addComponent(lblAvviso).addGap(18)
- .addComponent(lblImmagine).addContainerGap()));
+ layout.setHorizontalGroup(
+ layout.createParallelGroup(Alignment.LEADING)
+ .addGroup(layout.createSequentialGroup()
+ .addGap(200)
+ .addComponent(lblImmagine, GroupLayout.PREFERRED_SIZE, 79, GroupLayout.PREFERRED_SIZE)
+ .addContainerGap(239, Short.MAX_VALUE))
+ .addGroup(layout.createSequentialGroup()
+ .addContainerGap()
+ .addComponent(lblAvviso)
+ .addContainerGap(123, Short.MAX_VALUE))
+ .addGroup(layout.createSequentialGroup()
+ .addContainerGap()
+ .addGroup(layout.createParallelGroup(Alignment.TRAILING)
+ .addGroup(layout.createSequentialGroup()
+ .addGroup(layout.createParallelGroup(Alignment.TRAILING)
+ .addComponent(lblIstruzioni, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 362, Short.MAX_VALUE)
+ .addGroup(layout.createSequentialGroup()
+ .addComponent(lblData, GroupLayout.PREFERRED_SIZE, 70, GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(dateChooser, GroupLayout.DEFAULT_SIZE, 287, Short.MAX_VALUE)))
+ .addGap(144))
+ .addGroup(layout.createSequentialGroup()
+ .addGroup(layout.createParallelGroup(Alignment.LEADING)
+ .addGroup(layout.createSequentialGroup()
+ .addComponent(lblIDLavoro, GroupLayout.PREFERRED_SIZE, 70, GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(txtIDLavoro, GroupLayout.PREFERRED_SIZE, 219, GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(btnIDLavoro))
+ .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
+ .addGroup(layout.createSequentialGroup()
+ .addComponent(lblNote, GroupLayout.PREFERRED_SIZE, 70, GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(txtNote, GroupLayout.PREFERRED_SIZE, 317, GroupLayout.PREFERRED_SIZE))
+ .addGroup(layout.createSequentialGroup()
+ .addComponent(lblSpesa, GroupLayout.PREFERRED_SIZE, 70, GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(txtSpesa))
+ .addGroup(layout.createSequentialGroup()
+ .addComponent(lblOre, GroupLayout.PREFERRED_SIZE, 70, GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(txtOre, 287, 287, 287))))
+ .addContainerGap(114, Short.MAX_VALUE))))
+ .addGroup(layout.createSequentialGroup()
+ .addContainerGap()
+ .addComponent(label)
+ .addGap(13)
+ .addComponent(jToolBar, GroupLayout.PREFERRED_SIZE, 172, GroupLayout.PREFERRED_SIZE)
+ .addContainerGap(265, Short.MAX_VALUE))
+ );
+ layout.setVerticalGroup(
+ layout.createParallelGroup(Alignment.LEADING)
+ .addGroup(layout.createSequentialGroup()
+ .addGroup(layout.createParallelGroup(Alignment.LEADING)
+ .addGroup(layout.createSequentialGroup()
+ .addContainerGap()
+ .addComponent(jToolBar, GroupLayout.PREFERRED_SIZE, 93, GroupLayout.PREFERRED_SIZE))
+ .addGroup(layout.createSequentialGroup()
+ .addGap(24)
+ .addComponent(label)))
+ .addGap(15)
+ .addComponent(lblIstruzioni, GroupLayout.PREFERRED_SIZE, 38, GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addGroup(layout.createParallelGroup(Alignment.BASELINE)
+ .addComponent(lblIDLavoro, GroupLayout.PREFERRED_SIZE, 31, GroupLayout.PREFERRED_SIZE)
+ .addComponent(txtIDLavoro, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
+ .addComponent(btnIDLavoro))
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addGroup(layout.createParallelGroup(Alignment.TRAILING)
+ .addComponent(lblData, GroupLayout.PREFERRED_SIZE, 31, GroupLayout.PREFERRED_SIZE)
+ .addComponent(dateChooser, GroupLayout.PREFERRED_SIZE, 25, GroupLayout.PREFERRED_SIZE))
+ .addPreferredGap(ComponentPlacement.UNRELATED)
+ .addGroup(layout.createParallelGroup(Alignment.BASELINE)
+ .addComponent(lblOre, GroupLayout.PREFERRED_SIZE, 31, GroupLayout.PREFERRED_SIZE)
+ .addComponent(txtOre, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addGroup(layout.createParallelGroup(Alignment.BASELINE)
+ .addComponent(lblSpesa, GroupLayout.PREFERRED_SIZE, 31, GroupLayout.PREFERRED_SIZE)
+ .addComponent(txtSpesa, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
+ .addGap(12)
+ .addGroup(layout.createParallelGroup(Alignment.BASELINE)
+ .addComponent(lblNote, GroupLayout.PREFERRED_SIZE, 31, GroupLayout.PREFERRED_SIZE)
+ .addComponent(txtNote, GroupLayout.PREFERRED_SIZE, 85, GroupLayout.PREFERRED_SIZE))
+ .addPreferredGap(ComponentPlacement.RELATED, 35, Short.MAX_VALUE)
+ .addComponent(lblAvviso)
+ .addGap(18)
+ .addComponent(lblImmagine)
+ .addContainerGap())
+ );
getContentPane().setLayout(layout);
getRootPane().setDefaultButton(addButton);
pack();
@@ -381,6 +266,7 @@ public void actionPerformed(ActionEvent e) {
private JDateChooser dateChooser;
private AddSessionWindow currentWindow;
private JTextArea txtNote;
+ private JLabel label;
public void setWorkID(String workID) {
txtIDLavoro.setText(workID);
View
379 QuickAgenda/src/it/valsecchi/quickagenda/windows/addelements/AddWorkWindow.java
@@ -56,6 +56,7 @@
private AddWorkWindow currentWindow;
private AddWorkInterface workMan;
private JButton btnIndirizzo;
+ private JLabel label;
public AddWorkWindow(AddWorkInterface workman) {
workMan = workman;
@@ -116,284 +117,108 @@ private void initComponent() {
btnIndirizzo = new JButton("...");
btnIndirizzo.addActionListener(new BtnIndirizzoActionListener());
+
+ label = new JLabel("");
+ label.setIcon(new ImageIcon(AddWorkWindow.class.getResource("/ico_small/work2.png")));
GroupLayout gl_contentPane = new GroupLayout(contentPane);
- gl_contentPane
- .setHorizontalGroup(gl_contentPane
- .createParallelGroup(Alignment.LEADING)
- .addComponent(toolBar, GroupLayout.PREFERRED_SIZE, 334,
- GroupLayout.PREFERRED_SIZE)
- .addGroup(
- gl_contentPane
- .createSequentialGroup()
- .addContainerGap()
- .addComponent(lblAggiungiUnNuovo,
- GroupLayout.PREFERRED_SIZE,
- 362, GroupLayout.PREFERRED_SIZE))
- .addGroup(
- gl_contentPane
- .createSequentialGroup()
- .addContainerGap()
- .addComponent(lblCompletato,
- GroupLayout.PREFERRED_SIZE, 81,
- GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(
- ComponentPlacement.UNRELATED)
- .addComponent(checkCompletato))
- .addGroup(
- gl_contentPane
- .createSequentialGroup()
- .addContainerGap()
- .addComponent(lblAvviso,
- GroupLayout.PREFERRED_SIZE,
- 383, GroupLayout.PREFERRED_SIZE))
- .addGroup(
- gl_contentPane
- .createSequentialGroup()
- .addGap(174)
- .addComponent(lblImmagine,
- GroupLayout.PREFERRED_SIZE, 79,
- GroupLayout.PREFERRED_SIZE))
- .addGroup(
- gl_contentPane
- .createSequentialGroup()
- .addContainerGap()
- .addGroup(
- gl_contentPane
- .createParallelGroup(
- Alignment.TRAILING,
- false)
- .addGroup(
- gl_contentPane
- .createSequentialGroup()
- .addComponent(
- lblFineLavori,
- GroupLayout.PREFERRED_SIZE,
- 81,
- GroupLayout.PREFERRED_SIZE)
- .addGap(12)
- .addComponent(
- dcFineLavori,
- GroupLayout.DEFAULT_SIZE,
- GroupLayout.DEFAULT_SIZE,
- Short.MAX_VALUE))
- .addGroup(
- Alignment.LEADING,
- gl_contentPane
- .createSequentialGroup()
- .addGroup(
- gl_contentPane
- .createParallelGroup(
- Alignment.LEADING)
- .addComponent(
- labelNome,
- GroupLayout.PREFERRED_SIZE,
- 70,
- GroupLayout.PREFERRED_SIZE)
- .addComponent(
- lblIdCliente,
- GroupLayout.PREFERRED_SIZE,
- 70,
- GroupLayout.PREFERRED_SIZE)
- .addComponent(
- lblIndirizzo,
- GroupLayout.PREFERRED_SIZE,
- 70,
- GroupLayout.PREFERRED_SIZE)
- .addComponent(
- lblInizioLavori))
- .addGap(12)
- .addGroup(
- gl_contentPane
- .createParallelGroup(
- Alignment.LEADING,
- false)
- .addComponent(
- txtNome,
- GroupLayout.PREFERRED_SIZE,
- 350,
- GroupLayout.PREFERRED_SIZE)
- .addGroup(
- gl_contentPane
- .createSequentialGroup()
- .addGroup(
- gl_contentPane
- .createParallelGroup(
- Alignment.TRAILING,
- false)
- .addComponent(
- txtIndirizzo,
- Alignment.LEADING)
- .addComponent(
- txtIDCliente,
- Alignment.LEADING,
- GroupLayout.DEFAULT_SIZE,
- 299,
- Short.MAX_VALUE))
- .addPreferredGap(
- ComponentPlacement.RELATED,
- GroupLayout.DEFAULT_SIZE,
- Short.MAX_VALUE)
- .addGroup(
- gl_contentPane
- .createParallelGroup(
- Alignment.LEADING)
- .addComponent(
- btnIndirizzo,
- GroupLayout.PREFERRED_SIZE,
- 45,
- GroupLayout.PREFERRED_SIZE)
- .addComponent(
- btnIDCliente)))
- .addComponent(
- dcInizioLavori,
- GroupLayout.DEFAULT_SIZE,
- GroupLayout.DEFAULT_SIZE,
- Short.MAX_VALUE))))
- .addGap(218)
- .addComponent(button,
- GroupLayout.PREFERRED_SIZE, 45,
- GroupLayout.PREFERRED_SIZE)));
- gl_contentPane
- .setVerticalGroup(gl_contentPane
- .createParallelGroup(Alignment.LEADING)
- .addGroup(
- gl_contentPane
- .createSequentialGroup()
- .addComponent(toolBar,
- GroupLayout.PREFERRED_SIZE, 93,
- GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(
- ComponentPlacement.RELATED)
- .addComponent(lblAggiungiUnNuovo,
- GroupLayout.PREFERRED_SIZE, 38,
- GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(
- ComponentPlacement.RELATED)
- .addGroup(
- gl_contentPane
- .createParallelGroup(
- Alignment.LEADING)
- .addGroup(
- gl_contentPane
- .createSequentialGroup()
- .addGap(4)
- .addComponent(
- txtNome,
- GroupLayout.PREFERRED_SIZE,
- GroupLayout.DEFAULT_SIZE,
- GroupLayout.PREFERRED_SIZE))
- .addComponent(
- labelNome,
- GroupLayout.PREFERRED_SIZE,
- 31,
- GroupLayout.PREFERRED_SIZE))
- .addGroup(
- gl_contentPane
- .createParallelGroup(
- Alignment.LEADING)
- .addGroup(
- gl_contentPane
- .createSequentialGroup()
- .addGap(16)
- .addComponent(
- button))
- .addGroup(
- gl_contentPane
- .createSequentialGroup()
- .addPreferredGap(
- ComponentPlacement.RELATED)
- .addGroup(
- gl_contentPane
- .createParallelGroup(
- Alignment.BASELINE)
- .addComponent(
- lblIdCliente,
- GroupLayout.PREFERRED_SIZE,
- 31,
- GroupLayout.PREFERRED_SIZE)
- .addComponent(
- txtIDCliente,
- GroupLayout.PREFERRED_SIZE,
- GroupLayout.DEFAULT_SIZE,
- GroupLayout.PREFERRED_SIZE)
- .addComponent(
- btnIDCliente))))
- .addPreferredGap(
- ComponentPlacement.RELATED)
- .addGroup(
- gl_contentPane
- .createParallelGroup(
- Alignment.BASELINE)
- .addComponent(
- lblIndirizzo,
- GroupLayout.PREFERRED_SIZE,
- 31,
- GroupLayout.PREFERRED_SIZE)
- .addComponent(
- txtIndirizzo,
- GroupLayout.PREFERRED_SIZE,
- GroupLayout.DEFAULT_SIZE,
- GroupLayout.PREFERRED_SIZE)
- .addComponent(
- btnIndirizzo))
- .addPreferredGap(
- ComponentPlacement.RELATED)
- .addGroup(
- gl_contentPane
- .createParallelGroup(
- Alignment.LEADING)
- .addComponent(
- lblInizioLavori,
- GroupLayout.PREFERRED_SIZE,
- 31,
- GroupLayout.PREFERRED_SIZE)
- .addComponent(
- dcInizioLavori,
- GroupLayout.PREFERRED_SIZE,
- 25,
- GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(
- ComponentPlacement.RELATED,
- GroupLayout.DEFAULT_SIZE,
- Short.MAX_VALUE)
- .addGroup(
- gl_contentPane
- .createParallelGroup(
- Alignment.LEADING)
- .addComponent(
- lblFineLavori,
- GroupLayout.PREFERRED_SIZE,
- 31,
- GroupLayout.PREFERRED_SIZE)
- .addComponent(
- dcFineLavori,
- GroupLayout.PREFERRED_SIZE,
- 25,
- GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(
- ComponentPlacement.RELATED)
- .addGroup(
- gl_contentPane
- .createParallelGroup(
- Alignment.BASELINE)
- .addComponent(
- lblCompletato,
- GroupLayout.PREFERRED_SIZE,
- 31,
- GroupLayout.PREFERRED_SIZE)
- .addComponent(
- checkCompletato))
- .addPreferredGap(
- ComponentPlacement.RELATED)
- .addComponent(lblAvviso,
- GroupLayout.PREFERRED_SIZE, 18,
- GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(
- ComponentPlacement.UNRELATED)
- .addComponent(lblImmagine,
- GroupLayout.PREFERRED_SIZE, 64,
- GroupLayout.PREFERRED_SIZE)
- .addGap(4)));
+ gl_contentPane.setHorizontalGroup(
+ gl_contentPane.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_contentPane.createSequentialGroup()
+ .addContainerGap()
+ .addComponent(lblAggiungiUnNuovo, GroupLayout.PREFERRED_SIZE, 362, GroupLayout.PREFERRED_SIZE))
+ .addGroup(gl_contentPane.createSequentialGroup()
+ .addContainerGap()
+ .addComponent(lblCompletato, GroupLayout.PREFERRED_SIZE, 81, GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(ComponentPlacement.UNRELATED)
+ .addComponent(checkCompletato))
+ .addGroup(gl_contentPane.createSequentialGroup()
+ .addContainerGap()
+ .addComponent(lblAvviso, GroupLayout.PREFERRED_SIZE, 383, GroupLayout.PREFERRED_SIZE))
+ .addGroup(gl_contentPane.createSequentialGroup()
+ .addGap(174)
+ .addComponent(lblImmagine, GroupLayout.PREFERRED_SIZE, 79, GroupLayout.PREFERRED_SIZE))
+ .addGroup(gl_contentPane.createSequentialGroup()
+ .addContainerGap()
+ .addGroup(gl_contentPane.createParallelGroup(Alignment.LEADING, false)
+ .addGroup(gl_contentPane.createSequentialGroup()
+ .addComponent(lblFineLavori, GroupLayout.PREFERRED_SIZE, 81, GroupLayout.PREFERRED_SIZE)
+ .addGap(12)
+ .addComponent(dcFineLavori, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
+ .addGroup(gl_contentPane.createSequentialGroup()
+ .addGroup(gl_contentPane.createParallelGroup(Alignment.LEADING)
+ .addComponent(labelNome, GroupLayout.PREFERRED_SIZE, 70, GroupLayout.PREFERRED_SIZE)
+ .addComponent(lblIdCliente, GroupLayout.PREFERRED_SIZE, 70, GroupLayout.PREFERRED_SIZE)
+ .addComponent(lblIndirizzo, GroupLayout.PREFERRED_SIZE, 70, GroupLayout.PREFERRED_SIZE)
+ .addComponent(lblInizioLavori))
+ .addGap(12)
+ .addGroup(gl_contentPane.createParallelGroup(Alignment.LEADING, false)
+ .addComponent(txtNome, GroupLayout.PREFERRED_SIZE, 350, GroupLayout.PREFERRED_SIZE)
+ .addGroup(gl_contentPane.createSequentialGroup()
+ .addGroup(gl_contentPane.createParallelGroup(Alignment.TRAILING, false)
+ .addComponent(txtIndirizzo, Alignment.LEADING)
+ .addComponent(txtIDCliente, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 299, Short.MAX_VALUE))
+ .addPreferredGap(ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addGroup(gl_contentPane.createParallelGroup(Alignment.LEADING)
+ .addComponent(btnIndirizzo, GroupLayout.PREFERRED_SIZE, 45, GroupLayout.PREFERRED_SIZE)
+ .addComponent(btnIDCliente)))
+ .addComponent(dcInizioLavori, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
+ .addGap(218)
+ .addComponent(button, GroupLayout.PREFERRED_SIZE, 45, GroupLayout.PREFERRED_SIZE))
+ .addGroup(gl_contentPane.createSequentialGroup()
+ .addContainerGap()
+ .addComponent(label)
+ .addPreferredGap(ComponentPlacement.UNRELATED)
+ .addComponent(toolBar, GroupLayout.PREFERRED_SIZE, 171, GroupLayout.PREFERRED_SIZE))
+ );
+ gl_contentPane.setVerticalGroup(
+ gl_contentPane.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_contentPane.createSequentialGroup()
+ .addGroup(gl_contentPane.createParallelGroup(Alignment.LEADING)
+ .addComponent(toolBar, GroupLayout.PREFERRED_SIZE, 93, GroupLayout.PREFERRED_SIZE)
+ .addGroup(gl_contentPane.createSequentialGroup()
+ .addGap(21)
+ .addComponent(label)))
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(lblAggiungiUnNuovo, GroupLayout.PREFERRED_SIZE, 38, GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addGroup(gl_contentPane.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_contentPane.createSequentialGroup()
+ .addGap(4)
+ .addComponent(txtNome, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
+ .addComponent(labelNome, GroupLayout.PREFERRED_SIZE, 31, GroupLayout.PREFERRED_SIZE))
+ .addGroup(gl_contentPane.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_contentPane.createSequentialGroup()
+ .addGap(16)
+ .addComponent(button))
+ .addGroup(gl_contentPane.createSequentialGroup()
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addGroup(gl_contentPane.createParallelGroup(Alignment.BASELINE)
+ .addComponent(lblIdCliente, GroupLayout.PREFERRED_SIZE, 31, GroupLayout.PREFERRED_SIZE)
+ .addComponent(txtIDCliente, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
+ .addComponent(btnIDCliente))))
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addGroup(gl_contentPane.createParallelGroup(Alignment.BASELINE)
+ .addComponent(lblIndirizzo, GroupLayout.PREFERRED_SIZE, 31, GroupLayout.PREFERRED_SIZE)
+ .addComponent(txtIndirizzo, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
+ .addComponent(btnIndirizzo))
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addGroup(gl_contentPane.createParallelGroup(Alignment.LEADING)
+ .addComponent(lblInizioLavori, GroupLayout.PREFERRED_SIZE, 31, GroupLayout.PREFERRED_SIZE)
+ .addComponent(dcInizioLavori, GroupLayout.PREFERRED_SIZE, 25, GroupLayout.PREFERRED_SIZE))
+ .addPreferredGap(ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addGroup(gl_contentPane.createParallelGroup(Alignment.LEADING)
+ .addComponent(lblFineLavori, GroupLayout.PREFERRED_SIZE, 31, GroupLayout.PREFERRED_SIZE)
+ .addComponent(dcFineLavori, GroupLayout.PREFERRED_SIZE, 25, GroupLayout.PREFERRED_SIZE))
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addGroup(gl_contentPane.createParallelGroup(Alignment.BASELINE)
+ .addComponent(lblCompletato, GroupLayout.PREFERRED_SIZE, 31, GroupLayout.PREFERRED_SIZE)
+ .addComponent(checkCompletato))
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(lblAvviso, GroupLayout.PREFERRED_SIZE, 18, GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(ComponentPlacement.UNRELATED)
+ .addComponent(lblImmagine, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
+ .addContainerGap())
+ );
{
btnAggiungi = new JButton("AGGIUNGI");
btnAggiungi.addActionListener(new BtnAggiungiActionListener());
Please sign in to comment.
Something went wrong with that request. Please try again.