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.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. * Creates new form AdressTable
  15. */
  16. public AdressTable()
  17. {
  18. initComponents();
  19. }
  20. /**
  21. * This method is called from within the constructor to initialize the form.
  22. * WARNING: Do NOT modify this code. The content of this method is always
  23. * regenerated by the Form Editor.
  24. */
  25. @SuppressWarnings("unchecked")
  26. // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  27. private void initComponents()
  28. {
  29. jPopupMenu1 = new javax.swing.JPopupMenu();
  30. jMenuItem1 = new javax.swing.JMenuItem();
  31. jScrollPane1 = new javax.swing.JScrollPane();
  32. jTable1 = new javax.swing.JTable();
  33. jMenuItem1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/prfourgui/Icons/Delete24.gif"))); // NOI18N
  34. jMenuItem1.setText("Remove");
  35. jPopupMenu1.add(jMenuItem1);
  36. setLayout(new javax.swing.BoxLayout(this, javax.swing.BoxLayout.LINE_AXIS));
  37. jTable1.setModel(new javax.swing.table.DefaultTableModel(
  38. new Object [][]
  39. {
  40. {null, null, null, null},
  41. {null, null, null, null},
  42. {null, null, null, null},
  43. {null, null, null, null}
  44. },
  45. new String []
  46. {
  47. "Name", "Telefon", "Mobil", "E-Mail"
  48. }
  49. ));
  50. jTable1.setComponentPopupMenu(jPopupMenu1);
  51. jScrollPane1.setViewportView(jTable1);
  52. add(jScrollPane1);
  53. }// </editor-fold>//GEN-END:initComponents
  54. // Variables declaration - do not modify//GEN-BEGIN:variables
  55. private javax.swing.JMenuItem jMenuItem1;
  56. private javax.swing.JPopupMenu jPopupMenu1;
  57. private javax.swing.JScrollPane jScrollPane1;
  58. private javax.swing.JTable jTable1;
  59. // End of variables declaration//GEN-END:variables
  60. }