{
int value = super.showOpenDialog(this);
- /*
- * code below here is not reached in JalviewJS, instead
- * propertyChange() is called for dialog action
- */
- handleResponse(value);
+ if (!Platform.isJS())
+ {
+ /*
+ * code here is not run in JalviewJS, instead
+ * propertyChange() is called for dialog action
+ */
+ handleResponse(value);
+ }
return value;
}
layout.putConstraint(SpringLayout.NORTH, scroller, 5,
SpringLayout.NORTH, this);
- if (Platform.isAMac())
+ if (Platform.isAMacAndNotJS())
{
scroller.setPreferredSize(new Dimension(500, 100));
}