|
|
@@ -0,0 +1,315 @@ |
|
|
/* |
|
|
* To change this license header, choose License Headers in Project Properties. |
|
|
* To change this template file, choose Tools | Templates |
|
|
* and open the template in the editor. |
|
|
*/ |
|
|
package laporan; |
|
|
|
|
|
/** |
|
|
* |
|
|
* @author khanzamedia |
|
|
*/ |
|
|
public class frmPengaduan extends javax.swing.JFrame { |
|
|
|
|
|
/** |
|
|
* Creates new form frmPengaduan |
|
|
*/ |
|
|
public frmPengaduan() { |
|
|
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() { |
|
|
|
|
|
internalFrame1 = new widget.InternalFrame(); |
|
|
TabRawat = new javax.swing.JTabbedPane(); |
|
|
internalFrame2 = new widget.InternalFrame(); |
|
|
Scroll = new widget.ScrollPane(); |
|
|
tbKamar = new widget.Table(); |
|
|
panelisi3 = new widget.panelisi(); |
|
|
label9 = new widget.Label(); |
|
|
TCari = new widget.TextBox(); |
|
|
BtnCari = new widget.Button(); |
|
|
BtnAll = new widget.Button(); |
|
|
label10 = new widget.Label(); |
|
|
LCount = new widget.Label(); |
|
|
BtnHapus = new widget.Button(); |
|
|
BtnHapus1 = new widget.Button(); |
|
|
BtnKeluar = new widget.Button(); |
|
|
internalFrame3 = new widget.InternalFrame(); |
|
|
LoadHTML1 = new widget.editorpane(); |
|
|
|
|
|
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); |
|
|
setTitle("::[ Pengaduan/Chat ]::"); |
|
|
|
|
|
internalFrame1.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(240, 245, 235)), "::[ Data Pengaduan/Chat ]::", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(90, 120, 80))); // NOI18N |
|
|
internalFrame1.setLayout(new java.awt.BorderLayout(1, 1)); |
|
|
|
|
|
TabRawat.setBackground(new java.awt.Color(250, 255, 245)); |
|
|
TabRawat.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(230, 235, 225))); |
|
|
TabRawat.setForeground(new java.awt.Color(90, 120, 80)); |
|
|
TabRawat.setFont(new java.awt.Font("Tahoma", 0, 11)); // NOI18N |
|
|
TabRawat.addMouseListener(new java.awt.event.MouseAdapter() { |
|
|
public void mouseClicked(java.awt.event.MouseEvent evt) { |
|
|
TabRawatMouseClicked(evt); |
|
|
} |
|
|
}); |
|
|
|
|
|
internalFrame2.setBackground(new java.awt.Color(235, 255, 235)); |
|
|
internalFrame2.setBorder(null); |
|
|
internalFrame2.setLayout(new java.awt.BorderLayout(1, 1)); |
|
|
|
|
|
Scroll.setOpaque(true); |
|
|
|
|
|
tbKamar.setAutoCreateRowSorter(true); |
|
|
tbKamar.setToolTipText("Silahkan klik untuk memilih data yang mau diedit ataupun dihapus"); |
|
|
tbKamar.addMouseListener(new java.awt.event.MouseAdapter() { |
|
|
public void mouseClicked(java.awt.event.MouseEvent evt) { |
|
|
tbKamarMouseClicked(evt); |
|
|
} |
|
|
}); |
|
|
tbKamar.addKeyListener(new java.awt.event.KeyAdapter() { |
|
|
public void keyPressed(java.awt.event.KeyEvent evt) { |
|
|
tbKamarKeyPressed(evt); |
|
|
} |
|
|
}); |
|
|
Scroll.setViewportView(tbKamar); |
|
|
|
|
|
internalFrame2.add(Scroll, java.awt.BorderLayout.CENTER); |
|
|
|
|
|
panelisi3.setPreferredSize(new java.awt.Dimension(100, 43)); |
|
|
panelisi3.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT, 4, 9)); |
|
|
|
|
|
label9.setText("Key Word :"); |
|
|
label9.setPreferredSize(new java.awt.Dimension(68, 23)); |
|
|
panelisi3.add(label9); |
|
|
|
|
|
TCari.setPreferredSize(new java.awt.Dimension(200, 23)); |
|
|
TCari.addKeyListener(new java.awt.event.KeyAdapter() { |
|
|
public void keyPressed(java.awt.event.KeyEvent evt) { |
|
|
TCariKeyPressed(evt); |
|
|
} |
|
|
}); |
|
|
panelisi3.add(TCari); |
|
|
|
|
|
BtnCari.setIcon(new javax.swing.ImageIcon(getClass().getResource("/picture/accept.png"))); // NOI18N |
|
|
BtnCari.setMnemonic('1'); |
|
|
BtnCari.setToolTipText("Alt+1"); |
|
|
BtnCari.setPreferredSize(new java.awt.Dimension(28, 23)); |
|
|
BtnCari.addActionListener(new java.awt.event.ActionListener() { |
|
|
public void actionPerformed(java.awt.event.ActionEvent evt) { |
|
|
BtnCariActionPerformed(evt); |
|
|
} |
|
|
}); |
|
|
BtnCari.addKeyListener(new java.awt.event.KeyAdapter() { |
|
|
public void keyPressed(java.awt.event.KeyEvent evt) { |
|
|
BtnCariKeyPressed(evt); |
|
|
} |
|
|
}); |
|
|
panelisi3.add(BtnCari); |
|
|
|
|
|
BtnAll.setIcon(new javax.swing.ImageIcon(getClass().getResource("/picture/Search-16x16.png"))); // NOI18N |
|
|
BtnAll.setMnemonic('2'); |
|
|
BtnAll.setToolTipText("2Alt+2"); |
|
|
BtnAll.setPreferredSize(new java.awt.Dimension(28, 23)); |
|
|
BtnAll.addActionListener(new java.awt.event.ActionListener() { |
|
|
public void actionPerformed(java.awt.event.ActionEvent evt) { |
|
|
BtnAllActionPerformed(evt); |
|
|
} |
|
|
}); |
|
|
BtnAll.addKeyListener(new java.awt.event.KeyAdapter() { |
|
|
public void keyPressed(java.awt.event.KeyEvent evt) { |
|
|
BtnAllKeyPressed(evt); |
|
|
} |
|
|
}); |
|
|
panelisi3.add(BtnAll); |
|
|
|
|
|
label10.setText("Record :"); |
|
|
label10.setPreferredSize(new java.awt.Dimension(60, 23)); |
|
|
panelisi3.add(label10); |
|
|
|
|
|
LCount.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); |
|
|
LCount.setText("0"); |
|
|
LCount.setPreferredSize(new java.awt.Dimension(50, 23)); |
|
|
panelisi3.add(LCount); |
|
|
|
|
|
BtnHapus.setIcon(new javax.swing.ImageIcon(getClass().getResource("/picture/stop_f2.png"))); // NOI18N |
|
|
BtnHapus.setMnemonic('H'); |
|
|
BtnHapus.setToolTipText("Alt+H"); |
|
|
BtnHapus.setPreferredSize(new java.awt.Dimension(28, 23)); |
|
|
BtnHapus.addActionListener(new java.awt.event.ActionListener() { |
|
|
public void actionPerformed(java.awt.event.ActionEvent evt) { |
|
|
BtnHapusActionPerformed(evt); |
|
|
} |
|
|
}); |
|
|
BtnHapus.addKeyListener(new java.awt.event.KeyAdapter() { |
|
|
public void keyPressed(java.awt.event.KeyEvent evt) { |
|
|
BtnHapusKeyPressed(evt); |
|
|
} |
|
|
}); |
|
|
panelisi3.add(BtnHapus); |
|
|
|
|
|
BtnHapus1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/picture/Cancel-2-16x16.png"))); // NOI18N |
|
|
BtnHapus1.setMnemonic('H'); |
|
|
BtnHapus1.setToolTipText("Alt+H"); |
|
|
BtnHapus1.setPreferredSize(new java.awt.Dimension(28, 23)); |
|
|
BtnHapus1.addActionListener(new java.awt.event.ActionListener() { |
|
|
public void actionPerformed(java.awt.event.ActionEvent evt) { |
|
|
BtnHapus1ActionPerformed(evt); |
|
|
} |
|
|
}); |
|
|
BtnHapus1.addKeyListener(new java.awt.event.KeyAdapter() { |
|
|
public void keyPressed(java.awt.event.KeyEvent evt) { |
|
|
BtnHapus1KeyPressed(evt); |
|
|
} |
|
|
}); |
|
|
panelisi3.add(BtnHapus1); |
|
|
|
|
|
BtnKeluar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/picture/exit.png"))); // NOI18N |
|
|
BtnKeluar.setMnemonic('4'); |
|
|
BtnKeluar.setToolTipText("Alt+4"); |
|
|
BtnKeluar.setPreferredSize(new java.awt.Dimension(28, 23)); |
|
|
BtnKeluar.addActionListener(new java.awt.event.ActionListener() { |
|
|
public void actionPerformed(java.awt.event.ActionEvent evt) { |
|
|
BtnKeluarActionPerformed(evt); |
|
|
} |
|
|
}); |
|
|
panelisi3.add(BtnKeluar); |
|
|
|
|
|
internalFrame2.add(panelisi3, java.awt.BorderLayout.PAGE_END); |
|
|
|
|
|
TabRawat.addTab("Data Pengaduan", internalFrame2); |
|
|
|
|
|
internalFrame3.setBackground(new java.awt.Color(235, 255, 235)); |
|
|
internalFrame3.setBorder(null); |
|
|
internalFrame3.setLayout(new java.awt.BorderLayout(1, 1)); |
|
|
|
|
|
LoadHTML1.setBorder(null); |
|
|
internalFrame3.add(LoadHTML1, java.awt.BorderLayout.CENTER); |
|
|
|
|
|
TabRawat.addTab("Ikutan Ngobrol", internalFrame3); |
|
|
|
|
|
internalFrame1.add(TabRawat, java.awt.BorderLayout.CENTER); |
|
|
|
|
|
getContentPane().add(internalFrame1, java.awt.BorderLayout.CENTER); |
|
|
|
|
|
pack(); |
|
|
}// </editor-fold>//GEN-END:initComponents |
|
|
|
|
|
private void TabRawatMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_TabRawatMouseClicked |
|
|
if(TabRawat.getSelectedIndex()==0){ |
|
|
// prosesCari(); |
|
|
}else if(TabRawat.getSelectedIndex()==1){ |
|
|
// prosesCari2(); |
|
|
} |
|
|
}//GEN-LAST:event_TabRawatMouseClicked |
|
|
|
|
|
private void tbKamarMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tbKamarMouseClicked |
|
|
|
|
|
}//GEN-LAST:event_tbKamarMouseClicked |
|
|
|
|
|
private void tbKamarKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_tbKamarKeyPressed |
|
|
|
|
|
}//GEN-LAST:event_tbKamarKeyPressed |
|
|
|
|
|
private void TCariKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_TCariKeyPressed |
|
|
|
|
|
}//GEN-LAST:event_TCariKeyPressed |
|
|
|
|
|
private void BtnCariActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtnCariActionPerformed |
|
|
|
|
|
}//GEN-LAST:event_BtnCariActionPerformed |
|
|
|
|
|
private void BtnCariKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_BtnCariKeyPressed |
|
|
|
|
|
}//GEN-LAST:event_BtnCariKeyPressed |
|
|
|
|
|
private void BtnAllActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtnAllActionPerformed |
|
|
|
|
|
}//GEN-LAST:event_BtnAllActionPerformed |
|
|
|
|
|
private void BtnAllKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_BtnAllKeyPressed |
|
|
|
|
|
}//GEN-LAST:event_BtnAllKeyPressed |
|
|
|
|
|
private void BtnKeluarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtnKeluarActionPerformed |
|
|
dispose(); |
|
|
}//GEN-LAST:event_BtnKeluarActionPerformed |
|
|
|
|
|
private void BtnHapusActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtnHapusActionPerformed |
|
|
|
|
|
}//GEN-LAST:event_BtnHapusActionPerformed |
|
|
|
|
|
private void BtnHapusKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_BtnHapusKeyPressed |
|
|
|
|
|
}//GEN-LAST:event_BtnHapusKeyPressed |
|
|
|
|
|
private void BtnHapus1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtnHapus1ActionPerformed |
|
|
// TODO add your handling code here: |
|
|
}//GEN-LAST:event_BtnHapus1ActionPerformed |
|
|
|
|
|
private void BtnHapus1KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_BtnHapus1KeyPressed |
|
|
// TODO add your handling code here: |
|
|
}//GEN-LAST:event_BtnHapus1KeyPressed |
|
|
|
|
|
/** |
|
|
* @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 (ClassNotFoundException ex) { |
|
|
java.util.logging.Logger.getLogger(frmPengaduan.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); |
|
|
} catch (InstantiationException ex) { |
|
|
java.util.logging.Logger.getLogger(frmPengaduan.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); |
|
|
} catch (IllegalAccessException ex) { |
|
|
java.util.logging.Logger.getLogger(frmPengaduan.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); |
|
|
} catch (javax.swing.UnsupportedLookAndFeelException ex) { |
|
|
java.util.logging.Logger.getLogger(frmPengaduan.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); |
|
|
} |
|
|
//</editor-fold> |
|
|
|
|
|
/* Create and display the form */ |
|
|
java.awt.EventQueue.invokeLater(new Runnable() { |
|
|
public void run() { |
|
|
new frmPengaduan().setVisible(true); |
|
|
} |
|
|
}); |
|
|
} |
|
|
|
|
|
// Variables declaration - do not modify//GEN-BEGIN:variables |
|
|
private widget.Button BtnAll; |
|
|
private widget.Button BtnCari; |
|
|
private widget.Button BtnHapus; |
|
|
private widget.Button BtnHapus1; |
|
|
private widget.Button BtnKeluar; |
|
|
private widget.Label LCount; |
|
|
private widget.editorpane LoadHTML1; |
|
|
private widget.ScrollPane Scroll; |
|
|
private widget.TextBox TCari; |
|
|
private javax.swing.JTabbedPane TabRawat; |
|
|
private widget.InternalFrame internalFrame1; |
|
|
private widget.InternalFrame internalFrame2; |
|
|
private widget.InternalFrame internalFrame3; |
|
|
private widget.Label label10; |
|
|
private widget.Label label9; |
|
|
private widget.panelisi panelisi3; |
|
|
private widget.Table tbKamar; |
|
|
// End of variables declaration//GEN-END:variables |
|
|
} |