Basically what I am trying to achieve is to have an image behind a Power Table. The Power Table will have text in each cell. When you click on a cell the cell background color will be semi-transparent. Any cell that you haven’t clicked on will have a completely transparent background. The end result being that you can see the image behind the Power Table. I have the Power Table background to 255,200,200,50 (tried 255,200,200,0 as well). I have also tried the following initialization script on the Power Table (you can see I am trying several approaches):
from java.awt import Color from java.lang import Object from javax.swing.table import DefaultTableCellRenderer self.setOpaque(False) self.setBackground(Color(255, 200, 200, 50)) self.getTable().getDefaultRenderer(Object).setOpaque(False) self.getTable().getDefaultRenderer(Object).setBackground(Color(255, 200, 200, 50)) renderer = DefaultTableCellRenderer() renderer.setOpaque(False) renderer.setBackground(Color(255, 200, 200, 50)) self.getTable().getColumn('Int Column').setCellRenderer(renderer)
Trying all these things, I cannot see behind the Power Table.
Any ideas? Thanks!