System.out.println(viewArea.x+","+viewArea.y);
    public void paint(Graphics g) {        /*if (myView != null) {            myView.paint(g);        }*/        if(renderedMap != null) {            g.drawImage(renderedMap, 0, 0, null);        }                if (mainPanel != null) {            g.setColor(Color.yellow);            Rectangle viewArea = mainPanel.getViewport().getBounds();            //Rectangle viewArea = mainPanel.getViewportBorderBounds();            if (viewArea != null) {                System.out.println(viewArea.x+","+viewArea.y);                g.drawRect(                        (int)((viewArea.x-1) * scale),                        (int)((viewArea.y-1) * scale),                        (int)((viewArea.width-1) * scale),                        (int)((viewArea.height-1) * scale));            }        }    }