What's new

Closed Help:paano ko e ddisplay yung file sa panel using java

Status
Not open for further replies.

jayjay12

Addict
Joined
Jun 13, 2015
Posts
274
Reaction
26
Points
122
Age
25
sir patulong nmn poh paano ko ba e didisplay yung file sa panel once na k click ko yung data nya sa table mag oopen yung file sa panel plzz help me eto yung code ko

private void complaintsMouseClicked(java.awt.event.MouseEvent evt) {
Component rootPane = null;
try {
int row = complaints.getSelectedRow();
String tableClick = (complaints.getModel().getValueAt(row, 0).toString());
String sql = "select * from UNKNOWN_CUSTOMER where CustomerID= '" + tableClick + "' ";
pst =DBconn.conn.prepareStatement(sql);
rs= pst.executeQuery();
if (rs.next()) {

}
} catch (SQLException e) {
JOptionPane.showMessageDialog(rootPane, e);
}

int row = complaints.getSelectedRow();
String value = (complaints.getModel().getValueAt(row, 2).toString()); kinuha ko yung kung pang ilan sya bali filepath poh sya

// TODO add your handling code here:
}
 

Attachments

Status
Not open for further replies.

Similar threads

Back
Top