How to create table with java swing?

Asked

Viewed 73 times

0

I have a button, when I click on it I want a table with two columns, one will be a counter and the other an empty field. The number of rows will be according to a variable to be passed to the table. The user will fill in this second column. Then I want to save the values that the user typed in a string. Example:

inserir a descrição da imagem aqui

In blue would be what the user would type and in black that would already come with the table. Someone knows how to do it ?

  • Your question has already been answered in the marked question. If you want something more specific, you need to edit your question and provide a [mcve] so that the problem can be simulated.

  • I see that you are new to the site, I recommend you visit the [tour] to know how this site works and also read the [Ask] to know how to elaborate good questions.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.