12 Replies - 298 Views - Last Post: 02 December 2012 - 01:22 PM Rate Topic: -----

#1 MetMe  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 02-December 12

Guys, I have a problem, do not banned me again.

Posted 02 December 2012 - 08:55 AM

Please guys, it is very near. I almost finish my program so please do not kick me away any mores ok? I will try to behave ok? Forgive my last sins ok? I thought I was posting correctly ok? I am Tawi

Here is my problem.

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package prgtesisserver;
import javax.swing.*;
import java.awt.*;
import java.sql.*;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
 *
 * @author Tawi
 */
public class ProgramTesisBaru extends JFrame{
    Container konten = getContentPane();
    private JLabel lblNama = new JLabel("Nama : ");
    private JTextField txtNama = new JTextField();
    private JLabel kataSandi = new JLabel("Kata Sandi : ");
    private JPasswordField sandiKata = new JPasswordField();
    private JButton masuk = new JButton("Masuk");
    private JButton keluar = new JButton("Keluar");
    JTextField[][] alternatifSakit = new JTextField[8][5];
    JTextField[][] kriteriaSakit = new JTextField[2][4];
    JLabel[][] tandaKriteria = new JLabel[2][4];
    JTextArea info = new JTextArea(100,80);
    private JLabel[][] tandaAlternatif = new JLabel[8][5];
    int i;
    JButton tombolHubungkankePadukData = new JButton("Hubungkan ke Paduk Data");
    JButton putuskanKoneksiKePadukData = new JButton("Putuskan Koneksi ke Paduk Data");
    JButton tombolUbahPadukData = new JButton("Ubah Paduk Data");
    JButton tombolBatal = new JButton("Batal");
    JButton lanjut = new JButton("Lanjut");
    JComboBox jcboURL = new JComboBox (new String[] {"jdbc:odbc:DatabaseKlinik"});
    JComboBox jcboDriver = new JComboBox (new String[] {"sun.jdbc.odbc.JdbcOdbcDriver"});
    private Connection connection;
    private Statement statement;
    JLabel statusKoneksi = new JLabel("Tidak ada Koneksi ke Paduk Data");
    JLabel padukData = new JLabel("Paduk Data Belum Diubah");
    String namaPengguna1;
    String passwordPengguna1;
    JLabel myocardialInfarction = new JLabel("Myocardial Infarction");
    JLabel stroke = new JLabel("Stroke");
    JLabel kriteria = new JLabel("Kriteria");
    JLabel alternatif = new JLabel("Alternatif");
    JLabel kriteria1 = new JLabel("Kriteria");
    JLabel alternatif1 = new JLabel("Alternatif");

public ProgramTesisBaru()
{
   
setTitle("Program Pemilihan Obat dengan Cara Analytic Hierarchycal Process");
setSize(1024,768);
setVisible(true);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setLocationRelativeTo(null);

konten.setLayout(null);

lblNama.setBounds(0,10,100,25);
konten.add(lblNama);
txtNama.setBounds(130,10,200,25);
konten.add(txtNama);
kataSandi.setBounds(330,10,100,25);
konten.add(kataSandi);
sandiKata.setBounds(410,10,200,25);
konten.add(sandiKata);
masuk.setBounds(600,10,100,25);
konten.add(masuk);
keluar.setBounds(700,10,100,25);
konten.add(keluar);
tombolHubungkankePadukData.setBounds(0,50,250,25);
konten.add(tombolHubungkankePadukData);
putuskanKoneksiKePadukData.setBounds(250,50,250,25);
konten.add(putuskanKoneksiKePadukData);
tombolUbahPadukData.setBounds(480,50,250,25);
konten.add(tombolUbahPadukData);
tombolBatal.setBounds(730,50,250,25);
konten.add(tombolBatal);
statusKoneksi.setBounds(800,10,200,25);
konten.add(statusKoneksi);
padukData.setBounds(0,70,200,25);
myocardialInfarction.setBounds(0,120,200,25);
konten.add(myocardialInfarction);
konten.add(padukData);
kriteria.setBounds(0,160,100,25);
konten.add(kriteria);
alternatif.setBounds(160,160,200,25);
konten.add(alternatif);
tombolHubungkankePadukData.setEnabled(false);
tombolBatal.setEnabled(false);
tombolUbahPadukData.setEnabled(false);
putuskanKoneksiKePadukData.setEnabled(false);
info.setEditable(false);
putuskanKoneksiKePadukData.addActionListener(new java.awt.event.ActionListener() {
            @Override
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                try {
                    putuskan();
                } catch (SQLException ex) {
                    Logger.getLogger(ProgramTesisBaru.class.getName()).log(Level.SEVERE, null, ex);
                }
            }

            private void putuskan() throws SQLException {
                if (connection == null)
                {
                    statusKoneksi.setText("Tidak ada Koneksi ke Paduk Data");
                }
                else 
                {
                    connection.close();
                    statusKoneksi.setText("Tidak ada Koneksi ke Paduk Data");
                }
            }
        });
masuk.addActionListener(new java.awt.event.ActionListener() {
            private Object rowSet;
            private String loginName;
            private String loginPassword;
            private String usrname;
            private String psswrd;
            private String passwrd;
            @Override
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                try {
                    masuk();
                } 
                catch (SQLException ex) {
                    Logger.getLogger(NewClass.class.getName()).log(Level.SEVERE, null, ex);
                }
            }

            private void masuk() throws SQLException {
                  usrname = txtNama.getText().trim();
                  psswrd = new String(sandiKata.getPassword());
                  loginName = "select Nama_Dokter from tblDokterNaraSumber where Nama_Dokter = '"+usrname+"'";
                  loginPassword = "select Password from tblDokterNaraSumber where Nama_Dokter = '"+usrname+"'";
                  String driver = (String)jcboDriver.getSelectedItem();
                  String uniRL =(String)jcboURL.getSelectedItem();
                  if (connection == null)
                  {
                      connectToDB();
                      entryPrg();
                  }
                  else {
                      entryPrg();
                  }

                throw new UnsupportedOperationException("Not yet implemented");
            }

            private void connectToDB() {
                String driver = (String)jcboDriver.getSelectedItem();
                String uniRL =(String)jcboURL.getSelectedItem();
                //URL uniRL = (URL)jcboURL.getSelectedItem();
                usrname = txtNama.getText().trim();
                passwrd = new String(sandiKata.getPassword());
                try {
                    Class.forName(driver);
                    connection = DriverManager.getConnection(uniRL, usrname, passwrd);
                    //rowSet.setURL(uniRL);
                    statusKoneksi.setText("Terhubung ke Paduk Data");
                }
                catch (java.lang.Exception ex) {
                    statusKoneksi.setText("Gagal Terhubung ke Paduk Data");
                }
                throw new UnsupportedOperationException("Not yet implemented");
            }

            private void entryPrg() throws SQLException {
                      ResultSet logName = statement.executeQuery(loginName);
                      ResultSet logPassword = statement.executeQuery(loginPassword);
                      while (logName.next()) {
                           namaPengguna1 = logName.getString("Nama_Dokter");
                      }
                      while (logPassword.next()) {
                           passwordPengguna1 = logPassword.getString("Password");
                      }
                    if ((!"".equals(usrname)) && (!"".equals(psswrd)))
                      {
                         if ((!"".equals(namaPengguna1)) && (!"".equals(passwordPengguna1))) 
                            {
                               tombolHubungkankePadukData.setEnabled(true);
                               putuskanKoneksiKePadukData.setEnabled(true);
                               tombolUbahPadukData.setEnabled(true);
                               tombolBatal.setEnabled(true);
                               keluar.setEnabled(true);
                               putuskanKoneksiKePadukData.setEnabled(true);
                               connection.close();
                            }
                         else if ((!"".equals(namaPengguna1)))
                            {
                               tombolHubungkankePadukData.setEnabled(false);
                               putuskanKoneksiKePadukData.setEnabled(false);
                               tombolUbahPadukData.setEnabled(false);
                               tombolBatal.setEnabled(false);
                               keluar.setEnabled(false);
                               putuskanKoneksiKePadukData.setEnabled(false);
                               JOptionPane.showMessageDialog(null, "Kata Kunci tidak Benar", "Dokter atau Kata Sandi tidak Ada", JOptionPane.INFORMATION_MESSAGE);
                               connection.close();        
                           }
                        else if (passwordPengguna1 != null)
                           {
                               tombolHubungkankePadukData.setEnabled(false);
                               putuskanKoneksiKePadukData.setEnabled(false);
                               tombolUbahPadukData.setEnabled(false);
                               tombolBatal.setEnabled(false);
                               keluar.setEnabled(false);
                               putuskanKoneksiKePadukData.setEnabled(false);
                               JOptionPane.showMessageDialog(null, "Dokter tidak Dikenal", "Dokter atau Kata Sandi tidak Ada", JOptionPane.INFORMATION_MESSAGE);
                               connection.close();   
                           }
    }
    else if (!"".equals(usrname))
    {
        if (("".equals(namaPengguna1)) && ("".equals(passwordPengguna1))) 
        {
        JOptionPane.showMessageDialog(null, "Kata Sandi Belum Dimasukkan", "Dokter atau Kata Sandi tidak Ada", JOptionPane.INFORMATION_MESSAGE);
          tombolHubungkankePadukData.setEnabled(false);
          putuskanKoneksiKePadukData.setEnabled(false);
          tombolUbahPadukData.setEnabled(false);
          tombolBatal.setEnabled(false);
          keluar.setEnabled(false);
          putuskanKoneksiKePadukData.setEnabled(false);
          connection.close();
        }
        else if (("".equals(namaPengguna1)))
        {
          tombolHubungkankePadukData.setEnabled(false);
          putuskanKoneksiKePadukData.setEnabled(false);
          tombolUbahPadukData.setEnabled(false);
          tombolBatal.setEnabled(false);
          keluar.setEnabled(false);
          putuskanKoneksiKePadukData.setEnabled(false);
          JOptionPane.showMessageDialog(null, "Kata Sandi Belum Dimasukkan", "Dokter atau Kata Sandi tidak Ada", JOptionPane.INFORMATION_MESSAGE);
          connection.close();        
        }
      else if (passwordPengguna1 == null)
      {
        tombolHubungkankePadukData.setEnabled(false);
        putuskanKoneksiKePadukData.setEnabled(false);
        tombolUbahPadukData.setEnabled(false);
        tombolBatal.setEnabled(false);
        keluar.setEnabled(false);
        putuskanKoneksiKePadukData.setEnabled(false);
        JOptionPane.showMessageDialog(null, "Kata Sandi Belum Dimasukkan", "Dokter atau Kata Sandi tidak Ada", JOptionPane.INFORMATION_MESSAGE);
        connection.close();   
      }
    }
    else if (!"".equals(psswrd))
    {
        if (("".equals(namaPengguna1)) && ("".equals(passwordPengguna1))) 
      {
        JOptionPane.showMessageDialog(null, "Nama Dokter Belum Dimasukkan", "Dokter atau Kata Sandi tidak Ada", JOptionPane.INFORMATION_MESSAGE);
        tombolHubungkankePadukData.setEnabled(false);
        putuskanKoneksiKePadukData.setEnabled(false);
        tombolUbahPadukData.setEnabled(false);
        tombolBatal.setEnabled(false);
        keluar.setEnabled(false);
        putuskanKoneksiKePadukData.setEnabled(false);
        connection.close();
      }
      else if (("".equals(namaPengguna1)))
      {
        tombolHubungkankePadukData.setEnabled(false);
        putuskanKoneksiKePadukData.setEnabled(false);
        tombolUbahPadukData.setEnabled(false);
        tombolBatal.setEnabled(false);
        keluar.setEnabled(false);
        putuskanKoneksiKePadukData.setEnabled(false);
        JOptionPane.showMessageDialog(null, "Nama Dokter Belum Dimasukkan", "Dokter atau Kata Sandi tidak Ada", JOptionPane.INFORMATION_MESSAGE);
        connection.close();        
      }
      else if (passwordPengguna1 == null)
      {
        tombolHubungkankePadukData.setEnabled(false);
        putuskanKoneksiKePadukData.setEnabled(false);
        tombolUbahPadukData.setEnabled(false);
        tombolBatal.setEnabled(false);
        keluar.setEnabled(false);
        putuskanKoneksiKePadukData.setEnabled(false);
        JOptionPane.showMessageDialog(null, "Nama Dokter Belum Dimasukkan", "Dokter atau Kata Sandi tidak Ada", JOptionPane.INFORMATION_MESSAGE);
        connection.close();   
      }
    }
                throw new UnsupportedOperationException("Not yet implemented");
            }
        });

