g.setColor(Color.red);
g.setColor(Color.yellow);
    public void paint(Graphics g) {        //if(myView != null)        //	myView.paint(g);        if (mainPanel!=null) {            g.setColor(Color.red);            Rectangle viewArea = mainPanel.getGraphics().getClipBounds();            if (viewArea != null) {                g.drawRect(                        (int)(viewArea.x * scale),                        (int)(viewArea.y * scale),                        (int)(viewArea.width * scale),                        (int)(viewArea.height * scale));            }        }    }