I can implement the JTable using DefaultTableModel,there are two panels,
In first panel there are 5 textfields and a "ADD TO TABLE" button and In second panel there are one JTable and a "BACK" button.If i enter data in 5 textfields and press "ADD TO TABLE" button, the data will be stored in JTable in second panel, if i press "BACK" button the entire JTable data should be cleared and cursor will go to first panel and i again enter data in 5 textfields and press "ADD TO TABLE" button, i want to show the new data in JTable(previous data can be cleared).This process continues all times. please give me any suggestions regarding this issue.
Thank you in advance
raja.tadi@tcs.com
In first panel there are 5 textfields and a "ADD TO TABLE" button and In second panel there are one JTable and a "BACK" button.If i enter data in 5 textfields and press "ADD TO TABLE" button, the data will be stored in JTable in second panel, if i press "BACK" button the entire JTable data should be cleared and cursor will go to first panel and i again enter data in 5 textfields and press "ADD TO TABLE" button, i want to show the new data in JTable(previous data can be cleared).This process continues all times. please give me any suggestions regarding this issue.
Thank you in advance
raja.tadi@tcs.com