keluar.addActionListener(new java.awt.event.ActionListener() {
            @Override
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                keluar();
            }

            private void keluar() {
                System.exit(0);
            }
        });
tombolBatal.addActionListener(new java.awt.event.ActionListener() {
            @Override
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                batal();
            }

            private void batal() {
                for (int k = 0; k < 8; k++)
                   {
                      alternatifSakit[k][0].setText("");
                      alternatifSakit[k][1].setText("");
                      alternatifSakit[k][2].setText("");
                      alternatifSakit[k][3].setText("");
                      alternatifSakit[k][4].setText("");
                   }
                for (int l = 0; l < 2; l++)
                   {
                      kriteriaSakit[l][0].setText("");
                      kriteriaSakit[l][1].setText("");
                      kriteriaSakit[l][2].setText("");
                      kriteriaSakit[l][3].setText("");
                   }
                throw new UnsupportedOperationException("Not yet implemented");
            }
        });
tombolHubungkankePadukData.addActionListener(new java.awt.event.ActionListener() {
            @Override
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                connectToDB();
                throw new UnsupportedOperationException("Not yet implemented");
            }

            public void connectToDB() {
                String driver = (String)jcboDriver.getSelectedItem();
                String uniRL =(String)jcboURL.getSelectedItem();
                //URL uniRL = (URL)jcboURL.getSelectedItem();
                String usrname = txtNama.getText().trim();
                String passwrd = new String(sandiKata.getPassword());
                try {
                    Class.forName(driver);
                    connection = DriverManager.getConnection(uniRL, usrname, passwrd);
                    //rowSet.setURL(uniRL);
                    statusKoneksi.setText("Terhubung ke Paduk Data");
                }
                catch (java.lang.Exception ex) {
                    statusKoneksi.setText("Gagal Terhubung ke Paduk Data");
                }
                throw new UnsupportedOperationException("Not yet implemented");
            }
        });

for (i = 0; i < 8; i++)
         {
              tandaAlternatif[i][0] = new JLabel("Alternatif 1");
              tandaAlternatif[i][1] = new JLabel("Alternatif 2");
              tandaAlternatif[i][2] = new JLabel("Alternatif 3");
              tandaAlternatif[i][3] = new JLabel("Alternatif 4");
              tandaAlternatif[i][4] = new JLabel("Alternatif 5");
              alternatifSakit[i][0] = new JTextField(10);
              alternatifSakit[i][1] = new JTextField(10);
              alternatifSakit[i][2] = new JTextField(10);
              alternatifSakit[i][3] = new JTextField(10);
              alternatifSakit[i][4] = new JTextField(10);
         }
for (int j = 0; j < 2; j++)
{
              tandaKriteria[j][0] = new JLabel("Harga");
              tandaKriteria[j][1] = new JLabel("Efek Samping");
              tandaKriteria[j][2] = new JLabel("Kualitas");
              tandaKriteria[j][3] = new JLabel("Ketersediaan");
              kriteriaSakit[j][0] = new JTextField(10);
              kriteriaSakit[j][1] = new JTextField(10);
              kriteriaSakit[j][2] = new JTextField(10);
              kriteriaSakit[j][3] = new JTextField(10);
         }
for (int m = 0; m < 8; m++)
{
    alternatifSakit[m][0].setEditable(false);
    alternatifSakit[m][1].setEditable(false);
    alternatifSakit[m][2].setEditable(false);
    alternatifSakit[m][3].setEditable(false);
    alternatifSakit[m][4].setEditable(false);
}
for (int n = 0; n < 2; n++)
{
    kriteriaSakit[n][0].setEditable(false);
    kriteriaSakit[n][1].setEditable(false);
    kriteriaSakit[n][2].setEditable(false);
    kriteriaSakit[n][3].setEditable(false);
}
// Tanda Alternatif Harga Myocardial Infarction
tandaAlternatif[0][0].setBounds(160,200,100,25);
konten.add(tandaAlternatif[0][0]);
tandaAlternatif[0][1].setBounds(320,200,100,25);
konten.add(tandaAlternatif[0][1]);
tandaAlternatif[0][2].setBounds(480,200,100,25);
konten.add(tandaAlternatif[0][2]);
tandaAlternatif[0][3].setBounds(640,200,100,25);
konten.add(tandaAlternatif[0][3]);
tandaAlternatif[0][4].setBounds(800,200,100,25);
konten.add(tandaAlternatif[0][4]);
// Alternatif Sakit Harga Myocardial Infarction
alternatifSakit[0][0].setBounds(240,200,70,25);
konten.add(alternatifSakit[0][0]);
alternatifSakit[0][1].setBounds(400,200,70,25);
konten.add(alternatifSakit[0][1]);
alternatifSakit[0][2].setBounds(560,200,70,25);
konten.add(alternatifSakit[0][2]);
alternatifSakit[0][3].setBounds(720,200,70,25);
konten.add(alternatifSakit[0][3]);
alternatifSakit[0][4].setBounds(880,200,70,25);
konten.add(alternatifSakit[0][4]);
// Tanda Alternatif Efek Samping Myocardial Infarction
tandaAlternatif[1][0].setBounds(160,230,100,25);
konten.add(tandaAlternatif[1][0]);
tandaAlternatif[1][1].setBounds(320,230,100,25);
konten.add(tandaAlternatif[1][1]);
tandaAlternatif[1][2].setBounds(480,230,100,25);
konten.add(tandaAlternatif[1][2]);
tandaAlternatif[1][3].setBounds(640,230,100,25);
konten.add(tandaAlternatif[1][3]);
tandaAlternatif[1][4].setBounds(800,230,100,25);
konten.add(tandaAlternatif[1][4]);
// Alternatif Sakit Efek Samping Myocardial Infarction
alternatifSakit[1][0].setBounds(240,230,70,25);
konten.add(alternatifSakit[1][0]);
alternatifSakit[1][1].setBounds(400,230,70,25);
konten.add(alternatifSakit[1][1]);
alternatifSakit[1][2].setBounds(560,230,70,25);
konten.add(alternatifSakit[1][2]);
alternatifSakit[1][3].setBounds(720,230,70,25);
konten.add(alternatifSakit[1][3]);
alternatifSakit[1][4].setBounds(880,230,70,25);
konten.add(alternatifSakit[1][4]);
// Tanda Kriteria Kualitas Myocardial Infarction
tandaAlternatif[2][0].setBounds(160,260,100,25);
konten.add(tandaAlternatif[2][0]);
tandaAlternatif[2][1].setBounds(320,260,100,25);
konten.add(tandaAlternatif[2][1]);
tandaAlternatif[2][2].setBounds(480,260,100,25);
konten.add(tandaAlternatif[2][2]);
tandaAlternatif[2][3].setBounds(640,260,100,25);
konten.add(tandaAlternatif[2][3]);
tandaAlternatif[2][4].setBounds(800,260,100,25);
konten.add(tandaAlternatif[2][4]);
// Alternatif Sakit Kualitas Myocardial Infarction
alternatifSakit[2][0].setBounds(240,260,70,25);
konten.add(alternatifSakit[2][0]);
alternatifSakit[2][1].setBounds(400,260,70,25);
konten.add(alternatifSakit[2][1]);
alternatifSakit[2][2].setBounds(560,260,70,25);
konten.add(alternatifSakit[2][2]);
alternatifSakit[2][3].setBounds(720,260,70,25);
konten.add(alternatifSakit[2][3]);
alternatifSakit[2][4].setBounds(880,260,70,25);
konten.add(alternatifSakit[2][4]);
// Tanda Alternatif Ketersediaan Myocardial Infarction
tandaAlternatif[3][0].setBounds(160,290,100,25);
konten.add(tandaAlternatif[3][0]);
tandaAlternatif[3][1].setBounds(320,290,100,25);
konten.add(tandaAlternatif[3][1]);
tandaAlternatif[3][2].setBounds(480,290,100,25);
konten.add(tandaAlternatif[3][2]);
tandaAlternatif[3][3].setBounds(640,290,100,25);
konten.add(tandaAlternatif[3][3]);
tandaAlternatif[3][4].setBounds(800,290,100,25);
konten.add(tandaAlternatif[3][4]);
// Alternatif Sakit Ketersediaan Myocardial Infarction
alternatifSakit[3][0].setBounds(240,290,70,25);
konten.add(alternatifSakit[3][0]);
alternatifSakit[3][1].setBounds(400,290,70,25);
konten.add(alternatifSakit[3][1]);
alternatifSakit[3][2].setBounds(560,290,70,25);
konten.add(alternatifSakit[3][2]);
alternatifSakit[3][3].setBounds(720,290,70,25);
konten.add(alternatifSakit[3][3]);
alternatifSakit[3][4].setBounds(880,290,70,25);
konten.add(alternatifSakit[3][4]);
//Tanda kriteria Myocardial Infarction
tandaKriteria[0][0].setBounds(0,200,100,25);
konten.add(tandaKriteria[0][0]);
tandaKriteria[0][1].setBounds(0,230,100,25);
konten.add(tandaKriteria[0][1]);
tandaKriteria[0][2].setBounds(0,260,100,25);
konten.add(tandaKriteria[0][2]);
tandaKriteria[0][3].setBounds(0,290,100,25);
konten.add(tandaKriteria[0][3]);
// Kriteria Sakit Myocardial Infarction
kriteriaSakit[0][0].setBounds(101,200,60,25);
kriteriaSakit[0][1].setBounds(101,230,60,25);
kriteriaSakit[0][2].setBounds(101,260,60,25);
kriteriaSakit[0][3].setBounds(101,290,60,25);
konten.add(kriteriaSakit[0][0]);
konten.add(kriteriaSakit[0][1]);
konten.add(kriteriaSakit[0][2]);
konten.add(kriteriaSakit[0][3]);
// Awal Stroke
stroke.setBounds(0,340,200,25);
konten.add(stroke);
kriteria1.setBounds(0,380,100,25);
konten.add(kriteria1);
alternatif1.setBounds(160,380,200,25);
konten.add(alternatif1);
// Tanda Kriteria Stroke
tandaKriteria[1][0].setBounds(0,420,200,25);
konten.add(tandaKriteria[1][0]);
tandaKriteria[1][1].setBounds(0,450,200,25);
konten.add(tandaKriteria[1][1]);
tandaKriteria[1][2].setBounds(0,480,200,25);
konten.add(tandaKriteria[1][2]);
tandaKriteria[1][3].setBounds(0,510,200,25);
konten.add(tandaKriteria[1][3]);
// Kriteria Sakit Stroke
kriteriaSakit[1][0].setBounds(101,420,60,25);
kriteriaSakit[1][1].setBounds(101,450,60,25);
kriteriaSakit[1][2].setBounds(101,480,60,25);
kriteriaSakit[1][3].setBounds(101,510,60,25);
konten.add(kriteriaSakit[1][0]);
konten.add(kriteriaSakit[1][1]);
konten.add(kriteriaSakit[1][2]);
konten.add(kriteriaSakit[1][3]);
// Tanda Alternatif Harga Stroke
tandaAlternatif[4][0].setBounds(160,420,100,25);
konten.add(tandaAlternatif[4][0]);
tandaAlternatif[4][1].setBounds(320,420,100,25);
konten.add(tandaAlternatif[4][1]);
tandaAlternatif[4][2].setBounds(480,420,100,25);
konten.add(tandaAlternatif[4][2]);
tandaAlternatif[4][3].setBounds(640,420,100,25);
konten.add(tandaAlternatif[4][3]);
tandaAlternatif[4][4].setBounds(800,420,100,25);
konten.add(tandaAlternatif[4][4]);
// Alternatif Sakit Harga Stroke
alternatifSakit[4][0].setBounds(240,420,70,25);
konten.add(alternatifSakit[4][0]);
alternatifSakit[4][1].setBounds(400,420,70,25);
konten.add(alternatifSakit[4][1]);
alternatifSakit[4][2].setBounds(560,420,70,25);
konten.add(alternatifSakit[4][2]);
alternatifSakit[4][3].setBounds(720,420,70,25);
konten.add(alternatifSakit[4][3]);
alternatifSakit[4][4].setBounds(880,420,70,25);
konten.add(alternatifSakit[4][4]);
// Tanda Alternatif Efek Samping Stroke
tandaAlternatif[5][0].setBounds(160,450,100,25);
konten.add(tandaAlternatif[5][0]);
tandaAlternatif[5][1].setBounds(320,450,100,25);
konten.add(tandaAlternatif[5][1]);
tandaAlternatif[5][2].setBounds(480,450,100,25);
konten.add(tandaAlternatif[5][2]);
tandaAlternatif[5][3].setBounds(640,450,100,25);
konten.add(tandaAlternatif[5][3]);
tandaAlternatif[5][4].setBounds(800,450,100,25);
konten.add(tandaAlternatif[5][4]);
// Alternatif Sakit Efek Samping Stroke
alternatifSakit[5][0].setBounds(240,450,70,25);
konten.add(alternatifSakit[5][0]);
alternatifSakit[5][1].setBounds(400,450,70,25);
konten.add(alternatifSakit[5][1]);
alternatifSakit[5][2].setBounds(560,450,70,25);
konten.add(alternatifSakit[5][2]);
alternatifSakit[5][3].setBounds(720,450,70,25);
konten.add(alternatifSakit[5][3]);
alternatifSakit[5][4].setBounds(880,450,70,25);
konten.add(alternatifSakit[5][4]);
// Tanda Kriteria Kualitas Stroke
tandaAlternatif[6][0].setBounds(160,480,100,25);
konten.add(tandaAlternatif[6][0]);
tandaAlternatif[6][1].setBounds(320,480,100,25);
konten.add(tandaAlternatif[6][1]);
tandaAlternatif[6][2].setBounds(480,480,100,25);
konten.add(tandaAlternatif[6][2]);
tandaAlternatif[6][3].setBounds(640,480,100,25);
konten.add(tandaAlternatif[6][3]);
tandaAlternatif[6][4].setBounds(800,480,100,25);
konten.add(tandaAlternatif[6][4]);
// Alternatif Sakit Kualitas Stroke
alternatifSakit[6][0].setBounds(240,480,70,25);
konten.add(alternatifSakit[6][0]);
alternatifSakit[6][1].setBounds(400,480,70,25);
konten.add(alternatifSakit[6][1]);
alternatifSakit[6][2].setBounds(560,480,70,25);
konten.add(alternatifSakit[6][2]);
alternatifSakit[6][3].setBounds(720,480,70,25);
konten.add(alternatifSakit[6][3]);
alternatifSakit[6][4].setBounds(880,480,70,25);
konten.add(alternatifSakit[6][4]);
// Tanda Alternatif Ketersediaan Stroke
tandaAlternatif[7][0].setBounds(160,510,100,25);
konten.add(tandaAlternatif[7][0]);
tandaAlternatif[7][1].setBounds(320,510,100,25);
konten.add(tandaAlternatif[7][1]);
tandaAlternatif[7][2].setBounds(480,510,100,25);
konten.add(tandaAlternatif[7][2]);
tandaAlternatif[7][3].setBounds(640,510,100,25);
konten.add(tandaAlternatif[7][3]);
tandaAlternatif[7][4].setBounds(800,510,100,25);
konten.add(tandaAlternatif[7][4]);
// Alternatif Sakit Ketersediaan Stroke
alternatifSakit[7][0].setBounds(240,510,70,25);
konten.add(alternatifSakit[7][0]);
alternatifSakit[7][1].setBounds(400,510,70,25);
konten.add(alternatifSakit[7][1]);
alternatifSakit[7][2].setBounds(560,510,70,25);
konten.add(alternatifSakit[7][2]);
alternatifSakit[7][3].setBounds(720,510,70,25);
konten.add(alternatifSakit[7][3]);
alternatifSakit[7][4].setBounds(880,510,70,25);
konten.add(alternatifSakit[7][4]);
lanjut.setBounds(880,560,100,25);
info.setBounds(0,620,1024,100);
konten.add(info);
konten.add(lanjut);
lanjut.setEnabled(false);

} //Akhir Konstruktor

public static void main(String[] args)
{
        ProgramTesisBaru newClass = new ProgramTesisBaru();    
}}




This is my code. The problem I get is I get some error messages such as:

Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedOperationException: Not yet implemented
at prgtesisserver.ProgramTesisBaru$2.connectToDB(ProgramTesisBaru.java:168)
at prgtesisserver.ProgramTesisBaru$2.masuk(ProgramTesisBaru.java:143)
at prgtesisserver.ProgramTesisBaru$2.actionPerformed(ProgramTesisBaru.java:127)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6504)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
at java.awt.Component.processEvent(Component.java:6269)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4860)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4686)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.window.dispatchEventImpl(window.java:2713)
at java.awt.Component.dispatchEvent(Component.java:4686)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:707)
at java.awt.EventQueue.access$000(EventQueue.java:101)
at java.awt.EventQueue$3.run(EventQueue.java:666)
at java.awt.EventQueue$3.run(EventQueue.java:664)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:680)
at java.awt.EventQueue$4.run(EventQueue.java:678)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:677)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

Why? I do not know what is wrong with this so I do not do any things yet. At the time I am hitting the Masuk button, it did not activate other buttons, why? I want to activate other buttons, please help me. I tried to look at the code but did not find and know what the problems were so please help me to recoqnize the problem, ok? You know, I want to make it shorter, do you know how to create loop for two or more variables? Again please do not kick me out, I promise you that I will obey the rule this time ok?

This is exactly the full revision of my program with tawilovejessicalawrent user name and Tawi user name, so what is wrong with that because after I revise it, I do not know the problem.

Is This A Good Question/Topic? 0
  • +

Replies To: Guys, I have a problem, do not banned me again.

#2 Ryano121  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1362
  • View blog
  • Posts: 3,002
  • Joined: 30-January 11

Re: Guys, I have a problem, do not banned me again.

Posted 02 December 2012 - 08:55 AM

I think we have gone through all this about a million times before but still

Line 168 you have throw new UnsupportedOperationException("Not yet implemented");

Meaning that when you run the code your application crashes because the exception is not handled.

I would go on about how horrible your code is, but as I've said that so many times already I won't bother.
Was This Post Helpful? 0
  • +
  • -

#3 GregBrannon  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 2197
  • View blog
  • Posts: 5,224
  • Joined: 10-September 10

Re: Guys, I have a problem, do not banned me again.

Posted 02 December 2012 - 08:59 AM

Tawi,

Thanks for being honest about your identify. I don't believe you were personally banned for misbehavior, rather that a duplicate account was closed. You should address the proper resolution of that with Mac before continuing.

And please don't open a new account or request a name change each time you get a new girlfriend.
Was This Post Helpful? 0
  • +
  • -

#4 MetMe  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 02-December 12

Re: Guys, I have a problem, do not banned me again.

Posted 02 December 2012 - 09:01 AM

View PostRyano121, on 02 December 2012 - 08:55 AM, said:

I think we have gone through all this about a million times before but still

Line 168 you have throw new UnsupportedOperationException("Not yet implemented");

Meaning that when you run the code your application crashes because the exception is not handled.

I would go on about how horrible your code is, but as I've said that so many times already I won't bother.


So how should I change it? I modify last program. This is the full modification. Don't you see that I am using setBounds now not setLayout any longer? So please do not kick me ok? How to make a loop with two variable to simplify the program?

Guys, I was not ignoring any folks. I just do not know what to do so please help me ok?
Was This Post Helpful? 0
  • +
  • -

#5 Ryano121  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1362
  • View blog
  • Posts: 3,002
  • Joined: 30-January 11

Re: Guys, I have a problem, do not banned me again.

Posted 02 December 2012 - 09:22 AM

Well if you have actually implemented what you were supposed to implement there then you can select the throw new UnS... line and delete it.
Was This Post Helpful? 0
  • +
  • -

#6 MetMe  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 02-December 12

Re: Guys, I have a problem, do not banned me again.

Posted 02 December 2012 - 09:23 AM

View PostGregBrannon, on 02 December 2012 - 08:59 AM, said:

Tawi,

Thanks for being honest about your identify. I don't believe you were personally banned for misbehavior, rather that a duplicate account was closed. You should address the proper resolution of that with Mac before continuing.

And please don't open a new account or request a name change each time you get a new girlfriend.


I won't believe me because I love that girl very much. I just do not know how to meet her and what excuse I want to use to meet her. Any ways, back to the program, I was trying to eliminate

throw new UnsupportedOperationException("Not yet implemented");



but it did not help me at all. I was receiving this error. This is the updated error.

Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedOperationException: Not yet implemented
at prgtesisserver.ProgramTesisBaru$2.connectToDB(ProgramTesisBaru.java:168)
at prgtesisserver.ProgramTesisBaru$2.masuk(ProgramTesisBaru.java:143)
at prgtesisserver.ProgramTesisBaru$2.actionPerformed(ProgramTesisBaru.java:127)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6504)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
at java.awt.Component.processEvent(Component.java:6269)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4860)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4686)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.window.dispatchEventImpl(window.java:2713)
at java.awt.Component.dispatchEvent(Component.java:4686)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:707)
at java.awt.EventQueue.access$000(EventQueue.java:101)
at java.awt.EventQueue$3.run(EventQueue.java:666)
at java.awt.EventQueue$3.run(EventQueue.java:664)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:680)
at java.awt.EventQueue$4.run(EventQueue.java:678)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:677)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at prgtesisserver.ProgramTesisBaru$2.entryPrg(ProgramTesisBaru.java:172)
at prgtesisserver.ProgramTesisBaru$2.masuk(ProgramTesisBaru.java:147)
at prgtesisserver.ProgramTesisBaru$2.actionPerformed(ProgramTesisBaru.java:127)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6504)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
at java.awt.Component.processEvent(Component.java:6269)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4860)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4686)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.window.dispatchEventImpl(window.java:2713)
at java.awt.Component.dispatchEvent(Component.java:4686)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:707)
at java.awt.EventQueue.access$000(EventQueue.java:101)
at java.awt.EventQueue$3.run(EventQueue.java:666)
at java.awt.EventQueue$3.run(EventQueue.java:664)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:680)
at java.awt.EventQueue$4.run(EventQueue.java:678)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:677)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

Any idea how to fix it? Well, I have another problem which is the output of the program is not consistent, why? Some time it display only part of the output that I want the program to display and some time it display all of the program. What is wrong with my program? This is the revised code.

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package prgtesisserver;
import javax.swing.*;
import java.awt.*;
import java.sql.*;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
 *
 * @author Tawi
 */
