JOptionPane possible in slick2d ?

If so, should I call it inside update or render method ?