1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- /*
- * 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() {
-
- popupMenu = new javax.swing.JPopupMenu();
- deleteItem = new javax.swing.JMenuItem();
- jScrollPane1 = new javax.swing.JScrollPane();
- tblAdressbuch = new javax.swing.JTable();
-
- deleteItem.setIcon(new javax.swing.ImageIcon(getClass().getResource("/prfourgui/Icons/Delete24.gif"))); // NOI18N
- deleteItem.setText("Remove");
- popupMenu.add(deleteItem);
-
- 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(popupMenu);
- jScrollPane1.setViewportView(tblAdressbuch);
-
- add(jScrollPane1);
- }// </editor-fold>//GEN-END:initComponents
-
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JMenuItem deleteItem;
- private javax.swing.JScrollPane jScrollPane1;
- private javax.swing.JPopupMenu popupMenu;
- private javax.swing.JTable tblAdressbuch;
- // End of variables declaration//GEN-END:variables
-
- /**
- * @return the deleteItem
- */
- public javax.swing.JMenuItem getDeleteItem() {
- return deleteItem;
- }
- }
|