Example #1
0
 public BobotNilai(HomePage _homePage, String _namaTabel) {
   this();
   this.homePage = _homePage;
   this.namaTabel = _namaTabel;
   model = new ModelBobotNilai();
   IDlogauditLabel.setVisible(false);
   IDlogauditField.setVisible(false);
   KodePT = homePage.dapatkanKodePT();
   inisialisasiData();
   initAutoComplete();
   // disable all button
   buttonBaru.setEnabled(false);
   buttonInsert.setEnabled(false);
   buttonUpdate.setEnabled(false);
   buttonDelete.setEnabled(false);
   kodebobotnilaiField.setVisible(false);
   kodebobotnilaiLabel.setVisible(false);
   IDlogauditLabel.setVisible(false);
   IDlogauditField.setVisible(false);
 }
Example #2
0
  public ReferensiAgama(HomePage _homePage, String _namaTabel) {
    this();
    this.homePage = _homePage;
    this.namaTabel = _namaTabel;

    IDlogauditLabel.setVisible(false);
    IDlogauditField.setVisible(false);

    inisialisasiData();
    initAutoComplete();
  }
Example #3
0
 public MasterPustaka(HomePage _homePage, String _namaTabel) {
   this();
   this.homePage = _homePage;
   this.namaTabel = _namaTabel;
   model = new ModelMasterPustaka();
   IDlogauditLabel.setVisible(false);
   IDlogauditField.setVisible(false);
   kodept = homePage.dapatkanKodePT();
   inisialisasiData();
   initAutoComplete();
   buttonBaru.setEnabled(false);
   buttonInsert.setEnabled(false);
   buttonDelete.setEnabled(false);
   buttonUpdate.setEnabled(false);
 }
Example #4
0
  /**
   * 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() {

    jSplitPane2 = new javax.swing.JSplitPane();
    gulungPanelAtribut = new javax.swing.JScrollPane();
    panelAtribut = new javax.swing.JPanel();
    panelLabel = new javax.swing.JPanel();
    kodebobotnilaiLabel = new javax.swing.JLabel();
    kodeperguruantinggiLabel = new javax.swing.JLabel();
    kodeProgramStudiLabel = new javax.swing.JLabel();
    kodejenjangstudiLabel = new javax.swing.JLabel();
    tahunpelaporanLabel = new javax.swing.JLabel();
    semesterpelaporanLabel = new javax.swing.JLabel();
    bobotnilaiminLabel = new javax.swing.JLabel();
    bobotnilaimaxLabel = new javax.swing.JLabel();
    nilaiLabel = new javax.swing.JLabel();
    tglmulaiefektifLabel = new javax.swing.JLabel();
    tglakhirefektifLabel = new javax.swing.JLabel();
    IDlogauditLabel = new javax.swing.JLabel();
    panelTextField = new javax.swing.JPanel();
    kodebobotnilaiField = new javax.swing.JFormattedTextField();
    kodeperguruantinggiField = new javax.swing.JFormattedTextField();
    kodeprogramstudiField = new javax.swing.JComboBox();
    kodejenjangstudiField = new javax.swing.JComboBox();
    tahunpelaporanField = new javax.swing.JFormattedTextField();
    semesterpelaporanField = new javax.swing.JFormattedTextField();
    bobotnilaiminField = new javax.swing.JFormattedTextField();
    bobotnilaimaxField = new javax.swing.JFormattedTextField();
    nilaiField = new javax.swing.JTextField();
    tglmulaiefektifField = new com.toedter.calendar.JDateChooser();
    tglakhirefektifField = new com.toedter.calendar.JDateChooser();
    IDlogauditField = new javax.swing.JFormattedTextField();
    gulungTabel = new javax.swing.JScrollPane();
    tabel = new javax.swing.JTable();
    panelKontrol = new javax.swing.JPanel();
    jSplitPane1 = new javax.swing.JSplitPane();
    panelKontrolSIUD = new javax.swing.JPanel();
    buttonBaru = new Widget.Button();
    buttonInsert = new Widget.Button();
    buttonUpdate = new Widget.Button();
    buttonDelete = new Widget.Button();
    panelKontrolNavigasiRecord = new javax.swing.JPanel();
    buttonFirst = new Widget.Button();
    buttonPrev = new Widget.Button();
    buttonNext = new Widget.Button();
    buttonLast = new Widget.Button();

    setOpaque(false);
    setLayout(new java.awt.BorderLayout());

    jSplitPane2.setDividerLocation(700);
    jSplitPane2.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));

    panelAtribut.setLayout(new java.awt.BorderLayout());

    panelLabel.setLayout(new java.awt.GridLayout(12, 0));

    kodebobotnilaiLabel.setText("Kode Bobot Nilai:");
    panelLabel.add(kodebobotnilaiLabel);

    kodeperguruantinggiLabel.setText("Kode Perguruan Tinggi:");
    panelLabel.add(kodeperguruantinggiLabel);

    kodeProgramStudiLabel.setText("Kode Program Studi:");
    panelLabel.add(kodeProgramStudiLabel);

    kodejenjangstudiLabel.setText("Kode Jenjang Studi:");
    panelLabel.add(kodejenjangstudiLabel);

    tahunpelaporanLabel.setText("Tahun Pelaporan:");
    panelLabel.add(tahunpelaporanLabel);

    semesterpelaporanLabel.setText("Semester Pelaporan:");
    panelLabel.add(semesterpelaporanLabel);

    bobotnilaiminLabel.setText("Bobot Nilai Min:");
    panelLabel.add(bobotnilaiminLabel);

    bobotnilaimaxLabel.setText("Bobot Nilai Max:");
    panelLabel.add(bobotnilaimaxLabel);

    nilaiLabel.setText("Nilai:");
    panelLabel.add(nilaiLabel);

    tglmulaiefektifLabel.setText("Tgl Mulai Efektif:");
    panelLabel.add(tglmulaiefektifLabel);

    tglakhirefektifLabel.setText("Tgl Akhir Efektif:");
    panelLabel.add(tglakhirefektifLabel);

    IDlogauditLabel.setText("ID Log Audit:");
    panelLabel.add(IDlogauditLabel);

    panelAtribut.add(panelLabel, java.awt.BorderLayout.WEST);

    panelTextField.setLayout(new java.awt.GridLayout(12, 0));

    kodebobotnilaiField.setFormatterFactory(
        new javax.swing.text.DefaultFormatterFactory(
            new javax.swing.text.NumberFormatter(new java.text.DecimalFormat("#"))));
    panelTextField.add(kodebobotnilaiField);

    try {
      kodeperguruantinggiField.setFormatterFactory(
          new javax.swing.text.DefaultFormatterFactory(
              new javax.swing.text.MaskFormatter("######")));
    } catch (java.text.ParseException ex) {
      ex.printStackTrace();
    }
    panelTextField.add(kodeperguruantinggiField);

    panelTextField.add(kodeprogramstudiField);

    panelTextField.add(kodejenjangstudiField);

    try {
      tahunpelaporanField.setFormatterFactory(
          new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter("####")));
    } catch (java.text.ParseException ex) {
      ex.printStackTrace();
    }
    panelTextField.add(tahunpelaporanField);

    try {
      semesterpelaporanField.setFormatterFactory(
          new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter("#")));
    } catch (java.text.ParseException ex) {
      ex.printStackTrace();
    }
    panelTextField.add(semesterpelaporanField);

    try {
      bobotnilaiminField.setFormatterFactory(
          new javax.swing.text.DefaultFormatterFactory(
              new javax.swing.text.MaskFormatter("##.##")));
    } catch (java.text.ParseException ex) {
      ex.printStackTrace();
    }
    panelTextField.add(bobotnilaiminField);

    try {
      bobotnilaimaxField.setFormatterFactory(
          new javax.swing.text.DefaultFormatterFactory(
              new javax.swing.text.MaskFormatter("###.##")));
    } catch (java.text.ParseException ex) {
      ex.printStackTrace();
    }
    panelTextField.add(bobotnilaimaxField);
    panelTextField.add(nilaiField);
    panelTextField.add(tglmulaiefektifField);
    panelTextField.add(tglakhirefektifField);

    IDlogauditField.setFormatterFactory(
        new javax.swing.text.DefaultFormatterFactory(
            new javax.swing.text.NumberFormatter(new java.text.DecimalFormat("#"))));
    panelTextField.add(IDlogauditField);

    panelAtribut.add(panelTextField, java.awt.BorderLayout.CENTER);

    gulungPanelAtribut.setViewportView(panelAtribut);

    jSplitPane2.setLeftComponent(gulungPanelAtribut);
    gulungPanelAtribut.getAccessibleContext().setAccessibleParent(jSplitPane2);

    gulungTabel.setHorizontalScrollBarPolicy(
        javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);
    gulungTabel.setVerticalScrollBarPolicy(
        javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
    gulungTabel.setOpaque(false);

    tabel.setModel(new javax.swing.table.DefaultTableModel(new Object[][] {}, new String[] {}));

    tabel.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);
    tabel.setEnabled(false);
    gulungTabel.setViewportView(tabel);

    jSplitPane2.setRightComponent(gulungTabel);

    add(jSplitPane2, java.awt.BorderLayout.CENTER);

    panelKontrol.setOpaque(false);
    panelKontrol.setLayout(new java.awt.GridLayout(1, 1));

    jSplitPane1.setDividerLocation(700);

    panelKontrolSIUD.setLayout(new java.awt.GridLayout(1, 4));

    buttonBaru.setIcon(
        new javax.swing.ImageIcon(getClass().getResource("/image/Empty-Page-64.png"))); // NOI18N
    buttonBaru.setText("Baru");
    buttonBaru.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            buttonBaruActionPerformed(evt);
          }
        });
    panelKontrolSIUD.add(buttonBaru);

    buttonInsert.setIcon(
        new javax.swing.ImageIcon(
            getClass().getResource("/image/Insert documents-64.png"))); // NOI18N
    buttonInsert.setText("Tambah");
    buttonInsert.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            buttonInsertActionPerformed(evt);
          }
        });
    panelKontrolSIUD.add(buttonInsert);

    buttonUpdate.setIcon(
        new javax.swing.ImageIcon(
            getClass().getResource("/image/Update Document-64.png"))); // NOI18N
    buttonUpdate.setText("Perbarui");
    buttonUpdate.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            buttonUpdateActionPerformed(evt);
          }
        });
    panelKontrolSIUD.add(buttonUpdate);

    buttonDelete.setIcon(
        new javax.swing.ImageIcon(
            getClass().getResource("/image/Delete Document Grey-64.png"))); // NOI18N
    buttonDelete.setText("Hapus");
    buttonDelete.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            buttonDeleteActionPerformed(evt);
          }
        });
    panelKontrolSIUD.add(buttonDelete);

    jSplitPane1.setLeftComponent(panelKontrolSIUD);

    panelKontrolNavigasiRecord.setLayout(new java.awt.GridLayout(1, 4));

    buttonFirst.setIcon(
        new javax.swing.ImageIcon(getClass().getResource("/image/First64.png"))); // NOI18N
    buttonFirst.setText("Awal");
    buttonFirst.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            buttonFirstActionPerformed(evt);
          }
        });
    panelKontrolNavigasiRecord.add(buttonFirst);

    buttonPrev.setIcon(
        new javax.swing.ImageIcon(getClass().getResource("/image/prev_mini.png"))); // NOI18N
    buttonPrev.setText("Sebelumnya");
    buttonPrev.setIconTextGap(0);
    buttonPrev.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            buttonPrevActionPerformed(evt);
          }
        });
    panelKontrolNavigasiRecord.add(buttonPrev);

    buttonNext.setIcon(
        new javax.swing.ImageIcon(getClass().getResource("/image/next_mini.png"))); // NOI18N
    buttonNext.setText("Berikutnya");
    buttonNext.setIconTextGap(0);
    buttonNext.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            buttonNextActionPerformed(evt);
          }
        });
    panelKontrolNavigasiRecord.add(buttonNext);

    buttonLast.setIcon(
        new javax.swing.ImageIcon(getClass().getResource("/image/Last64.png"))); // NOI18N
    buttonLast.setText("Akhir");
    buttonLast.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            buttonLastActionPerformed(evt);
          }
        });
    panelKontrolNavigasiRecord.add(buttonLast);

    jSplitPane1.setRightComponent(panelKontrolNavigasiRecord);

    panelKontrol.add(jSplitPane1);

    add(panelKontrol, java.awt.BorderLayout.SOUTH);
  } // </editor-fold>//GEN-END:initComponents
Example #5
0
  /**
   * 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() {

    jSplitPane2 = new javax.swing.JSplitPane();
    gulungPanelAtribut = new javax.swing.JScrollPane();
    panelAtribut = new javax.swing.JPanel();
    panelLabel = new javax.swing.JPanel();
    kodeagamaLabel = new javax.swing.JLabel();
    namaagamaLabel = new javax.swing.JLabel();
    IDlogauditLabel = new javax.swing.JLabel();
    panelTextField = new javax.swing.JPanel();
    kodeagamaField = new javax.swing.JComboBox();
    namaagamaField = new javax.swing.JTextField();
    IDlogauditField = new javax.swing.JFormattedTextField();
    gulungTabel = new javax.swing.JScrollPane();
    tabel = new javax.swing.JTable();
    panelKontrol = new javax.swing.JPanel();
    jSplitPane1 = new javax.swing.JSplitPane();
    panelKontrolSIUD = new javax.swing.JPanel();
    buttonBaru = new Widget.Button();
    buttonInsert = new Widget.Button();
    buttonUpdate = new Widget.Button();
    buttonDelete = new Widget.Button();
    panelKontrolNavigasiRecord = new javax.swing.JPanel();
    buttonFirst = new Widget.Button();
    buttonPrev = new Widget.Button();
    buttonNext = new Widget.Button();
    buttonLast = new Widget.Button();

    setOpaque(false);
    setLayout(new java.awt.BorderLayout());

    jSplitPane2.setDividerLocation(700);
    jSplitPane2.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));

    panelAtribut.setLayout(new java.awt.BorderLayout());

    panelLabel.setLayout(new java.awt.GridLayout(9, 0));

    kodeagamaLabel.setText("Kode Agama:");
    panelLabel.add(kodeagamaLabel);

    namaagamaLabel.setText("Nama Agama:");
    panelLabel.add(namaagamaLabel);

    IDlogauditLabel.setText("ID Log Audit:");
    panelLabel.add(IDlogauditLabel);

    panelAtribut.add(panelLabel, java.awt.BorderLayout.WEST);

    panelTextField.setLayout(new java.awt.GridLayout(9, 0));

    panelTextField.add(kodeagamaField);
    panelTextField.add(namaagamaField);

    IDlogauditField.setFormatterFactory(
        new javax.swing.text.DefaultFormatterFactory(
            new javax.swing.text.NumberFormatter(new java.text.DecimalFormat("#"))));
    panelTextField.add(IDlogauditField);

    panelAtribut.add(panelTextField, java.awt.BorderLayout.CENTER);

    gulungPanelAtribut.setViewportView(panelAtribut);

    jSplitPane2.setLeftComponent(gulungPanelAtribut);
    gulungPanelAtribut.getAccessibleContext().setAccessibleParent(jSplitPane2);

    gulungTabel.setHorizontalScrollBarPolicy(
        javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);
    gulungTabel.setVerticalScrollBarPolicy(
        javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
    gulungTabel.setOpaque(false);

    tabel.setModel(new javax.swing.table.DefaultTableModel(new Object[][] {}, new String[] {}));

    tabel.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);
    tabel.setEnabled(false);
    gulungTabel.setViewportView(tabel);

    jSplitPane2.setRightComponent(gulungTabel);

    add(jSplitPane2, java.awt.BorderLayout.CENTER);

    panelKontrol.setOpaque(false);
    panelKontrol.setLayout(new java.awt.GridLayout(1, 1));

    jSplitPane1.setDividerLocation(700);

    panelKontrolSIUD.setLayout(new java.awt.GridLayout(1, 4));

    buttonBaru.setIcon(
        new javax.swing.ImageIcon(getClass().getResource("/image/Empty-Page-64.png"))); // NOI18N
    buttonBaru.setText("Baru");
    buttonBaru.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            buttonBaruActionPerformed(evt);
          }
        });
    panelKontrolSIUD.add(buttonBaru);

    buttonInsert.setIcon(
        new javax.swing.ImageIcon(
            getClass().getResource("/image/Insert documents-64.png"))); // NOI18N
    buttonInsert.setText("Tambah");
    buttonInsert.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            buttonInsertActionPerformed(evt);
          }
        });
    panelKontrolSIUD.add(buttonInsert);

    buttonUpdate.setIcon(
        new javax.swing.ImageIcon(
            getClass().getResource("/image/Update Document-64.png"))); // NOI18N
    buttonUpdate.setText("Perbarui");
    buttonUpdate.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            buttonUpdateActionPerformed(evt);
          }
        });
    panelKontrolSIUD.add(buttonUpdate);

    buttonDelete.setIcon(
        new javax.swing.ImageIcon(
            getClass().getResource("/image/Delete Document Grey-64.png"))); // NOI18N
    buttonDelete.setText("Hapus");
    buttonDelete.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            buttonDeleteActionPerformed(evt);
          }
        });
    panelKontrolSIUD.add(buttonDelete);

    jSplitPane1.setLeftComponent(panelKontrolSIUD);

    panelKontrolNavigasiRecord.setLayout(new java.awt.GridLayout(1, 4));

    buttonFirst.setIcon(
        new javax.swing.ImageIcon(getClass().getResource("/image/First64.png"))); // NOI18N
    buttonFirst.setText("Awal");
    buttonFirst.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            buttonFirstActionPerformed(evt);
          }
        });
    panelKontrolNavigasiRecord.add(buttonFirst);

    buttonPrev.setIcon(
        new javax.swing.ImageIcon(getClass().getResource("/image/prev_mini.png"))); // NOI18N
    buttonPrev.setText("Sebelumnya");
    buttonPrev.setIconTextGap(0);
    buttonPrev.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            buttonPrevActionPerformed(evt);
          }
        });
    panelKontrolNavigasiRecord.add(buttonPrev);

    buttonNext.setIcon(
        new javax.swing.ImageIcon(getClass().getResource("/image/next_mini.png"))); // NOI18N
    buttonNext.setText("Berikutnya");
    buttonNext.setIconTextGap(0);
    buttonNext.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            buttonNextActionPerformed(evt);
          }
        });
    panelKontrolNavigasiRecord.add(buttonNext);

    buttonLast.setIcon(
        new javax.swing.ImageIcon(getClass().getResource("/image/Last64.png"))); // NOI18N
    buttonLast.setText("Akhir");
    buttonLast.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            buttonLastActionPerformed(evt);
          }
        });
    panelKontrolNavigasiRecord.add(buttonLast);

    jSplitPane1.setRightComponent(panelKontrolNavigasiRecord);

    panelKontrol.add(jSplitPane1);

    add(panelKontrol, java.awt.BorderLayout.SOUTH);
  } // </editor-fold>//GEN-END:initComponents