I am creating a commercial software and got stuck in place, where I need to fill an Array with information from multiple JTextBox fields.
I created an Array -
public String[][] BookAttributes = new String[BookRows][BookLines];
I want to save information added by User from following JTextFields in [BookLines] column for each book, which should auto-increment every time when new book is added to stock.
private JTextField tfBookName;
private JTextField tfBookCost;
private JTextField tfBookYearOfPublication;
private JTextField tfBookPublishingHouse;
private JTextField tfBookISBN;
private JTextField tfBookAuthor;
private JTextField tfBookNrOfPages;
Unfortunately, I cannot find a solution how to put this all together.
Any Help appreciated.
Thank you!