Here we go.
I'm having 2 JFrames.
JFrame1 is having a list of Employee names loaded from database.
JFrame2 is use to show up more details of selected employee by getting details from database. (Full name, age, address, telephone, salary, etc...)
I know how to connect to a db or get data from it. But my question is :
"How or where to store all the primary keys I loaded in JFrame1 for pass it to JFrame2 when someone select an employee?" [I need the primary key to get data for specific employee]
Using an "Int array" is useless, unless if i knew how many employees are there & searching by employer's name in JFrame2 is useless as there can be employees who's having same name.
Thank you all!