0

I am searching with textfield(suppose "99") value and entries are displayed in JTable.

Again if I search with 99 same values will added in JTable which I don't want.

Please provide any suggestions: Much appreciated in advance.

-- Edit --

Textfield1 - 99    Textfield2 - abc

-- Search --

Button Pressed

-- JTable Loaded --

Column1     Column2    Column3
5            abc        2000
10           abc        5000
15           abc        6000

Again if I search with same(99,abc) Textfield1 and Textfield2 values same entries should not get added.

But if searched with different values(66,xyz) then results("2 new rows") should be appended to the table resulting in total of 5 rows.

Code for reference:

List gettblList = retrieveCMGDtable(MYTABLE); //Retrieving table Rows
List tblList = getResultList(); //Method for getting result rows

//Appending rows

gettblList.add(tblList);
populateCMGDtable(MYTABLE,gettblList);//Populating table with  rows appended
Anoop B.K
  • 1,484
  • 2
  • 17
  • 31
Arpan Sharma
  • 395
  • 1
  • 10
  • 20

0 Answers0