I have a power table with 480 columns and 1 row with 0s and 1s as a status.
I add script on the power table under Extension Funcions > configureCell, to change the background and foreground color base on the status 0 or 1.
I set the font size to 1 since I am not interest on the value but the color it is displaying. Also uncheck all the behavior checkbox from the power table (Column resize menu, Column resizable, etc…)
this part is working, but when I try to resize the columns, it looks like the column will not resize smaller than ~10 px, and base on my screen size the columns will be around 2-3 px.
I try on the Extension Funcions > initialize, to resize the columns but it will not go into a 2-3px
from javax.swing.border import BevelBorder from javax.swing import BorderFactory from javax.swing import JTable from java.awt import Dimension # remove outside border self.putClientProperty("BevelBorder", BevelBorder) self.putClientProperty("BorderFactory", BorderFactory) self.border = None self.viewport.background = system.gui.color(67,60,69) # ajust the rows height base on the component height tableHeight = self.getHeight() self.setRowHeight(tableHeight) # set column width for x in range(480): self.setColumnWidth(x,2)
So is there a hidden padding, or do I need to applied this somewhere else? or is there a key combination on what is true in the behavior options on the power table?
any guidance will help, thanks