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

Status
Not open for further replies.

jayjay12

Enthusiast
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

  • bankin.png
    bankin.png
    22 KB · Views: 0
Status
Not open for further replies.

About this Thread

  • 0
    Replies
  • 603
    Views
  • 1
    Participants
Last reply from:
jayjay12

Trending Topics

Online now

Members online
518
Guests online
661
Total visitors
1,179

Forum statistics

Threads
2,279,408
Posts
28,990,546
Members
1,226,882
Latest member
akosiblock
Back
Top