简体   繁体   中英

how to fetch tables from database of mysql in JtextArea with checkbox in swing

Actually I want fetch tables and display like following image

有效的XHTML .

Can you help me?

Steps:

  1. Run a query on your database to retrieve the tables and their meta data.
  2. Store the results in suitable objects and pass them to your front end
  3. Use JXTreeTable from SwingX but customize the Renderer and Editor for it to display and allow users to interact with the check boxes.

Realize this is a complex GUI component you are creating so don't try it all in one shot, get the JXTreeTable working with your data, then try to add in the check boxes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM