public View_OR(UserType usr) throws SQLException { initComponents(); vw = usr; if (vw.t == 1) { jLabel6.setVisible(false); } else if (vw.t == 0) { jLabel6.setVisible(true); jButton2.setVisible(false); jButton3.setVisible(false); jTextArea2.setVisible(false); jLabel5.setVisible(false); jTextField2.setText(vw.id); } else { jLabel6.setVisible(true); jLabel5.setVisible(false); jButton2.setVisible(false); jButton3.setVisible(false); jTextArea2.setVisible(false); } q.pst = q.conn.prepareStatement("select * from meo"); q.rs = q.pst.executeQuery(); jTable1.setModel(DbUtils.resultSetToTableModel(q.rs)); }
public View_OR() throws SQLException { initComponents(); q.pst = q.conn.prepareStatement("select * from meo"); q.rs = q.pst.executeQuery(); jTable1.setModel(DbUtils.resultSetToTableModel(q.rs)); }