12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- /*
- * 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 prfourgui.View;
-
- /**
- *
- * @author baumannan68085
- */
- public class AdressTable extends javax.swing.JPanel
- {
- /**
- * @return the jTable1
- */
- public javax.swing.JTable getTblAdressbuch()
- {
- return tblAdressbuch;
- }
-
- /**
- * @param tblAdressbuch the jTable1 to set
- */
- public void setTblAdressbuch(javax.swing.JTable tblAdressbuch)
- {
- this.tblAdressbuch = tblAdressbuch;
- }
-
- /**
- * Creates new form AdressTable
- */
- public AdressTable()
- {
- 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()
- {
-
- jPopupMenu1 = new javax.swing.JPopupMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jScrollPane1 = new javax.swing.JScrollPane();
- tblAdressbuch = new javax.swing.JTable();
-
- jMenuItem1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/prfourgui/Icons/Delete24.gif"))); // NOI18N
- jMenuItem1.setText("Remove");
- jPopupMenu1.add(jMenuItem1);
-
- setLayout(new javax.swing.BoxLayout(this, javax.swing.BoxLayout.LINE_AXIS));
-
- tblAdressbuch.setModel(new javax.swing.table.DefaultTableModel(
- new Object [][]
- {
- {null, null, null, null},
- {null, null, null, null},
- {null, null, null, null},
- {null, null, null, null}
- },
- new String []
- {
- "Name", "Telefon", "Mobil", "E-Mail"
- }
- ));
- tblAdressbuch.setComponentPopupMenu(jPopupMenu1);
- jScrollPane1.setViewportView(tblAdressbuch);
-
- add(jScrollPane1);
- }// </editor-fold>//GEN-END:initComponents
-
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPopupMenu jPopupMenu1;
- private javax.swing.JScrollPane jScrollPane1;
- private javax.swing.JTable tblAdressbuch;
- // End of variables declaration//GEN-END:variables
- }
|