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