hello all
i need to create a jtable which carry a customer ID and first name and last name and when clicking on that row of a specified customer it turns me to another frame containing the other data of the customer(email , phone number , address)

Post in your code and discuss the specifics of the problem please

the code is very long it's simply can be explained that i have got a data (customerID , customerName) which i want to display them in a table but the question is how to add onclick action to an element on a jtable

1/ what you are tried to tell ..., this man meaning runnable definitions about "how you wrote your JTable"

2/ be sure that more complete JTable definitions is just about 80-120 code lines, only for JTable

3/ and don't swith Input/Output to another JFrame, replace that with JDialog,

4/ "how to add onclick action to an element on a jtable ", no idea, thats depends of JTable and so on ....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.