You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

AdressTable.java 2.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package prfourgui.View;
  7. /**
  8. *
  9. * @author baumannan68085
  10. */
  11. public class AdressTable extends javax.swing.JPanel
  12. {
  13. /**
  14. * @return the jTable1
  15. */
  16. public javax.swing.JTable getTblAdressbuch()
  17. {
  18. return tblAdressbuch;
  19. }
  20. /**
  21. * @param tblAdressbuch the jTable1 to set
  22. */
  23. public void setTblAdressbuch(javax.swing.JTable tblAdressbuch)
  24. {
  25. this.tblAdressbuch = tblAdressbuch;
  26. }
  27. /**
  28. * Creates new form AdressTable
  29. */
  30. public AdressTable()
  31. {
  32. initComponents();
  33. }
  34. /**
  35. * This method is called from within the constructor to initialize the form.
  36. * WARNING: Do NOT modify this code. The content of this method is always
  37. * regenerated by the Form Editor.
  38. */
  39. @SuppressWarnings("unchecked")
  40. // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  41. private void initComponents()
  42. {
  43. jPopupMenu1 = new javax.swing.JPopupMenu();
  44. jMenuItem1 = new javax.swing.JMenuItem();
  45. jScrollPane1 = new javax.swing.JScrollPane();
  46. tblAdressbuch = new javax.swing.JTable();
  47. jMenuItem1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/prfourgui/Icons/Delete24.gif"))); // NOI18N
  48. jMenuItem1.setText("Remove");
  49. jPopupMenu1.add(jMenuItem1);
  50. setLayout(new javax.swing.BoxLayout(this, javax.swing.BoxLayout.LINE_AXIS));
  51. tblAdressbuch.setModel(new javax.swing.table.DefaultTableModel(
  52. new Object [][]
  53. {
  54. {null, null, null, null},
  55. {null, null, null, null},
  56. {null, null, null, null},
  57. {null, null, null, null}
  58. },
  59. new String []
  60. {
  61. "Name", "Telefon", "Mobil", "E-Mail"
  62. }
  63. ));
  64. tblAdressbuch.setComponentPopupMenu(jPopupMenu1);
  65. jScrollPane1.setViewportView(tblAdressbuch);
  66. add(jScrollPane1);
  67. }// </editor-fold>//GEN-END:initComponents
  68. // Variables declaration - do not modify//GEN-BEGIN:variables
  69. private javax.swing.JMenuItem jMenuItem1;
  70. private javax.swing.JPopupMenu jPopupMenu1;
  71. private javax.swing.JScrollPane jScrollPane1;
  72. private javax.swing.JTable tblAdressbuch;
  73. // End of variables declaration//GEN-END:variables
  74. }