Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

163
Views
How to refer to the first column of a JTABLE and add action for each row clicked on in that column?

Edit: I still need to learn basic java this doesn't work

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

I just can't get it to refer to the index itself.

I don't understand the problem.

You saw from the other posting you can use:

int row = table.getSelectedRow();

You load the data into your table you know what column contains the filename of the song you want to play, so you just do:

String filename = table.getValueAt(row, ???);

I know how to play the song

So then you play the song.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!