This week's book giveaway is in the NodeJS forum. We're giving away four copies of Serverless Applications with Node.js and have Slobodan Stojanovic & Aleksandar Simovic on-line! See this thread for details.
I am programming java for the first time and now i have to make a school project.
The idee is to import a excel file in java and show this data in a Jtable (via a jbutton in the window)
When you click on the second jbutton there will open a new window and show a bargraph. (with some data from the table)
Arie Jansen wrote:The problem is to use this data in the Jtable when i click on the button in the screen.
Then the next step is to wrote some code which includes a JTable. Don't say to yourself "I need a JTable which contains data which came from an XLS file" -- a JTable doesn't care where its data comes from. Keep things separate as much as possible. Start with the JTable code and make it so you're adding constant data to the table model. Only when that works should you go on to modify it so that you're adding data from the XLS file to the table model.
posted 1 week ago
Thanks Paul for the advice
I use the JTable in netbeans 8.2 see attachment. On the bottom of the screen you see the data that i have import the data in java from the .xls file.
Can some one help me with the code to fill the Jtable with the data that i have already availeble in java?