[英]Populate JTable using .db file
I am currently making a mobile forensic toolkit for a project I have been given. 我目前正在为一个已经获得的项目制作移动取证工具包。 I have hit a dead end and hoping someone could help me.
我走到了尽头,希望有人能帮助我。
On Android, text messages, call logs, contacts etc are all saved as .db
files and I am hoping I can populate a JTable to show the results when pressed on a specific button. 在Android上,短信,通话记录,联系人等都保存为
.db
文件,我希望我可以填充JTable来显示按特定按钮时的结果。 For example you click view texts and the JTable fills with all the text messages on the phone. 例如,单击查看文本,JTable将填充电话中的所有文本消息。 Also the
.db
files are full of columns that I will not need to show so is there a way to only select the columns that I do want to us? 而且
.db
文件中充满了我不需要显示的列,因此有没有办法只选择我想要显示的列?
I would use SQLite JDBC driver to access these DB files. 我将使用SQLite JDBC驱动程序来访问这些数据库文件。
Then bind JDBC data to JTable as described here: 然后按照以下说明将JDBC数据绑定到JTable:
How to fill data in a JTable with database? 如何用数据库填充JTable中的数据?
See also: https://stackoverflow.com/questions/2149438/tool-to-see-android-database-tables-and-data 另请参阅: https : //stackoverflow.com/questions/2149438/tool-to-see-android-database-tables-and-data
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.