How do i add table heading while loading a table in my JAVA GUI from sqlite database in eclipse? -


ok, learning how use sqlite database java , learning various operations. 1 operation came across loading records sqlite database table in gui program. now, program works fine , shows no problem wouldn't better if can header table when loads data sqlite database. can please me out how can add feature program. here load records table method.

btnloadallrecords = new jbutton("loadallrecords");          btnloadallrecords.addactionlistener(new actionlistener() {             public void actionperformed(actionevent e) {  preparedstatement pat;                  try {                     string query = "select lender,borrower,money,date records";                     pat = connection.preparestatement(query);                      resultset rs = pat.executequery();                     table.setmodel(dbutils.resultsettotablemodel(rs));                      }                  catch (exception j)                 {                  }                   } 

you mean like...

jtable

with column headers? should wrapping jtable in jscrollpane

have @ how use tables , how use scroll panes more details


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -