- Yes. I see two solutions here: use a Swing Timer that repeatedly changes the value of the progress bar or use the
setIndeterminate(true)
of theJProgressBar
. - Yes and no. Yes you can use it in a JTable (you need to change the TableCellRenderer). However, if you plan on using the "Indeterminate" progress bar, it won't work because of the JTable rendering mechanism which only "paints" the component but there are no "live" components inside the
JTable
.
Providing more context and what you are actually targetting would probably allow us to give you a more detailed and concise answer.