6
I have a very simple java application, which connects to a database, in the console I type the query I want that is passed by parameter to the Query. Now I need to move all this to a graphical interface. Is there any way I can create just one window, and pass the data as it is arranged to the graphical interface?
I have nothing done yet, I have a Jtable just stated, because I did not find any good tutorial on how to do. In my program I have a Jtextarea that receives a query, so I will need to show this table dynamically as soon as I click the Run button. My question is how popular this table.
Yes, it is possible. If it is for desktop application you can use both swing and javafx. What is your question exactly?
– Math
I think I expressed myself badly, my doubt is how popular the table.
– João Neto
Do you already have a table? Would it be a Jtable? Could you show some of your code in the part where you have to popular that table?
– Math
@Math I haven’t done anything yet, yes, I have a Jtable just stated as I haven’t found any good tutorial on how to do it. In my program I have a Jtextarea that receives a query, so I will need to show this table dynamically as soon as I click the Run button.
– João Neto
You are using Resultset to search the BD?
– Math
Yes, I’m using Resultset
– João Neto