git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixing array processing order
[jalview.git]
/
src
/
jalview
/
io
/
JalviewFileChooser.java
diff --git
a/src/jalview/io/JalviewFileChooser.java
b/src/jalview/io/JalviewFileChooser.java
index
c275ef0
..
67f1115
100755
(executable)
--- a/
src/jalview/io/JalviewFileChooser.java
+++ b/
src/jalview/io/JalviewFileChooser.java
@@
-193,15
+193,13
@@
public class JalviewFileChooser extends JFileChooser implements DialogRunnerI,
{
int value = super.showOpenDialog(this);
{
int value = super.showOpenDialog(this);
- /*
- * code below here is not reached in JalviewJS, instead
- * propertyChange() is called for dialog action
- */
- /**
- * @j2sNative
- */
+ if (!Platform.isJS())
{
{
- handleResponse(value);
+ /*
+ * code here is not run in JalviewJS, instead
+ * propertyChange() is called for dialog action
+ */
+ handleResponse(value);
}
return value;
}
}
return value;
}
@@
-471,7
+469,7
@@
public class JalviewFileChooser extends JFileChooser implements DialogRunnerI,
layout.putConstraint(SpringLayout.NORTH, scroller, 5,
SpringLayout.NORTH, this);
layout.putConstraint(SpringLayout.NORTH, scroller, 5,
SpringLayout.NORTH, this);
- if (Platform.isAMac())
+ if (Platform.isAMacAndNotJS())
{
scroller.setPreferredSize(new Dimension(500, 100));
}
{
scroller.setPreferredSize(new Dimension(500, 100));
}