JTable Row selection background problem.
I have a JTable and to set a picture as background in JTable and other properties i used this code. tblMainView= new JTable(dtModel){ public Component prepareRenderer(TableCellRenderer renderer, int row, int column) { Component c = super.prepareRenderer( renderer, row, column); // We want renderer component to be transparent so background image // is visible if( c instanceof JComponent ) ((JComponent)c).setOpaque(false); return c; } ImageIcon image = new ImageIcon( "images/watermark.png" ); public void paint( Graphics g ) { // First draw the background image - tiled Dimension d = getSize();