Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

162
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda