private void handleDraging(MouseEvent e) {
            int dx = e.getX()+ - lastDragPoint.y;
            if(dx > 100 && !hasSwitched){
                currentMessageIndex++;
                if(currentMessageIndex > messages.size()-1) currentMessageIndex = 0;
                hasSwitched = true;
            }
            else if(dx < -100 && !hasSwitched){
                currentMessageIndex--;
                if(currentMessageIndex < 0) currentMessageIndex = messages.size()-1;
                hasSwitched = true;
            }
            setText();
            
        }