@Override public void setBackground(Color color) { super.setBackground(color); for (Component c : this.getComponents()) { if (c instanceof DataPanel) { c.setBackground(color); } } }
@Override protected void paintChildren(Graphics g) { autoscale(); super.paintChildren(g); if (IGV.getInstance().isRulerEnabled()) { int start = MouseInfo.getPointerInfo().getLocation().x - getLocationOnScreen().x; g.setColor(Color.BLACK); g.drawLine(start, 0, start, getHeight()); } }