PageRenderTime 102ms CodeModel.GetById 60ms app.highlight 5ms RepoModel.GetById 35ms app.codeStats 0ms

/src/mpv5/ui/panels/GeneralListPanel2.java

http://mp-rechnungs-und-kundenverwaltung.googlecode.com/
Java | 73 lines | 40 code | 11 blank | 22 comment | 0 complexity | d9ca58b7b85cc487d27a0e90c55d1d2e MD5 | raw file
 1/*
 2 * To change this template, choose Tools | Templates
 3 * and open the template in the editor.
 4 */
 5
 6/*
 7 * GeneralListPanel2.java
 8 *
 9 * Created on 28.11.2010, 21:03:22
10 */
11package mpv5.ui.panels;
12
13import mpv5.db.common.Context;
14import mpv5.utils.models.MPTableModel;
15
16/**
17 *
18 * @author anti
19 */
20public class GeneralListPanel2 extends javax.swing.JPanel {
21
22    /** Creates new form GeneralListPanel2 */
23    public GeneralListPanel2(Context c) {
24        initComponents();
25        jTable1.setModel(new MPTableModel(c, jTable1));
26    }
27
28    /** This method is called from within the constructor to
29     * initialize the form.
30     * WARNING: Do NOT modify this code. The content of this method is
31     * always regenerated by the Form Editor.
32     */
33    @SuppressWarnings("unchecked")
34    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
35    private void initComponents() {
36
37        jScrollPane1 = new javax.swing.JScrollPane();
38        jTable1 = new javax.swing.JTable();
39
40        setName("Form"); // NOI18N
41
42        jScrollPane1.setName("jScrollPane1"); // NOI18N
43
44        jTable1.setModel(new javax.swing.table.DefaultTableModel(
45            new Object [][] {
46                {},
47                {},
48                {},
49                {}
50            },
51            new String [] {
52
53            }
54        ));
55        jTable1.setName("jTable1"); // NOI18N
56        jScrollPane1.setViewportView(jTable1);
57
58        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
59        this.setLayout(layout);
60        layout.setHorizontalGroup(
61            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
62            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)
63        );
64        layout.setVerticalGroup(
65            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
66            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE)
67        );
68    }// </editor-fold>//GEN-END:initComponents
69    // Variables declaration - do not modify//GEN-BEGIN:variables
70    private javax.swing.JScrollPane jScrollPane1;
71    private javax.swing.JTable jTable1;
72    // End of variables declaration//GEN-END:variables
73}