public class ProgramTesisBaru extends JFrame{
    Container konten = getContentPane();
    private JLabel lblNama = new JLabel("Nama : ");
    private JTextField txtNama = new JTextField();
    private JLabel kataSandi = new JLabel("Kata Sandi : ");
    private JPasswordField sandiKata = new JPasswordField();
    private JButton masuk = new JButton("Masuk");
    private JButton keluar = new JButton("Keluar");
    JTextField[][] alternatifSakit = new JTextField[8][5];
    JTextField[][] kriteriaSakit = new JTextField[2][4];
    JLabel[][] tandaKriteria = new JLabel[2][4];
    JTextArea info = new JTextArea(100,80);
    private JLabel[][] tandaAlternatif = new JLabel[8][5];
    int i;
    JButton tombolHubungkankePadukData = new JButton("Hubungkan ke Paduk Data");
    JButton putuskanKoneksiKePadukData = new JButton("Putuskan Koneksi ke Paduk Data");
    JButton tombolUbahPadukData = new JButton("Ubah Paduk Data");
    JButton tombolBatal = new JButton("Batal");
    JButton lanjut = new JButton("Lanjut");
    JComboBox jcboURL = new JComboBox (new String[] {"jdbc:odbc:DatabaseKlinik"});
    JComboBox jcboDriver = new JComboBox (new String[] {"sun.jdbc.odbc.JdbcOdbcDriver"});
    private Connection connection;
    private Statement statement;
    JLabel statusKoneksi = new JLabel("Tidak ada Koneksi ke Paduk Data");
    JLabel padukData = new JLabel("Paduk Data Belum Diubah");
    String namaPengguna1;
    String passwordPengguna1;
    JLabel myocardialInfarction = new JLabel("Myocardial Infarction");
    JLabel stroke = new JLabel("Stroke");
    JLabel kriteria = new JLabel("Kriteria");
    JLabel alternatif = new JLabel("Alternatif");
    JLabel kriteria1 = new JLabel("Kriteria");
    JLabel alternatif1 = new JLabel("Alternatif");

public ProgramTesisBaru()
{
   
setTitle("Program Pemilihan Obat dengan Cara Analytic Hierarchycal Process");
setSize(1024,768);
setVisible(true);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setLocationRelativeTo(null);

konten.setLayout(null);
// Atur letak beberapa komponen
lblNama.setBounds(0,10,100,25);
konten.add(lblNama);
txtNama.setBounds(130,10,200,25);
konten.add(txtNama);
kataSandi.setBounds(330,10,100,25);
konten.add(kataSandi);
sandiKata.setBounds(410,10,200,25);
konten.add(sandiKata);
masuk.setBounds(600,10,100,25);
konten.add(masuk);
keluar.setBounds(700,10,100,25);
konten.add(keluar);
tombolHubungkankePadukData.setBounds(0,50,250,25);
konten.add(tombolHubungkankePadukData);
putuskanKoneksiKePadukData.setBounds(250,50,250,25);
konten.add(putuskanKoneksiKePadukData);
tombolUbahPadukData.setBounds(480,50,250,25);
konten.add(tombolUbahPadukData);
tombolBatal.setBounds(730,50,250,25);
konten.add(tombolBatal);
statusKoneksi.setBounds(800,10,200,25);
konten.add(statusKoneksi);
padukData.setBounds(0,70,200,25);
myocardialInfarction.setBounds(0,120,200,25);
konten.add(myocardialInfarction);
konten.add(padukData);
kriteria.setBounds(0,160,100,25);
konten.add(kriteria);
alternatif.setBounds(160,160,200,25);
konten.add(alternatif);
tombolHubungkankePadukData.setEnabled(false);
tombolBatal.setEnabled(false);
tombolUbahPadukData.setEnabled(false);
putuskanKoneksiKePadukData.setEnabled(false);
info.setEditable(false);
putuskanKoneksiKePadukData.addActionListener(new java.awt.event.ActionListener() {
            @Override
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                try {
                    putuskan();
                } catch (SQLException ex) {
                    Logger.getLogger(ProgramTesisBaru.class.getName()).log(Level.SEVERE, null, ex);
                }
            }

            private void putuskan() throws SQLException {
                if (connection == null)
                {
                    statusKoneksi.setText("Tidak ada Koneksi ke Paduk Data");
                }
                else 
                {
                    connection.close();
                    statusKoneksi.setText("Tidak ada Koneksi ke Paduk Data");
                }
            }
        });
masuk.addActionListener(new java.awt.event.ActionListener() {
            private Object rowSet;
            private String loginName;
            private String loginPassword;
            private String usrname;
            private String psswrd;
            private String passwrd;
            @Override
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                try {
                    masuk();
                } 
                catch (SQLException ex) {
                    Logger.getLogger(NewClass.class.getName()).log(Level.SEVERE, null, ex);
                }
            }

            private void masuk() throws SQLException {
                  usrname = txtNama.getText().trim();
                  psswrd = new String(sandiKata.getPassword());
                  loginName = "select Nama_Dokter from tblDokterNaraSumber where Nama_Dokter = '"+usrname+"'";
                  loginPassword = "select Password from tblDokterNaraSumber where Nama_Dokter = '"+usrname+"'";
                  String driver = (String)jcboDriver.getSelectedItem();
                  String uniRL =(String)jcboURL.getSelectedItem();
                  if (connection == null)
                  {
                      connectToDB();
                      entryPrg();
                  }
                  else {
                      entryPrg();
                  }

                throw new UnsupportedOperationException("Not yet implemented");
            }

            private void connectToDB() {
                String driver = (String)jcboDriver.getSelectedItem();
                String uniRL =(String)jcboURL.getSelectedItem();
                //URL uniRL = (URL)jcboURL.getSelectedItem();
                usrname = txtNama.getText().trim();
                passwrd = new String(sandiKata.getPassword());
                try {
                    Class.forName(driver);
                    connection = DriverManager.getConnection(uniRL, usrname, passwrd);
                    //rowSet.setURL(uniRL);
                    statusKoneksi.setText("Terhubung ke Paduk Data");
                }
                catch (java.lang.Exception ex) {
                    statusKoneksi.setText("Gagal Terhubung ke Paduk Data");
                }
                throw new UnsupportedOperationException("Not yet implemented");
            }

            private void entryPrg() throws SQLException {
                      ResultSet logName = statement.executeQuery(loginName);
                      ResultSet logPassword = statement.executeQuery(loginPassword);
                      while (logName.next()) {
                           namaPengguna1 = logName.getString("Nama_Dokter");
                      }
                      while (logPassword.next()) {
                           passwordPengguna1 = logPassword.getString("Password");
                      }
                    if ((!"".equals(usrname)) && (!"".equals(psswrd)))
                      {
                         if ((!"".equals(namaPengguna1)) && (!"".equals(passwordPengguna1))) 
                            {
                               tombolHubungkankePadukData.setEnabled(true);
                               putuskanKoneksiKePadukData.setEnabled(true);
                               tombolUbahPadukData.setEnabled(true);
                               tombolBatal.setEnabled(true);
                               keluar.setEnabled(true);
                               putuskanKoneksiKePadukData.setEnabled(true);
                               connection.close();
                            }
                         else if ((!"".equals(namaPengguna1)))
                            {
                               tombolHubungkankePadukData.setEnabled(false);
                               putuskanKoneksiKePadukData.setEnabled(false);
                               tombolUbahPadukData.setEnabled(false);
                               tombolBatal.setEnabled(false);
                               keluar.setEnabled(false);
                               putuskanKoneksiKePadukData.setEnabled(false);
                               JOptionPane.showMessageDialog(null, "Kata Kunci tidak Benar", "Dokter atau Kata Sandi tidak Ada", JOptionPane.INFORMATION_MESSAGE);
                               connection.close();        
                           }
                        else if (passwordPengguna1 != null)
                           {
                               tombolHubungkankePadukData.setEnabled(false);
                               putuskanKoneksiKePadukData.setEnabled(false);
                               tombolUbahPadukData.setEnabled(false);
                               tombolBatal.setEnabled(false);
                               keluar.setEnabled(false);
                               putuskanKoneksiKePadukData.setEnabled(false);
                               JOptionPane.showMessageDialog(null, "Dokter tidak Dikenal", "Dokter atau Kata Sandi tidak Ada", JOptionPane.INFORMATION_MESSAGE);
                               connection.close();   
                           }
    }
    else if (!"".equals(usrname))
    {
        if (("".equals(namaPengguna1)) && ("".equals(passwordPengguna1))) 
        {
        JOptionPane.showMessageDialog(null, "Kata Sandi Belum Dimasukkan", "Dokter atau Kata Sandi tidak Ada", JOptionPane.INFORMATION_MESSAGE);
          tombolHubungkankePadukData.setEnabled(false);
          putuskanKoneksiKePadukData.setEnabled(false);
          tombolUbahPadukData.setEnabled(false);
          tombolBatal.setEnabled(false);
          keluar.setEnabled(false);
          putuskanKoneksiKePadukData.setEnabled(false);
          connection.close();
        }
        else if (("".equals(namaPengguna1)))
        {
          tombolHubungkankePadukData.setEnabled(false);
          putuskanKoneksiKePadukData.setEnabled(false);
          tombolUbahPadukData.setEnabled(false);
          tombolBatal.setEnabled(false);
          keluar.setEnabled(false);
          putuskanKoneksiKePadukData.setEnabled(false);
          JOptionPane.showMessageDialog(null, "Kata Sandi Belum Dimasukkan", "Dokter atau Kata Sandi tidak Ada", JOptionPane.INFORMATION_MESSAGE);
          connection.close();        
        }
      else if (passwordPengguna1 == null)
      {
        tombolHubungkankePadukData.setEnabled(false);
        putuskanKoneksiKePadukData.setEnabled(false);
        tombolUbahPadukData.setEnabled(false);
        tombolBatal.setEnabled(false);
        keluar.setEnabled(false);
        putuskanKoneksiKePadukData.setEnabled(false);
        JOptionPane.showMessageDialog(null, "Kata Sandi Belum Dimasukkan", "Dokter atau Kata Sandi tidak Ada", JOptionPane.INFORMATION_MESSAGE);
        connection.close();   
      }
    }
    else if (!"".equals(psswrd))
    {
        if (("".equals(namaPengguna1)) && ("".equals(passwordPengguna1))) 
      {
        JOptionPane.showMessageDialog(null, "Nama Dokter Belum Dimasukkan", "Dokter atau Kata Sandi tidak Ada", JOptionPane.INFORMATION_MESSAGE);
        tombolHubungkankePadukData.setEnabled(false);
        putuskanKoneksiKePadukData.setEnabled(false);
        tombolUbahPadukData.setEnabled(false);
        tombolBatal.setEnabled(false);
        keluar.setEnabled(false);
        putuskanKoneksiKePadukData.setEnabled(false);
        connection.close();
      }
      else if (("".equals(namaPengguna1)))
      {
        tombolHubungkankePadukData.setEnabled(false);
        putuskanKoneksiKePadukData.setEnabled(false);
        tombolUbahPadukData.setEnabled(false);
        tombolBatal.setEnabled(false);
        keluar.setEnabled(false);
        putuskanKoneksiKePadukData.setEnabled(false);
        JOptionPane.showMessageDialog(null, "Nama Dokter Belum Dimasukkan", "Dokter atau Kata Sandi tidak Ada", JOptionPane.INFORMATION_MESSAGE);
        connection.close();        
      }
      else if (passwordPengguna1 == null)
      {
        tombolHubungkankePadukData.setEnabled(false);
        putuskanKoneksiKePadukData.setEnabled(false);
        tombolUbahPadukData.setEnabled(false);
        tombolBatal.setEnabled(false);
        keluar.setEnabled(false);
        putuskanKoneksiKePadukData.setEnabled(false);
        JOptionPane.showMessageDialog(null, "Nama Dokter Belum Dimasukkan", "Dokter atau Kata Sandi tidak Ada", JOptionPane.INFORMATION_MESSAGE);
        connection.close();   
      }
    }
                throw new UnsupportedOperationException("Not yet implemented");
            }
        });

keluar.addActionListener(new java.awt.event.ActionListener() {
            @Override
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                keluar();
            }

            private void keluar() {
                System.exit(0);
            }
        });
