Java – add load circle to JTable
•
Java
I have a JTable to load data from the database Because there is too much data sometimes, I want to add a loading circle in JTable to inform the user that the data is loading This is what I want it to look like:
Is that possible? How do I do this in swing?
PS: I don't want to use the progress bar. I just want the circle in the table
Update: this table is part of the GUI. I just want to disable or display the loading in JTable and keep other components unchanged
Solution
1) Translucent & amp; Modal & UN_ Modified jdialog (block mouse events to parent)
2) To glasspane (can block mouse events)
3) To jviewport
edit
If your SQL interpreter supports paginations, split the SQL resultset (5 – 20 pieces) and use jpprogressbar instead of circular images,
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码