0

Hi! I have a huge problem with my PERT program. I've been trying to figure out how to display all of the data in jTable with one click and how to delete all them as well, like if I click on "reset" or "clear". What I've done is just the design of the table with 5 textfields. Can anyone help me?

2
Contributors
2
Replies
5
Views
5 Years
Discussion Span
Last Post by aquagirl20
0

This is the part that I've been having problems with.... under computeBtnActionPerformed and resetBtnActionPerformed... I know how to get the texts from the textfield but I don't know how to display everything on the table. :(

private void computeBtnActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
    }

    private void resetBtnActionPerformed(java.awt.event.ActionEvent evt) {
        txtA.setText(null);                                                                                                                                                 // Clearing the content of the table and textfields.
        txtM.setText(null);
        txtB.setText(null);
        txtAct.setText(null);
        txtPred.setText(null);


    }

    private void computeBtnItemStateChanged(java.awt.event.ItemEvent evt) {
          // TODO add your handling code here:
    }

    private void computeBtnMouseClicked(java.awt.event.MouseEvent evt) {
          // TODO add your handling code here:
          }
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.