tombolBatal.addActionListener(new java.awt.event.ActionListener() {
            @Override
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                batal();
            }

            private void batal() {
                for (int k = 0; k < 8; k++)
                   {
                      alternatifSakit[k][0].setText("");
                      alternatifSakit[k][1].setText("");
                      alternatifSakit[k][2].setText("");
                      alternatifSakit[k][3].setText("");
                      alternatifSakit[k][4].setText("");
                   }
                for (int l = 0; l < 2; l++)
                   {
                      kriteriaSakit[l][0].setText("");
                      kriteriaSakit[l][1].setText("");
                      kriteriaSakit[l][2].setText("");
                      kriteriaSakit[l][3].setText("");
                   }
                throw new UnsupportedOperationException("Not yet implemented");
            }
        });
tombolHubungkankePadukData.addActionListener(new java.awt.event.ActionListener() {
            @Override
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                connectToDB();
                throw new UnsupportedOperationException("Not yet implemented");
            }

            public void connectToDB() {
                String driver = (String)jcboDriver.getSelectedItem();
                String uniRL =(String)jcboURL.getSelectedItem();
                //URL uniRL = (URL)jcboURL.getSelectedItem();
                String usrname = txtNama.getText().trim();
                String passwrd = new String(sandiKata.getPassword());
                try {
                    Class.forName(driver);
                    connection = DriverManager.getConnection(uniRL, usrname, passwrd);
                    //rowSet.setURL(uniRL);
                    statusKoneksi.setText("Terhubung ke Paduk Data");
                }
                catch (java.lang.Exception ex) {
                    statusKoneksi.setText("Gagal Terhubung ke Paduk Data");
                }
                throw new UnsupportedOperationException("Not yet implemented");
            }
        });

for (i = 0; i < 8; i++)
         {
              tandaAlternatif[i][0] = new JLabel("Alternatif 1");
              tandaAlternatif[i][1] = new JLabel("Alternatif 2");
              tandaAlternatif[i][2] = new JLabel("Alternatif 3");
              tandaAlternatif[i][3] = new JLabel("Alternatif 4");
              tandaAlternatif[i][4] = new JLabel("Alternatif 5");
              alternatifSakit[i][0] = new JTextField(10);
              alternatifSakit[i][1] = new JTextField(10);
              alternatifSakit[i][2] = new JTextField(10);
              alternatifSakit[i][3] = new JTextField(10);
              alternatifSakit[i][4] = new JTextField(10);
         }
for (int j = 0; j < 2; j++)
{
              tandaKriteria[j][0] = new JLabel("Harga");
              tandaKriteria[j][1] = new JLabel("Efek Samping");
              tandaKriteria[j][2] = new JLabel("Kualitas");
              tandaKriteria[j][3] = new JLabel("Ketersediaan");
              kriteriaSakit[j][0] = new JTextField(10);
              kriteriaSakit[j][1] = new JTextField(10);
              kriteriaSakit[j][2] = new JTextField(10);
              kriteriaSakit[j][3] = new JTextField(10);
         }
for (int m = 0; m < 8; m++)
{
    alternatifSakit[m][0].setEditable(false);
    alternatifSakit[m][1].setEditable(false);
    alternatifSakit[m][2].setEditable(false);
    alternatifSakit[m][3].setEditable(false);
    alternatifSakit[m][4].setEditable(false);
}
for (int n = 0; n < 2; n++)
{
    kriteriaSakit[n][0].setEditable(false);
    kriteriaSakit[n][1].setEditable(false);
    kriteriaSakit[n][2].setEditable(false);
    kriteriaSakit[n][3].setEditable(false);
}
// Tanda Alternatif Harga Myocardial Infarction
tandaAlternatif[0][0].setBounds(160,200,100,25);
konten.add(tandaAlternatif[0][0]);
tandaAlternatif[0][1].setBounds(320,200,100,25);
konten.add(tandaAlternatif[0][1]);
tandaAlternatif[0][2].setBounds(480,200,100,25);
konten.add(tandaAlternatif[0][2]);
tandaAlternatif[0][3].setBounds(640,200,100,25);
konten.add(tandaAlternatif[0][3]);
tandaAlternatif[0][4].setBounds(800,200,100,25);
konten.add(tandaAlternatif[0][4]);
// Alternatif Sakit Harga Myocardial Infarction
alternatifSakit[0][0].setBounds(240,200,70,25);
konten.add(alternatifSakit[0][0]);
alternatifSakit[0][1].setBounds(400,200,70,25);
konten.add(alternatifSakit[0][1]);
alternatifSakit[0][2].setBounds(560,200,70,25);
konten.add(alternatifSakit[0][2]);
alternatifSakit[0][3].setBounds(720,200,70,25);
konten.add(alternatifSakit[0][3]);
alternatifSakit[0][4].setBounds(880,200,70,25);
konten.add(alternatifSakit[0][4]);
// Tanda Alternatif Efek Samping Myocardial Infarction
tandaAlternatif[1][0].setBounds(160,230,100,25);
konten.add(tandaAlternatif[1][0]);
tandaAlternatif[1][1].setBounds(320,230,100,25);
konten.add(tandaAlternatif[1][1]);
tandaAlternatif[1][2].setBounds(480,230,100,25);
konten.add(tandaAlternatif[1][2]);
tandaAlternatif[1][3].setBounds(640,230,100,25);
konten.add(tandaAlternatif[1][3]);
tandaAlternatif[1][4].setBounds(800,230,100,25);
konten.add(tandaAlternatif[1][4]);
// Alternatif Sakit Efek Samping Myocardial Infarction
alternatifSakit[1][0].setBounds(240,230,70,25);
konten.add(alternatifSakit[1][0]);
alternatifSakit[1][1].setBounds(400,230,70,25);
konten.add(alternatifSakit[1][1]);
alternatifSakit[1][2].setBounds(560,230,70,25);
konten.add(alternatifSakit[1][2]);
alternatifSakit[1][3].setBounds(720,230,70,25);
konten.add(alternatifSakit[1][3]);
alternatifSakit[1][4].setBounds(880,230,70,25);
konten.add(alternatifSakit[1][4]);
// Tanda Kriteria Kualitas Myocardial Infarction
tandaAlternatif[2][0].setBounds(160,260,100,25);
konten.add(tandaAlternatif[2][0]);
tandaAlternatif[2][1].setBounds(320,260,100,25);
konten.add(tandaAlternatif[2][1]);
tandaAlternatif[2][2].setBounds(480,260,100,25);
konten.add(tandaAlternatif[2][2]);
tandaAlternatif[2][3].setBounds(640,260,100,25);
konten.add(tandaAlternatif[2][3]);
tandaAlternatif[2][4].setBounds(800,260,100,25);
konten.add(tandaAlternatif[2][4]);
// Alternatif Sakit Kualitas Myocardial Infarction
alternatifSakit[2][0].setBounds(240,260,70,25);
konten.add(alternatifSakit[2][0]);
alternatifSakit[2][1].setBounds(400,260,70,25);
konten.add(alternatifSakit[2][1]);
alternatifSakit[2][2].setBounds(560,260,70,25);
konten.add(alternatifSakit[2][2]);
alternatifSakit[2][3].setBounds(720,260,70,25);
konten.add(alternatifSakit[2][3]);
alternatifSakit[2][4].setBounds(880,260,70,25);
konten.add(alternatifSakit[2][4]);
// Tanda Alternatif Ketersediaan Myocardial Infarction
tandaAlternatif[3][0].setBounds(160,290,100,25);
konten.add(tandaAlternatif[3][0]);
tandaAlternatif[3][1].setBounds(320,290,100,25);
konten.add(tandaAlternatif[3][1]);
tandaAlternatif[3][2].setBounds(480,290,100,25);
konten.add(tandaAlternatif[3][2]);
tandaAlternatif[3][3].setBounds(640,290,100,25);
konten.add(tandaAlternatif[3][3]);
tandaAlternatif[3][4].setBounds(800,290,100,25);
konten.add(tandaAlternatif[3][4]);
// Alternatif Sakit Ketersediaan Myocardial Infarction
alternatifSakit[3][0].setBounds(240,290,70,25);
konten.add(alternatifSakit[3][0]);
alternatifSakit[3][1].setBounds(400,290,70,25);
konten.add(alternatifSakit[3][1]);
alternatifSakit[3][2].setBounds(560,290,70,25);
konten.add(alternatifSakit[3][2]);
alternatifSakit[3][3].setBounds(720,290,70,25);
konten.add(alternatifSakit[3][3]);
alternatifSakit[3][4].setBounds(880,290,70,25);
konten.add(alternatifSakit[3][4]);
//Tanda kriteria Myocardial Infarction
tandaKriteria[0][0].setBounds(0,200,100,25);
konten.add(tandaKriteria[0][0]);
tandaKriteria[0][1].setBounds(0,230,100,25);
konten.add(tandaKriteria[0][1]);
tandaKriteria[0][2].setBounds(0,260,100,25);
konten.add(tandaKriteria[0][2]);
tandaKriteria[0][3].setBounds(0,290,100,25);
konten.add(tandaKriteria[0][3]);
// Kriteria Sakit Myocardial Infarction
kriteriaSakit[0][0].setBounds(101,200,60,25);
kriteriaSakit[0][1].setBounds(101,230,60,25);
kriteriaSakit[0][2].setBounds(101,260,60,25);
kriteriaSakit[0][3].setBounds(101,290,60,25);
konten.add(kriteriaSakit[0][0]);
konten.add(kriteriaSakit[0][1]);
konten.add(kriteriaSakit[0][2]);
konten.add(kriteriaSakit[0][3]);
// Awal Stroke
stroke.setBounds(0,340,200,25);
konten.add(stroke);
kriteria1.setBounds(0,380,100,25);
konten.add(kriteria1);
alternatif1.setBounds(160,380,200,25);
konten.add(alternatif1);
// Tanda Kriteria Stroke
tandaKriteria[1][0].setBounds(0,420,200,25);
konten.add(tandaKriteria[1][0]);
tandaKriteria[1][1].setBounds(0,450,200,25);
konten.add(tandaKriteria[1][1]);
tandaKriteria[1][2].setBounds(0,480,200,25);
konten.add(tandaKriteria[1][2]);
tandaKriteria[1][3].setBounds(0,510,200,25);
konten.add(tandaKriteria[1][3]);
// Kriteria Sakit Stroke
kriteriaSakit[1][0].setBounds(101,420,60,25);
kriteriaSakit[1][1].setBounds(101,450,60,25);
kriteriaSakit[1][2].setBounds(101,480,60,25);
kriteriaSakit[1][3].setBounds(101,510,60,25);
konten.add(kriteriaSakit[1][0]);
konten.add(kriteriaSakit[1][1]);
konten.add(kriteriaSakit[1][2]);
konten.add(kriteriaSakit[1][3]);
// Tanda Alternatif Harga Stroke
tandaAlternatif[4][0].setBounds(160,420,100,25);
konten.add(tandaAlternatif[4][0]);
tandaAlternatif[4][1].setBounds(320,420,100,25);
konten.add(tandaAlternatif[4][1]);
tandaAlternatif[4][2].setBounds(480,420,100,25);
konten.add(tandaAlternatif[4][2]);
tandaAlternatif[4][3].setBounds(640,420,100,25);
konten.add(tandaAlternatif[4][3]);
tandaAlternatif[4][4].setBounds(800,420,100,25);
konten.add(tandaAlternatif[4][4]);
// Alternatif Sakit Harga Stroke
alternatifSakit[4][0].setBounds(240,420,70,25);
konten.add(alternatifSakit[4][0]);
alternatifSakit[4][1].setBounds(400,420,70,25);
konten.add(alternatifSakit[4][1]);
alternatifSakit[4][2].setBounds(560,420,70,25);
konten.add(alternatifSakit[4][2]);
alternatifSakit[4][3].setBounds(720,420,70,25);
konten.add(alternatifSakit[4][3]);
alternatifSakit[4][4].setBounds(880,420,70,25);
konten.add(alternatifSakit[4][4]);
// Tanda Alternatif Efek Samping Stroke
tandaAlternatif[5][0].setBounds(160,450,100,25);
konten.add(tandaAlternatif[5][0]);
tandaAlternatif[5][1].setBounds(320,450,100,25);
konten.add(tandaAlternatif[5][1]);
tandaAlternatif[5][2].setBounds(480,450,100,25);
konten.add(tandaAlternatif[5][2]);
tandaAlternatif[5][3].setBounds(640,450,100,25);
konten.add(tandaAlternatif[5][3]);
tandaAlternatif[5][4].setBounds(800,450,100,25);
konten.add(tandaAlternatif[5][4]);
// Alternatif Sakit Efek Samping Stroke
alternatifSakit[5][0].setBounds(240,450,70,25);
konten.add(alternatifSakit[5][0]);
alternatifSakit[5][1].setBounds(400,450,70,25);
konten.add(alternatifSakit[5][1]);
alternatifSakit[5][2].setBounds(560,450,70,25);
konten.add(alternatifSakit[5][2]);
alternatifSakit[5][3].setBounds(720,450,70,25);
konten.add(alternatifSakit[5][3]);
alternatifSakit[5][4].setBounds(880,450,70,25);
konten.add(alternatifSakit[5][4]);
// Tanda Kriteria Kualitas Stroke
tandaAlternatif[6][0].setBounds(160,480,100,25);
konten.add(tandaAlternatif[6][0]);
tandaAlternatif[6][1].setBounds(320,480,100,25);
konten.add(tandaAlternatif[6][1]);
tandaAlternatif[6][2].setBounds(480,480,100,25);
konten.add(tandaAlternatif[6][2]);
tandaAlternatif[6][3].setBounds(640,480,100,25);
konten.add(tandaAlternatif[6][3]);
tandaAlternatif[6][4].setBounds(800,480,100,25);
konten.add(tandaAlternatif[6][4]);
// Alternatif Sakit Kualitas Stroke
alternatifSakit[6][0].setBounds(240,480,70,25);
konten.add(alternatifSakit[6][0]);
alternatifSakit[6][1].setBounds(400,480,70,25);
konten.add(alternatifSakit[6][1]);
alternatifSakit[6][2].setBounds(560,480,70,25);
konten.add(alternatifSakit[6][2]);
alternatifSakit[6][3].setBounds(720,480,70,25);
konten.add(alternatifSakit[6][3]);
alternatifSakit[6][4].setBounds(880,480,70,25);
konten.add(alternatifSakit[6][4]);
// Tanda Alternatif Ketersediaan Stroke
tandaAlternatif[7][0].setBounds(160,510,100,25);
konten.add(tandaAlternatif[7][0]);
tandaAlternatif[7][1].setBounds(320,510,100,25);
konten.add(tandaAlternatif[7][1]);
tandaAlternatif[7][2].setBounds(480,510,100,25);
konten.add(tandaAlternatif[7][2]);
tandaAlternatif[7][3].setBounds(640,510,100,25);
konten.add(tandaAlternatif[7][3]);
tandaAlternatif[7][4].setBounds(800,510,100,25);
konten.add(tandaAlternatif[7][4]);
// Alternatif Sakit Ketersediaan Stroke
alternatifSakit[7][0].setBounds(240,510,70,25);
konten.add(alternatifSakit[7][0]);
alternatifSakit[7][1].setBounds(400,510,70,25);
konten.add(alternatifSakit[7][1]);
alternatifSakit[7][2].setBounds(560,510,70,25);
konten.add(alternatifSakit[7][2]);
alternatifSakit[7][3].setBounds(720,510,70,25);
konten.add(alternatifSakit[7][3]);
alternatifSakit[7][4].setBounds(880,510,70,25);
konten.add(alternatifSakit[7][4]);
lanjut.setBounds(880,560,100,25);
info.setBounds(0,620,1024,100);
konten.add(info);
konten.add(lanjut);
lanjut.setEnabled(false);

} //Akhir Konstruktor

