References
External links
List of all VST plugins by country of origin
Category:Audio software
Category:Audio software for Linux
Category:Native InstrumentsQ:
Adding loading image on top of JTable that is loading data
I want to display loading image on top of JTable that is loading data.
How can i do it? Is there any property to do it?
A:
Look at JTable.setIconTextGap
JTable jTable = new JTable( data );
jTable.setIconTextGap( 20 );
For more examples, check out
Edit: Here's a screenshot.
I made a custom TableCellRenderer, and used it to change the background color:
public class MyTableCellRenderer extends JTable.TableCellRenderer {
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
setBorder( new LineBorder( new Color( 0, 0, 0, 0.25f ) ) );
super.getTableCellRendererComponent( table, value, isSelected, hasFocus, row, column );
if ( row % 2 == 0 ) {
if ( isSelected ) {
setForeground( new Color( 180, 180, 180 ) );
}
else {
}
else {
setForeground( new Color( 0, 0, 0 )
Related links:
Comments