private void setPostion(final int offset){
        int x = panel.getX();
        int y = panel.getY();
        int x2 = tagPanel.getX();
        int y2 = tagPanel.getY();
        if(Debug.shimmy)System.out.println("   offset = " + offset);

        if(direction=="left" || direction=="right"){
        		x=offset;
        		x2=offset+panel.getWidth();
        }
        else if(direction=="up"){
        	y=offset;
        }
        else if(direction=="down"){
        	y=offset;
        	y2 = offset-tagPanel.getHeight();
        }

        panel.setLocation(new Point(x,y));
        tagPanel.setLocation(new Point(x2,y2));
        panel.repaint();

        if(Debug.shimmy)System.out.println("Set Location="+ x+","+y);
        if(Debug.shimmy)System.out.println("Set Location2="+ x2+","+y2);
    }