public static void main(String[] args)
{
        ProgramTesisBaru newClass = new ProgramTesisBaru();    
}}



Was This Post Helpful? 0
  • +
  • -

#7 MetMe  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 02-December 12

Re: Guys, I have a problem, do not banned me again.

Posted 02 December 2012 - 09:28 AM

Allright, I eliminate the suggested line and this is the error code that is received by me.

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at prgtesisserver.ProgramTesisBaru$2.entryPrg(ProgramTesisBaru.java:169)
at prgtesisserver.ProgramTesisBaru$2.masuk(ProgramTesisBaru.java:144)
at prgtesisserver.ProgramTesisBaru$2.actionPerformed(ProgramTesisBaru.java:127)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6504)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
at java.awt.Component.processEvent(Component.java:6269)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4860)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4686)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.window.dispatchEventImpl(window.java:2713)
at java.awt.Component.dispatchEvent(Component.java:4686)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:707)
at java.awt.EventQueue.access$000(EventQueue.java:101)
at java.awt.EventQueue$3.run(EventQueue.java:666)
at java.awt.EventQueue$3.run(EventQueue.java:664)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:680)
at java.awt.EventQueue$4.run(EventQueue.java:678)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:677)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

The other problem is the program is not showing the code that I want so what should I do?
How to solve others error codes?
Was This Post Helpful? 0
  • +
  • -

#8 Ryano121  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1362
  • View blog
  • Posts: 3,002
  • Joined: 30-January 11

Re: Guys, I have a problem, do not banned me again.

Posted 02 December 2012 - 09:29 AM

Line 168 you didn't delete the line...
Was This Post Helpful? 0
  • +
  • -

#9 GregBrannon  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 2197
  • View blog
  • Posts: 5,224
  • Joined: 10-September 10

Re: Guys, I have a problem, do not banned me again.

Posted 02 December 2012 - 09:30 AM

You can also post long stack traces in code tags.
Was This Post Helpful? 0
  • +
  • -

#10 MetMe  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 02-December 12

Re: Guys, I have a problem, do not banned me again.

Posted 02 December 2012 - 09:34 AM

View PostRyano121, on 02 December 2012 - 09:29 AM, said:

Line 168 you didn't delete the line...

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package prgtesisserver;
import javax.swing.*;
import java.awt.*;
import java.sql.*;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
 *
 * @author Tawi
 */
