Avoiding JTextField setText repetition around the program

后端 未结 2 1164
我寻月下人不归
我寻月下人不归 2020-12-22 11:28

Here is a method which displays Jobs from SQlite onto a table and sets them as labelText appropriately.

private void setLabelText(         


        
相关标签:
2条回答
  • 2020-12-22 11:51

    You might want to look at the Apache Commons DbUtils, which uses Class Literals as Runtime-Type Tokens and ResultSetMetaData to simplify some of the more tedious parts of JDBC.

    0 讨论(0)
  • 2020-12-22 12:05

    Despite JTextField being for editing you could use for displaying your results. You could change to editable whenever clicked.

    0 讨论(0)
提交回复
热议问题