}
*/
- try
- {
- APQHandlers.setAPQHandlers(this);
- } catch (Exception e)
- {
- System.out.println("Cannot set APQHandlers");
- // e.printStackTrace();
- } catch (Throwable t)
+ if (!Platform.isJS())
{
- System.out.println("Cannot set APQHandlers");
- // t.printStackTrace();
+ try
+ {
+ APQHandlers.setAPQHandlers(this);
+ } catch (Throwable t)
+ {
+ System.out.println("Error setting APQHandlers: " + t.toString());
+ // t.printStackTrace();
+ }
}
-
addWindowListener(new WindowAdapter()
{
static
{
- specversion = Float
- .parseFloat(System.getProperty("java.specification.version"));
+ specversion = Platform.isJS() ? Float.valueOf(8)
+ : Float.parseFloat(
+ System.getProperty("java.specification.version"));
modern = 11;
if (specversion >= modern)