Used AWT to avoid bugs