Analisa Hasil Praktek o Menjelaskan cara membuat menu pada aplikasi dengan Netbeans IDE
Membuat menu pada aplikasi berbasis java biasanya digunakan widget-widget pada swing,
Terdapat Jenis menu yang dapat dibuat melalui Swing Menu, yaitu:
1. Jenis Menu Baru : merupakan object menu yang melekat pada window aplikasi biasanya berada
di bagian atas pada window aplikasi, pada Menu Bar biasanya ditambahkan Menu atau Menu
Item sebagai isi atau sub-menu dari Menu bar.
2. Jenis Popup Menu : merupakan object menu yang secara dinamic popup (tampil) pada posisi
tertentu di dalam window aplikasi, pada Popup Menu biasanya ditambahkan Menu atau Menu
Item sebagai isi atau sub-menu dari Popup Menu.
/**
*
* @author Levy
*/
public class BangunRuang {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
}
}
package bangunruang;
/**
*
* @author Levy
*/
public class LuasBangun extends javax.swing.JFrame {
/**
* Creates new form LuasBangun
*/
public LuasBangun() {
initComponents();
setLocationRelativeTo(this);
}
/**
* 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">
private void initComponents() {
dlgPembuat.setTitle("Tentang Pembuat");
dlgPembuat.setMinimumSize(new
java.awt.Dimension(290, 220));
dlgPembuat.setPreferredSize(new
java.awt.Dimension(290, 220));
jTextArea1.setColumns(20);
jTextArea1.setRows(5);
jTextArea1.setText("Nama : Ade Prastyo\nKelas :
4ID\nNIM : 061930801680\n\nTerima Kasih telah
menggunakan aplikasi kami.");
jScrollPane1.setViewportView(jTextArea1);
Btn_ok.setText("OK");
Btn_ok.addActionListener(new
java.awt.event.ActionListener() {
public void
actionPerformed(java.awt.event.ActionEvent evt) {
Btn_okActionPerformed(evt);
}
});
javax.swing.GroupLayout dlgPembuatLayout =
new
javax.swing.GroupLayout(dlgPembuat.getContentPan
e());
dlgPembuat.getContentPane().setLayout(dlgPembuat
Layout);
dlgPembuatLayout.setHorizontalGroup(
dlgPembuatLayout.createParallelGroup(javax.swing.G
roupLayout.Alignment.LEADING)
.addGroup(dlgPembuatLayout.createSequentialGroup
()
.addContainerGap()
.addGroup(dlgPembuatLayout.createParallelGroup(ja
vax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane1,
javax.swing.GroupLayout.DEFAULT_SIZE, 270,
Short.MAX_VALUE)
.addGroup(javax.swing.GroupLayout.Alignment.TRAIL
ING, dlgPembuatLayout.createSequentialGroup()
.addGap(0, 0, Short.MAX_VALUE)
.addComponent(Btn_ok)))
.addContainerGap())
.addGroup(javax.swing.GroupLayout.Alignment.TRAIL
ING, dlgPembuatLayout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT
_SIZE, Short.MAX_VALUE)
.addComponent(jLabel1)
.addGap(75, 75, 75))
);
dlgPembuatLayout.setVerticalGroup(
dlgPembuatLayout.createParallelGroup(javax.swing.G
roupLayout.Alignment.LEADING)
.addGroup(dlgPembuatLayout.createSequentialGroup
()
.addGap(18, 18, 18)
.addComponent(jLabel1)
.addPreferredGap(javax.swing.LayoutStyle.Componen
tPlacement.UNRELATED)
.addComponent(jScrollPane1,
javax.swing.GroupLayout.PREFERRED_SIZE, 90,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.Componen
tPlacement.UNRELATED)
.addComponent(Btn_ok)
.addContainerGap(53, Short.MAX_VALUE))
);
jLabel5.setText("Alas");
jLabel6.setText("Tinggi");
jLabel7.setText("Luas Segitiga");
txtlSegitiga.setFont(new
java.awt.Font("Tahoma", 1, 11)); // NOI18N
txtlSegitiga.setEnabled(false);
txtlSegitiga.addActionListener(new
java.awt.event.ActionListener() {
public void
actionPerformed(java.awt.event.ActionEvent evt) {
txtlSegitigaActionPerformed(evt);
}
});
jButton1.setText("Hitung");
jButton1.addActionListener(new
java.awt.event.ActionListener() {
public void
actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
javax.swing.GroupLayout dlgSegitigaLayout =
new
javax.swing.GroupLayout(dlgSegitiga.getContentPane
());
dlgSegitiga.getContentPane().setLayout(dlgSegitigaLa
yout);
dlgSegitigaLayout.setHorizontalGroup(
dlgSegitigaLayout.createParallelGroup(javax.swing.Gr
oupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAIL
ING, dlgSegitigaLayout.createSequentialGroup()
.addGroup(dlgSegitigaLayout.createParallelGroup(jav
ax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(dlgSegitigaLayout.createSequentialGroup(
)
.addGap(0, 0, Short.MAX_VALUE)
.addComponent(jLabel2))
.addGroup(dlgSegitigaLayout.createSequentialGroup(
)
.addContainerGap(javax.swing.GroupLayout.DEFAULT
_SIZE, Short.MAX_VALUE)
.addComponent(jButton1))
.addGroup(dlgSegitigaLayout.createSequentialGroup(
)
.addGap(40, 40, 40)
.addGroup(dlgSegitigaLayout.createParallelGroup(jav
ax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel6)
.addComponent(jLabel5)
.addComponent(jLabel7))
.addPreferredGap(javax.swing.LayoutStyle.Componen
tPlacement.RELATED, 34, Short.MAX_VALUE)
.addGroup(dlgSegitigaLayout.createParallelGroup(jav
ax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(txtlSegitiga)
.addComponent(txttinggi,
javax.swing.GroupLayout.DEFAULT_SIZE, 103,
Short.MAX_VALUE)
.addComponent(txtalas))))
.addGap(50, 50, 50))
);
dlgSegitigaLayout.setVerticalGroup(
dlgSegitigaLayout.createParallelGroup(javax.swing.Gr
oupLayout.Alignment.LEADING)
.addGroup(dlgSegitigaLayout.createSequentialGroup(
)
.addContainerGap()
.addComponent(jLabel2)
.addPreferredGap(javax.swing.LayoutStyle.Componen
tPlacement.UNRELATED)
.addGroup(dlgSegitigaLayout.createParallelGroup(jav
ax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(txtalas,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel5))
.addPreferredGap(javax.swing.LayoutStyle.Componen
tPlacement.UNRELATED)
.addGroup(dlgSegitigaLayout.createParallelGroup(jav
ax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(txttinggi,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel6))
.addPreferredGap(javax.swing.LayoutStyle.Componen
tPlacement.UNRELATED)
.addGroup(dlgSegitigaLayout.createParallelGroup(jav
ax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(txtlSegitiga,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel7))
.addPreferredGap(javax.swing.LayoutStyle.Componen
tPlacement.RELATED)
.addComponent(jButton1)
.addContainerGap(73, Short.MAX_VALUE))
);
dlgLingkaran.setMinimumSize(new
java.awt.Dimension(290, 220));
dlgLingkaran.setPreferredSize(new
java.awt.Dimension(290, 220));
jLabel8.setText("Jari-jari");
txtllingkaran.setFont(new
java.awt.Font("Tahoma", 1, 11)); // NOI18N
txtllingkaran.setEnabled(false);
txtllingkaran.addActionListener(new
java.awt.event.ActionListener() {
public void
actionPerformed(java.awt.event.ActionEvent evt) {
txtllingkaranActionPerformed(evt);
}
});
jLabel10.setText("Luas Lingkaran");
jButton2.setText("Hitung");
jButton2.addActionListener(new
java.awt.event.ActionListener() {
public void
actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});
javax.swing.GroupLayout dlgLingkaranLayout =
new
javax.swing.GroupLayout(dlgLingkaran.getContentPa
ne());
dlgLingkaran.getContentPane().setLayout(dlgLingkara
nLayout);
dlgLingkaranLayout.setHorizontalGroup(
dlgLingkaranLayout.createParallelGroup(javax.swing.
GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAIL
ING, dlgLingkaranLayout.createSequentialGroup()
.addGroup(dlgLingkaranLayout.createParallelGroup(ja
vax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(dlgLingkaranLayout.createSequentialGrou
p()
.addGap(0, 0, Short.MAX_VALUE)
.addComponent(jLabel3))
.addGroup(javax.swing.GroupLayout.Alignment.LEADI
NG, dlgLingkaranLayout.createSequentialGroup()
.addGap(40, 40, 40)
.addGroup(dlgLingkaranLayout.createParallelGroup(ja
vax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAIL
ING, dlgLingkaranLayout.createSequentialGroup()
.addPreferredGap(javax.swing.LayoutStyle.Componen
tPlacement.RELATED, 137, Short.MAX_VALUE)
.addComponent(jButton2))
.addGroup(dlgLingkaranLayout.createSequentialGrou
p()
.addGroup(dlgLingkaranLayout.createParallelGroup(ja
vax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel10)
.addComponent(jLabel8))
.addPreferredGap(javax.swing.LayoutStyle.Componen
tPlacement.RELATED,
javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
.addGroup(dlgLingkaranLayout.createParallelGroup(ja
vax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(txtr,
javax.swing.GroupLayout.DEFAULT_SIZE, 80,
Short.MAX_VALUE)
.addComponent(txtllingkaran))))))
.addGap(50, 50, 50))
);
dlgLingkaranLayout.setVerticalGroup(
dlgLingkaranLayout.createParallelGroup(javax.swing.
GroupLayout.Alignment.LEADING)
.addGroup(dlgLingkaranLayout.createSequentialGrou
p()
.addContainerGap()
.addComponent(jLabel3)
.addGap(26, 26, 26)
.addGroup(dlgLingkaranLayout.createParallelGroup(ja
vax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(txtr,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel8))
.addPreferredGap(javax.swing.LayoutStyle.Componen
tPlacement.UNRELATED)
.addGroup(dlgLingkaranLayout.createParallelGroup(ja
vax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(txtllingkaran,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel10))
.addPreferredGap(javax.swing.LayoutStyle.Componen
tPlacement.RELATED)
.addComponent(jButton2)
.addContainerGap(89, Short.MAX_VALUE))
);
dlgPersegi.setMinimumSize(new
java.awt.Dimension(290, 220));
dlgPersegi.setPreferredSize(new
java.awt.Dimension(290, 220));
jLabel9.setText("Sisi");
txtlpersegi.setFont(new java.awt.Font("Tahoma",
1, 11)); // NOI18N
txtlpersegi.setEnabled(false);
txtlpersegi.addActionListener(new
java.awt.event.ActionListener() {
public void
actionPerformed(java.awt.event.ActionEvent evt) {
txtlpersegiActionPerformed(evt);
}
});
jLabel11.setText("Luas Persegi");
jButton3.setText("Hitung");
jButton3.addActionListener(new
java.awt.event.ActionListener() {
public void
actionPerformed(java.awt.event.ActionEvent evt) {
jButton3ActionPerformed(evt);
}
});
dlgPersegi.getContentPane().setLayout(dlgPersegiLay
out);
dlgPersegiLayout.setHorizontalGroup(
dlgPersegiLayout.createParallelGroup(javax.swing.Gr
oupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAIL
ING, dlgPersegiLayout.createSequentialGroup()
.addGroup(dlgPersegiLayout.createParallelGroup(java
x.swing.GroupLayout.Alignment.TRAILING)
.addGroup(dlgPersegiLayout.createSequentialGroup()
.addGap(0, 0, Short.MAX_VALUE)
.addComponent(jLabel4))
.addGroup(javax.swing.GroupLayout.Alignment.LEADI
NG, dlgPersegiLayout.createSequentialGroup()
.addGap(40, 40, 40)
.addGroup(dlgPersegiLayout.createParallelGroup(java
x.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAIL
ING, dlgPersegiLayout.createSequentialGroup()
.addPreferredGap(javax.swing.LayoutStyle.Componen
tPlacement.RELATED, 137, Short.MAX_VALUE)
.addComponent(jButton3))
.addGroup(dlgPersegiLayout.createSequentialGroup()
.addGroup(dlgPersegiLayout.createParallelGroup(java
x.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel11)
.addComponent(jLabel9))
.addPreferredGap(javax.swing.LayoutStyle.Componen
tPlacement.RELATED,
javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
.addGroup(dlgPersegiLayout.createParallelGroup(java
x.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(txtsisi,
javax.swing.GroupLayout.DEFAULT_SIZE, 80,
Short.MAX_VALUE)
.addComponent(txtlpersegi))))))
.addGap(50, 50, 50))
);
dlgPersegiLayout.setVerticalGroup(
dlgPersegiLayout.createParallelGroup(javax.swing.Gr
oupLayout.Alignment.LEADING)
.addGroup(dlgPersegiLayout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel4)
.addGap(26, 26, 26)
.addGroup(dlgPersegiLayout.createParallelGroup(java
x.swing.GroupLayout.Alignment.BASELINE)
.addComponent(txtsisi,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel9))
.addPreferredGap(javax.swing.LayoutStyle.Componen
tPlacement.UNRELATED)
.addGroup(dlgPersegiLayout.createParallelGroup(java
x.swing.GroupLayout.Alignment.BASELINE)
.addComponent(txtlpersegi,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel11))
.addPreferredGap(javax.swing.LayoutStyle.Componen
tPlacement.RELATED)
.addComponent(jButton3)
.addContainerGap(89, Short.MAX_VALUE))
);
setDefaultCloseOperation(javax.swing.WindowConsta
nts.EXIT_ON_CLOSE);
setTitle("Program Luas Bangun Ruang");
javax.swing.GroupLayout jDesktopPane1Layout =
new javax.swing.GroupLayout(jDesktopPane1);
jDesktopPane1.setLayout(jDesktopPane1Layout);
jDesktopPane1Layout.setHorizontalGroup(
jDesktopPane1Layout.createParallelGroup(javax.swin
g.GroupLayout.Alignment.LEADING)
.addGap(0, 400, Short.MAX_VALUE)
);
jDesktopPane1Layout.setVerticalGroup(
jDesktopPane1Layout.createParallelGroup(javax.swin
g.GroupLayout.Alignment.LEADING)
.addGap(0, 279, Short.MAX_VALUE)
);
jMenu1.setText("Aplikasi");
MnLsegitiga.setAccelerator(javax.swing.KeyStroke.get
KeyStroke(java.awt.event.KeyEvent.VK_1,
java.awt.event.InputEvent.CTRL_DOWN_MASK));
MnLsegitiga.setText("Luas Segitiga");
MnLsegitiga.addActionListener(new
java.awt.event.ActionListener() {
public void
actionPerformed(java.awt.event.ActionEvent evt) {
MnLsegitigaActionPerformed(evt);
}
});
jMenu1.add(MnLsegitiga);
MnLlingkaran.setAccelerator(javax.swing.KeyStroke.g
etKeyStroke(java.awt.event.KeyEvent.VK_2,
java.awt.event.InputEvent.CTRL_DOWN_MASK));
MnLlingkaran.setText("Luas Lingkaran");
MnLlingkaran.addActionListener(new
java.awt.event.ActionListener() {
public void
actionPerformed(java.awt.event.ActionEvent evt) {
MnLlingkaranActionPerformed(evt);
}
});
jMenu1.add(MnLlingkaran);
MnLpersegi.setAccelerator(javax.swing.KeyStroke.get
KeyStroke(java.awt.event.KeyEvent.VK_3,
java.awt.event.InputEvent.CTRL_DOWN_MASK));
MnLpersegi.setText("Luas Persegi");
MnLpersegi.addActionListener(new
java.awt.event.ActionListener() {
public void
actionPerformed(java.awt.event.ActionEvent evt) {
MnLpersegiActionPerformed(evt);
}
});
jMenu1.add(MnLpersegi);
Mnexit.setAccelerator(javax.swing.KeyStroke.getKeyS
troke(java.awt.event.KeyEvent.VK_X,
java.awt.event.InputEvent.CTRL_DOWN_MASK));
Mnexit.setText("Exit");
Mnexit.addActionListener(new
java.awt.event.ActionListener() {
public void
actionPerformed(java.awt.event.ActionEvent evt) {
MnexitActionPerformed(evt);
}
});
jMenu1.add(Mnexit);
jMenuBar1.add(jMenu1);
jMenu2.setText("Bantuan");
Mnlpembuat.setAccelerator(javax.swing.KeyStroke.ge
tKeyStroke(java.awt.event.KeyEvent.VK_P,
java.awt.event.InputEvent.CTRL_DOWN_MASK));
Mnlpembuat.setText("Tentang Pembuat");
Mnlpembuat.addActionListener(new
java.awt.event.ActionListener() {
public void
actionPerformed(java.awt.event.ActionEvent evt) {
MnlpembuatActionPerformed(evt);
}
});
jMenu2.add(Mnlpembuat);
jMenuBar1.add(jMenu2);
setJMenuBar(jMenuBar1);
layout.createParallelGroup(javax.swing.GroupLayout.
Alignment.LEADING)
.addComponent(jDesktopPane1)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.
Alignment.LEADING)
.addComponent(jDesktopPane1)
);
pack();
}// </editor-fold>
private void
MnLlingkaranActionPerformed(java.awt.event.Action
Event evt) {
// TODO add your handling code here:
dlgLingkaran.setLocationRelativeTo(this);
dlgLingkaran.setVisible(true);
}
private void
MnlpembuatActionPerformed(java.awt.event.ActionE
vent evt) {
// TODO add your handling code here:
dlgPembuat.setLocationRelativeTo(this);
dlgPembuat.setVisible(true);
}
private void
MnexitActionPerformed(java.awt.event.ActionEvent
evt) {
// TODO add your handling code here:
System.exit(0);
}
private void
Btn_okActionPerformed(java.awt.event.ActionEvent
evt) {
// TODO add your handling code here:
dlgPembuat.dispose();
}
private void
MnLsegitigaActionPerformed(java.awt.event.ActionEv
ent evt) {
// TODO add your handling code here:
dlgSegitiga.setLocationRelativeTo(this);
dlgSegitiga.setVisible(true);
}
private void
MnLpersegiActionPerformed(java.awt.event.ActionEv
ent evt) {
// TODO add your handling code here:
dlgPersegi.setLocationRelativeTo(this);
dlgPersegi.setVisible(true);
}
private void
txtlSegitigaActionPerformed(java.awt.event.ActionEv
ent evt) {
// TODO add your handling code here:
}
private void
jButton1ActionPerformed(java.awt.event.ActionEvent
evt) {
// TODO add your handling code here:
double a =
Double.parseDouble(txtalas.getText());
double t =
Double.parseDouble(txttinggi.getText());
double Lsegitiga = 0.5 * a * t;
txtlSegitiga.setText(Double.toString(Lsegitiga));
}
private void
txtllingkaranActionPerformed(java.awt.event.ActionE
vent evt) {
// TODO add your handling code here:
}
private void
jButton2ActionPerformed(java.awt.event.ActionEvent
evt) {
// TODO add your handling code here:
double r = Double.parseDouble(txtr.getText());
double phi = 3.14;
double Llingkaran = phi * r * r;
txtllingkaran.setText(Double.toString(Llingkaran));
}
private void
txtlpersegiActionPerformed(java.awt.event.ActionEve
nt evt) {
// TODO add your handling code here:
}
private void
jButton3ActionPerformed(java.awt.event.ActionEvent
evt) {
// TODO add your handling code here:
int s = Integer.parseInt(txtsisi.getText());
int hasil = s * s;
txtlpersegi.setText(Integer.toString(hasil));
}
/**
* @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/l
ookandfeel/plaf.html
*/
try {
for (javax.swing.UIManager.LookAndFeelInfo
info :
javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClass
Name());
break;
}
}
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(LuasBangun.class.g
etName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(LuasBangun.class.g
etName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(LuasBangun.class.g
etName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch
(javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(LuasBangun.class.g
etName()).log(java.util.logging.Level.SEVERE, null, ex);
}
//</editor-fold>