public class ProgramTesisBaru extends JFrame{
    Container konten = getContentPane();
    private JLabel lblNama = new JLabel("Nama : ");
    private JTextField txtNama = new JTextField();
    private JLabel kataSandi = new JLabel("Kata Sandi : ");
    private JPasswordField sandiKata = new JPasswordField();
    private JButton masuk = new JButton("Masuk");
    private JButton keluar = new JButton("Keluar");
    JTextField[][] alternatifSakit = new JTextField[8][5];
    JTextField[][] kriteriaSakit = new JTextField[2][4];
    JLabel[][] tandaKriteria = new JLabel[2][4];
    JTextArea info = new JTextArea(100,80);
    private JLabel[][] tandaAlternatif = new JLabel[8][5];
    int i;
    JButton tombolHubungkankePadukData = new JButton("Hubungkan ke Paduk Data");
    JButton putuskanKoneksiKePadukData = new JButton("Putuskan Koneksi ke Paduk Data");
    JButton tombolUbahPadukData = new JButton("Ubah Paduk Data");
    JButton tombolBatal = new JButton("Batal");
    JButton lanjut = new JButton("Lanjut");
    JComboBox jcboURL = new JComboBox (new String[] {"jdbc:odbc:DatabaseKlinik"});
    JComboBox jcboDriver = new JComboBox (new String[] {"sun.jdbc.odbc.JdbcOdbcDriver"});
    private Connection connection;
    private Statement statement;
    JLabel statusKoneksi = new JLabel("Tidak ada Koneksi ke Paduk Data");
    JLabel padukData = new JLabel("Paduk Data Belum Diubah");
    String namaPengguna1;
    String passwordPengguna1;
    JLabel myocardialInfarction = new JLabel("Myocardial Infarction");
    JLabel stroke = new JLabel("Stroke");
    JLabel kriteria = new JLabel("Kriteria");
    JLabel alternatif = new JLabel("Alternatif");
    JLabel kriteria1 = new JLabel("Kriteria");
    JLabel alternatif1 = new JLabel("Alternatif");

public ProgramTesisBaru()
{
   
setTitle("Program Pemilihan Obat dengan Cara Analytic Hierarchycal Process");
setSize(1024,768);
setVisible(true);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setLocationRelativeTo(null);

konten.setLayout(null);
// Atur letak beberapa komponen
lblNama.setBounds(0,10,100,25);
konten.add(lblNama);
txtNama.setBounds(130,10,200,25);
konten.add(txtNama);
kataSandi.setBounds(330,10,100,25);
konten.add(kataSandi);
sandiKata.setBounds(410,10,200,25);
konten.add(sandiKata);
masuk.setBounds(600,10,100,25);
konten.add(masuk);
keluar.setBounds(700,10,100,25);
konten.add(keluar);
tombolHubungkankePadukData.setBounds(0,50,250,25);
konten.add(tombolHubungkankePadukData);
putuskanKoneksiKePadukData.setBounds(250,50,250,25);
konten.add(putuskanKoneksiKePadukData);
tombolUbahPadukData.setBounds(480,50,250,25);
konten.add(tombolUbahPadukData);
tombolBatal.setBounds(730,50,250,25);
konten.add(tombolBatal);
statusKoneksi.setBounds(800,10,200,25);
konten.add(statusKoneksi);
padukData.setBounds(0,70,200,25);
myocardialInfarction.setBounds(0,120,200,25);
konten.add(myocardialInfarction);
konten.add(padukData);
kriteria.setBounds(0,160,100,25);
konten.add(kriteria);
alternatif.setBounds(160,160,200,25);
konten.add(alternatif);
tombolHubungkankePadukData.setEnabled(false);
tombolBatal.setEnabled(false);
tombolUbahPadukData.setEnabled(false);
putuskanKoneksiKePadukData.setEnabled(false);
info.setEditable(false);
putuskanKoneksiKePadukData.addActionListener(new java.awt.event.ActionListener() {
            @Override
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                try {
                    putuskan();
                } catch (SQLException ex) {
                    Logger.getLogger(ProgramTesisBaru.class.getName()).log(Level.SEVERE, null, ex);
                }
            }

            private void putuskan() throws SQLException {
                if (connection == null)
                {
                    statusKoneksi.setText("Tidak ada Koneksi ke Paduk Data");
                }
                else 
                {
                    connection.close();
                    statusKoneksi.setText("Tidak ada Koneksi ke Paduk Data");
                }
            }
        });
masuk.addActionListener(new java.awt.event.ActionListener() {
            private Object rowSet;
            private String loginName;
            private String loginPassword;
            private String usrname;
            private String psswrd;
            private String passwrd;
            @Override
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                try {
                    masuk();
                } 
                catch (SQLException ex) {
                    Logger.getLogger(NewClass.class.getName()).log(Level.SEVERE, null, ex);
                }
            }

            private void masuk() throws SQLException {
                  usrname = txtNama.getText().trim();
                  psswrd = new String(sandiKata.getPassword());
                  loginName = "select Nama_Dokter from tblDokterNaraSumber where Nama_Dokter = '"+usrname+"'";
                  loginPassword = "select Password from tblDokterNaraSumber where Nama_Dokter = '"+usrname+"'";
                  String driver = (String)jcboDriver.getSelectedItem();
                  String uniRL =(String)jcboURL.getSelectedItem();
                  if (connection == null)
                  {
                      connectToDB();
                      entryPrg();
                  }
                  else {
                      entryPrg();
                  }
            }

            private void connectToDB() {
                String driver = (String)jcboDriver.getSelectedItem();
                String uniRL =(String)jcboURL.getSelectedItem();
                //URL uniRL = (URL)jcboURL.getSelectedItem();
                usrname = txtNama.getText().trim();
                passwrd = new String(sandiKata.getPassword());
                try {
                    Class.forName(driver);
                    connection = DriverManager.getConnection(uniRL, usrname, passwrd);
                    //rowSet.setURL(uniRL);
                    statusKoneksi.setText("Terhubung ke Paduk Data");
                }
                catch (java.lang.Exception ex) {
                    statusKoneksi.setText("Gagal Terhubung ke Paduk Data");
                }
            }

            private void entryPrg() throws SQLException {
                      ResultSet logName = statement.executeQuery(loginName);
                      ResultSet logPassword = statement.executeQuery(loginPassword);
                      while (logName.next()) {
                           namaPengguna1 = logName.getString("Nama_Dokter");
                      }
                      while (logPassword.next()) {
                           passwordPengguna1 = logPassword.getString("Password");
                      }
                    if ((!"".equals(usrname)) && (!"".equals(psswrd)))
                      {
                         if ((!"".equals(namaPengguna1)) && (!"".equals(passwordPengguna1))) 
                            {
                               tombolHubungkankePadukData.setEnabled(true);
                               putuskanKoneksiKePadukData.setEnabled(true);
                               tombolUbahPadukData.setEnabled(true);
                               tombolBatal.setEnabled(true);
                               keluar.setEnabled(true);
                               putuskanKoneksiKePadukData.setEnabled(true);
                               connection.close();
                            }
                         else if ((!"".equals(namaPengguna1)))
                            {
                               tombolHubungkankePadukData.setEnabled(false);
                               putuskanKoneksiKePadukData.setEnabled(false);
                               tombolUbahPadukData.setEnabled(false);
                               tombolBatal.setEnabled(false);
                               keluar.setEnabled(false);
                               putuskanKoneksiKePadukData.setEnabled(false);
                               JOptionPane.showMessageDialog(null, "Kata Kunci tidak Benar", "Dokter atau Kata Sandi tidak Ada", JOptionPane.INFORMATION_MESSAGE);
                               connection.close();        
                           }
                        else if (passwordPengguna1 != null)
                           {
                               tombolHubungkankePadukData.setEnabled(false);
                               putuskanKoneksiKePadukData.setEnabled(false);
                               tombolUbahPadukData.setEnabled(false);
                               tombolBatal.setEnabled(false);
                               keluar.setEnabled(false);
                               putuskanKoneksiKePadukData.setEnabled(false);
                               JOptionPane.showMessageDialog(null, "Dokter tidak Dikenal", "Dokter atau Kata Sandi tidak Ada", JOptionPane.INFORMATION_MESSAGE);
                               connection.close();   
                           }
    }
    else if (!"".equals(usrname))
    {
        if (("".equals(namaPengguna1)) && ("".equals(passwordPengguna1))) 
        {
        JOptionPane.showMessageDialog(null, "Kata Sandi Belum Dimasukkan", "Dokter atau Kata Sandi tidak Ada", JOptionPane.INFORMATION_MESSAGE);
          tombolHubungkankePadukData.setEnabled(false);
          putuskanKoneksiKePadukData.setEnabled(false);
          tombolUbahPadukData.setEnabled(false);
          tombolBatal.setEnabled(false);
          keluar.setEnabled(false);
          putuskanKoneksiKePadukData.setEnabled(false);
          connection.close();
        }
        else if (("".equals(namaPengguna1)))
        {
          tombolHubungkankePadukData.setEnabled(false);
          putuskanKoneksiKePadukData.setEnabled(false);
          tombolUbahPadukData.setEnabled(false);
          tombolBatal.setEnabled(false);
          keluar.setEnabled(false);
          putuskanKoneksiKePadukData.setEnabled(false);
          JOptionPane.showMessageDialog(null, "Kata Sandi Belum Dimasukkan", "Dokter atau Kata Sandi tidak Ada", JOptionPane.INFORMATION_MESSAGE);
          connection.close();        
        }
      else if (passwordPengguna1 == null)
      {
        tombolHubungkankePadukData.setEnabled(false);
        putuskanKoneksiKePadukData.setEnabled(false);
        tombolUbahPadukData.setEnabled(false);
        tombolBatal.setEnabled(false);
        keluar.setEnabled(false);
        putuskanKoneksiKePadukData.setEnabled(false);
        JOptionPane.showMessageDialog(null, "Kata Sandi Belum Dimasukkan", "Dokter atau Kata Sandi tidak Ada", JOptionPane.INFORMATION_MESSAGE);
        connection.close();   
      }
    }
    else if (!"".equals(psswrd))
    {
        if (("".equals(namaPengguna1)) && ("".equals(passwordPengguna1))) 
      {
        JOptionPane.showMessageDialog(null, "Nama Dokter Belum Dimasukkan", "Dokter atau Kata Sandi tidak Ada", JOptionPane.INFORMATION_MESSAGE);
        tombolHubungkankePadukData.setEnabled(false);
        putuskanKoneksiKePadukData.setEnabled(false);
        tombolUbahPadukData.setEnabled(false);
        tombolBatal.setEnabled(false);
        keluar.setEnabled(false);
        putuskanKoneksiKePadukData.setEnabled(false);
        connection.close();
      }
      else if (("".equals(namaPengguna1)))
      {
        tombolHubungkankePadukData.setEnabled(false);
        putuskanKoneksiKePadukData.setEnabled(false);
        tombolUbahPadukData.setEnabled(false);
        tombolBatal.setEnabled(false);
        keluar.setEnabled(false);
        putuskanKoneksiKePadukData.setEnabled(false);
        JOptionPane.showMessageDialog(null, "Nama Dokter Belum Dimasukkan", "Dokter atau Kata Sandi tidak Ada", JOptionPane.INFORMATION_MESSAGE);
        connection.close();        
      }
      else if (passwordPengguna1 == null)
      {
        tombolHubungkankePadukData.setEnabled(false);
        putuskanKoneksiKePadukData.setEnabled(false);
        tombolUbahPadukData.setEnabled(false);
        tombolBatal.setEnabled(false);
        keluar.setEnabled(false);
        putuskanKoneksiKePadukData.setEnabled(false);
        JOptionPane.showMessageDialog(null, "Nama Dokter Belum Dimasukkan", "Dokter atau Kata Sandi tidak Ada", JOptionPane.INFORMATION_MESSAGE);
        connection.close();   
      }
    }
            }
        });

keluar.addActionListener(new java.awt.event.ActionListener() {
            @Override
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                keluar();
            }

            private void keluar() {
                System.exit(0);
            }
        });
tombolBatal.addActionListener(new java.awt.event.ActionListener() {
            @Override
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                batal();
            }

            private void batal() {
                for (int k = 0; k < 8; k++)
                   {
                      alternatifSakit[k][0].setText("");
                      alternatifSakit[k][1].setText("");
                      alternatifSakit[k][2].setText("");
                      alternatifSakit[k][3].setText("");
                      alternatifSakit[k][4].setText("");
                   }
                for (int l = 0; l < 2; l++)
                   {
                      kriteriaSakit[l][0].setText("");
                      kriteriaSakit[l][1].setText("");
                      kriteriaSakit[l][2].setText("");
                      kriteriaSakit[l][3].setText("");
                   }
            }
        });
tombolHubungkankePadukData.addActionListener(new java.awt.event.ActionListener() {
            @Override
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                connectToDB();
                throw new UnsupportedOperationException("Not yet implemented");
            }

            public void connectToDB() {
                String driver = (String)jcboDriver.getSelectedItem();
                String uniRL =(String)jcboURL.getSelectedItem();
                //URL uniRL = (URL)jcboURL.getSelectedItem();
                String usrname = txtNama.getText().trim();
                String passwrd = new String(sandiKata.getPassword());
                try {
                    Class.forName(driver);
                    connection = DriverManager.getConnection(uniRL, usrname, passwrd);
                    //rowSet.setURL(uniRL);
                    statusKoneksi.setText("Terhubung ke Paduk Data");
                }
                catch (java.lang.Exception ex) {
                    statusKoneksi.setText("Gagal Terhubung ke Paduk Data");
                }
            }
        });

for (i = 0; i < 8; i++)
         {
              tandaAlternatif[i][0] = new JLabel("Alternatif 1");
              tandaAlternatif[i][1] = new JLabel("Alternatif 2");
              tandaAlternatif[i][2] = new JLabel("Alternatif 3");
              tandaAlternatif[i][3] = new JLabel("Alternatif 4");
              tandaAlternatif[i][4] = new JLabel("Alternatif 5");
              alternatifSakit[i][0] = new JTextField(10);
              alternatifSakit[i][1] = new JTextField(10);
              alternatifSakit[i][2] = new JTextField(10);
              alternatifSakit[i][3] = new JTextField(10);
              alternatifSakit[i][4] = new JTextField(10);
         }
for (int j = 0; j < 2; j++)
{
              tandaKriteria[j][0] = new JLabel("Harga");
              tandaKriteria[j][1] = new JLabel("Efek Samping");
              tandaKriteria[j][2] = new JLabel("Kualitas");
              tandaKriteria[j][3] = new JLabel("Ketersediaan");
              kriteriaSakit[j][0] = new JTextField(10);
              kriteriaSakit[j][1] = new JTextField(10);
              kriteriaSakit[j][2] = new JTextField(10);
              kriteriaSakit[j][3] = new JTextField(10);
         }
for (int m = 0; m < 8; m++)
{
    alternatifSakit[m][0].setEditable(false);
    alternatifSakit[m][1].setEditable(false);
    alternatifSakit[m][2].setEditable(false);
    alternatifSakit[m][3].setEditable(false);
    alternatifSakit[m][4].setEditable(false);
}
for (int n = 0; n < 2; n++)
{
    kriteriaSakit[n][0].setEditable(false);
    kriteriaSakit[n][1].setEditable(false);
    kriteriaSakit[n][2].setEditable(false);
    kriteriaSakit[n][3].setEditable(false);
}
// Tanda Alternatif Harga Myocardial Infarction
tandaAlternatif[0][0].setBounds(160,200,100,25);
konten.add(tandaAlternatif[0][0]);
tandaAlternatif[0][1].setBounds(320,200,100,25);
konten.add(tandaAlternatif[0][1]);
tandaAlternatif[0][2].setBounds(480,200,100,25);
konten.add(tandaAlternatif[0][2]);
tandaAlternatif[0][3].setBounds(640,200,100,25);
konten.add(tandaAlternatif[0][3]);
tandaAlternatif[0][4].setBounds(800,200,100,25);
konten.add(tandaAlternatif[0][4]);
// Alternatif Sakit Harga Myocardial Infarction
alternatifSakit[0][0].setBounds(240,200,70,25);
konten.add(alternatifSakit[0][0]);
alternatifSakit[0][1].setBounds(400,200,70,25);
konten.add(alternatifSakit[0][1]);
alternatifSakit[0][2].setBounds(560,200,70,25);
konten.add(alternatifSakit[0][2]);
alternatifSakit[0][3].setBounds(720,200,70,25);
konten.add(alternatifSakit[0][3]);
alternatifSakit[0][4].setBounds(880,200,70,25);
konten.add(alternatifSakit[0][4]);
// Tanda Alternatif Efek Samping Myocardial Infarction
tandaAlternatif[1][0].setBounds(160,230,100,25);
konten.add(tandaAlternatif[1][0]);
tandaAlternatif[1][1].setBounds(320,230,100,25);
konten.add(tandaAlternatif[1][1]);
tandaAlternatif[1][2].setBounds(480,230,100,25);
konten.add(tandaAlternatif[1][2]);
tandaAlternatif[1][3].setBounds(640,230,100,25);
konten.add(tandaAlternatif[1][3]);
tandaAlternatif[1][4].setBounds(800,230,100,25);
konten.add(tandaAlternatif[1][4]);
// Alternatif Sakit Efek Samping Myocardial Infarction
alternatifSakit[1][0].setBounds(240,230,70,25);
konten.add(alternatifSakit[1][0]);
alternatifSakit[1][1].setBounds(400,230,70,25);
konten.add(alternatifSakit[1][1]);
alternatifSakit[1][2].setBounds(560,230,70,25);
konten.add(alternatifSakit[1][2]);
alternatifSakit[1][3].setBounds(720,230,70,25);
konten.add(alternatifSakit[1][3]);
alternatifSakit[1][4].setBounds(880,230,70,25);
konten.add(alternatifSakit[1][4]);
// Tanda Kriteria Kualitas Myocardial Infarction
tandaAlternatif[2][0].setBounds(160,260,100,25);
konten.add(tandaAlternatif[2][0]);
tandaAlternatif[2][1].setBounds(320,260,100,25);
konten.add(tandaAlternatif[2][1]);
tandaAlternatif[2][2].setBounds(480,260,100,25);
konten.add(tandaAlternatif[2][2]);
tandaAlternatif[2][3].setBounds(640,260,100,25);
konten.add(tandaAlternatif[2][3]);
tandaAlternatif[2][4].setBounds(800,260,100,25);
konten.add(tandaAlternatif[2][4]);
// Alternatif Sakit Kualitas Myocardial Infarction
alternatifSakit[2][0].setBounds(240,260,70,25);
konten.add(alternatifSakit[2][0]);
alternatifSakit[2][1].setBounds(400,260,70,25);
konten.add(alternatifSakit[2][1]);
alternatifSakit[2][2].setBounds(560,260,70,25);
konten.add(alternatifSakit[2][2]);
alternatifSakit[2][3].setBounds(720,260,70,25);
konten.add(alternatifSakit[2][3]);
alternatifSakit[2][4].setBounds(880,260,70,25);
konten.add(alternatifSakit[2][4]);
// Tanda Alternatif Ketersediaan Myocardial Infarction
tandaAlternatif[3][0].setBounds(160,290,100,25);
konten.add(tandaAlternatif[3][0]);
tandaAlternatif[3][1].setBounds(320,290,100,25);
konten.add(tandaAlternatif[3][1]);
tandaAlternatif[3][2].setBounds(480,290,100,25);
konten.add(tandaAlternatif[3][2]);
tandaAlternatif[3][3].setBounds(640,290,100,25);
konten.add(tandaAlternatif[3][3]);
tandaAlternatif[3][4].setBounds(800,290,100,25);
konten.add(tandaAlternatif[3][4]);
// Alternatif Sakit Ketersediaan Myocardial Infarction
alternatifSakit[3][0].setBounds(240,290,70,25);
konten.add(alternatifSakit[3][0]);
alternatifSakit[3][1].setBounds(400,290,70,25);
konten.add(alternatifSakit[3][1]);
alternatifSakit[3][2].setBounds(560,290,70,25);
konten.add(alternatifSakit[3][2]);
alternatifSakit[3][3].setBounds(720,290,70,25);
konten.add(alternatifSakit[3][3]);
alternatifSakit[3][4].setBounds(880,290,70,25);
konten.add(alternatifSakit[3][4]);
//Tanda kriteria Myocardial Infarction
tandaKriteria[0][0].setBounds(0,200,100,25);
konten.add(tandaKriteria[0][0]);
tandaKriteria[0][1].setBounds(0,230,100,25);
konten.add(tandaKriteria[0][1]);
tandaKriteria[0][2].setBounds(0,260,100,25);
konten.add(tandaKriteria[0][2]);
tandaKriteria[0][3].setBounds(0,290,100,25);
konten.add(tandaKriteria[0][3]);
// Kriteria Sakit Myocardial Infarction
kriteriaSakit[0][0].setBounds(101,200,60,25);
kriteriaSakit[0][1].setBounds(101,230,60,25);
kriteriaSakit[0][2].setBounds(101,260,60,25);
kriteriaSakit[0][3].setBounds(101,290,60,25);
konten.add(kriteriaSakit[0][0]);
konten.add(kriteriaSakit[0][1]);
konten.add(kriteriaSakit[0][2]);
konten.add(kriteriaSakit[0][3]);
// Awal Stroke
stroke.setBounds(0,340,200,25);
konten.add(stroke);
kriteria1.setBounds(0,380,100,25);
konten.add(kriteria1);
alternatif1.setBounds(160,380,200,25);
konten.add(alternatif1);
// Tanda Kriteria Stroke
tandaKriteria[1][0].setBounds(0,420,200,25);
konten.add(tandaKriteria[1][0]);
tandaKriteria[1][1].setBounds(0,450,200,25);
konten.add(tandaKriteria[1][1]);
tandaKriteria[1][2].setBounds(0,480,200,25);
konten.add(tandaKriteria[1][2]);
tandaKriteria[1][3].setBounds(0,510,200,25);
konten.add(tandaKriteria[1][3]);
// Kriteria Sakit Stroke
kriteriaSakit[1][0].setBounds(101,420,60,25);
kriteriaSakit[1][1].setBounds(101,450,60,25);
kriteriaSakit[1][2].setBounds(101,480,60,25);
kriteriaSakit[1][3].setBounds(101,510,60,25);
konten.add(kriteriaSakit[1][0]);
konten.add(kriteriaSakit[1][1]);
konten.add(kriteriaSakit[1][2]);
konten.add(kriteriaSakit[1][3]);
// Tanda Alternatif Harga Stroke
tandaAlternatif[4][0].setBounds(160,420,100,25);
konten.add(tandaAlternatif[4][0]);
tandaAlternatif[4][1].setBounds(320,420,100,25);
konten.add(tandaAlternatif[4][1]);
tandaAlternatif[4][2].setBounds(480,420,100,25);
konten.add(tandaAlternatif[4][2]);
tandaAlternatif[4][3].setBounds(640,420,100,25);
konten.add(tandaAlternatif[4][3]);
tandaAlternatif[4][4].setBounds(800,420,100,25);
konten.add(tandaAlternatif[4][4]);
// Alternatif Sakit Harga Stroke
alternatifSakit[4][0].setBounds(240,420,70,25);
konten.add(alternatifSakit[4][0]);
alternatifSakit[4][1].setBounds(400,420,70,25);
konten.add(alternatifSakit[4][1]);
alternatifSakit[4][2].setBounds(560,420,70,25);
konten.add(alternatifSakit[4][2]);
alternatifSakit[4][3].setBounds(720,420,70,25);
konten.add(alternatifSakit[4][3]);
alternatifSakit[4][4].setBounds(880,420,70,25);
konten.add(alternatifSakit[4][4]);
// Tanda Alternatif Efek Samping Stroke
tandaAlternatif[5][0].setBounds(160,450,100,25);
konten.add(tandaAlternatif[5][0]);
tandaAlternatif[5][1].setBounds(320,450,100,25);
konten.add(tandaAlternatif[5][1]);
tandaAlternatif[5][2].setBounds(480,450,100,25);
konten.add(tandaAlternatif[5][2]);
tandaAlternatif[5][3].setBounds(640,450,100,25);
konten.add(tandaAlternatif[5][3]);
tandaAlternatif[5][4].setBounds(800,450,100,25);
konten.add(tandaAlternatif[5][4]);
// Alternatif Sakit Efek Samping Stroke
alternatifSakit[5][0].setBounds(240,450,70,25);
konten.add(alternatifSakit[5][0]);
alternatifSakit[5][1].setBounds(400,450,70,25);
konten.add(alternatifSakit[5][1]);
alternatifSakit[5][2].setBounds(560,450,70,25);
konten.add(alternatifSakit[5][2]);
alternatifSakit[5][3].setBounds(720,450,70,25);
konten.add(alternatifSakit[5][3]);
alternatifSakit[5][4].setBounds(880,450,70,25);
konten.add(alternatifSakit[5][4]);
// Tanda Kriteria Kualitas Stroke
tandaAlternatif[6][0].setBounds(160,480,100,25);
konten.add(tandaAlternatif[6][0]);
tandaAlternatif[6][1].setBounds(320,480,100,25);
konten.add(tandaAlternatif[6][1]);
tandaAlternatif[6][2].setBounds(480,480,100,25);
konten.add(tandaAlternatif[6][2]);
tandaAlternatif[6][3].setBounds(640,480,100,25);
konten.add(tandaAlternatif[6][3]);
tandaAlternatif[6][4].setBounds(800,480,100,25);
konten.add(tandaAlternatif[6][4]);
// Alternatif Sakit Kualitas Stroke
alternatifSakit[6][0].setBounds(240,480,70,25);
konten.add(alternatifSakit[6][0]);
alternatifSakit[6][1].setBounds(400,480,70,25);
konten.add(alternatifSakit[6][1]);
alternatifSakit[6][2].setBounds(560,480,70,25);
konten.add(alternatifSakit[6][2]);
alternatifSakit[6][3].setBounds(720,480,70,25);
konten.add(alternatifSakit[6][3]);
alternatifSakit[6][4].setBounds(880,480,70,25);
konten.add(alternatifSakit[6][4]);
// Tanda Alternatif Ketersediaan Stroke
tandaAlternatif[7][0].setBounds(160,510,100,25);
konten.add(tandaAlternatif[7][0]);
tandaAlternatif[7][1].setBounds(320,510,100,25);
konten.add(tandaAlternatif[7][1]);
tandaAlternatif[7][2].setBounds(480,510,100,25);
konten.add(tandaAlternatif[7][2]);
tandaAlternatif[7][3].setBounds(640,510,100,25);
konten.add(tandaAlternatif[7][3]);
tandaAlternatif[7][4].setBounds(800,510,100,25);
konten.add(tandaAlternatif[7][4]);
// Alternatif Sakit Ketersediaan Stroke
alternatifSakit[7][0].setBounds(240,510,70,25);
konten.add(alternatifSakit[7][0]);
alternatifSakit[7][1].setBounds(400,510,70,25);
konten.add(alternatifSakit[7][1]);
alternatifSakit[7][2].setBounds(560,510,70,25);
konten.add(alternatifSakit[7][2]);
alternatifSakit[7][3].setBounds(720,510,70,25);
konten.add(alternatifSakit[7][3]);
alternatifSakit[7][4].setBounds(880,510,70,25);
konten.add(alternatifSakit[7][4]);
lanjut.setBounds(880,560,100,25);
info.setBounds(0,620,1024,100);
konten.add(info);
konten.add(lanjut);
lanjut.setEnabled(false);

} //Akhir Konstruktor

public static void main(String[] args)
{
        ProgramTesisBaru newClass = new ProgramTesisBaru();    
}}



Those lines were removed, so? What else? How about the other error messages? How about strange behaviour of the program? Why does the program show some of the program at one time and show all of the program at other time?
Was This Post Helpful? 0
  • +
  • -

#11 farrell2k  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 822
  • View blog
  • Posts: 2,529
  • Joined: 29-July 11

Re: Guys, I have a problem, do not banned me again.

Posted 02 December 2012 - 11:09 AM

View PostMetMe, on 02 December 2012 - 04:23 PM, said:

View PostGregBrannon, on 02 December 2012 - 08:59 AM, said:

Tawi,

Thanks for being honest about your identify. I don't believe you were personally banned for misbehavior, rather that a duplicate account was closed. You should address the proper resolution of that with Mac before continuing.

And please don't open a new account or request a name change each time you get a new girlfriend.


I won't believe me because I love that girl very much. I just do not know how to meet her and what excuse I want to use to meet her.


Now I've seen it all. :lol:/>
Was This Post Helpful? 0
  • +
  • -

#12 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 8940
  • View blog
  • Posts: 33,532
  • Joined: 12-June 08

Re: Guys, I have a problem, do not banned me again.

Posted 02 December 2012 - 12:14 PM

Ah.. still 'debugging by proxy'. *sigh*
Was This Post Helpful? 0
  • +
  • -

#13 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10392
  • View blog
  • Posts: 38,458
  • Joined: 27-December 08

Re: Guys, I have a problem, do not banned me again.

Posted 02 December 2012 - 01:22 PM

You've been working on the same project for months with little changes to your code. You've really learned nothing from the months of advice from us. I'm closing this thread.
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1