git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
542d15c
)
JAL-2473 revised default minimum dimension for Alignment Frame windows
author
tcofoegbu
<tcnofoegbu@dundee.ac.uk>
Fri, 2 Jun 2017 14:29:25 +0000
(15:29 +0100)
committer
tcofoegbu
<tcnofoegbu@dundee.ac.uk>
Fri, 2 Jun 2017 14:29:25 +0000
(15:29 +0100)
src/jalview/gui/Desktop.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/Desktop.java
b/src/jalview/gui/Desktop.java
index
63d88a0
..
d076ba0
100644
(file)
--- a/
src/jalview/gui/Desktop.java
+++ b/
src/jalview/gui/Desktop.java
@@
-133,6
+133,10
@@
public class Desktop extends jalview.jbgui.GDesktop implements
private static int DEFAULT_MIN_HEIGHT = 250;
private static int DEFAULT_MIN_HEIGHT = 250;
+ private static int ALIGN_FRAME_DEFAULT_MIN_WIDTH = 600;
+
+ private static int ALIGN_FRAME_DEFAULT_MIN_HEIGHT = 70;
+
private static final String EXPERIMENTAL_FEATURES = "EXPERIMENTAL_FEATURES";
private JalviewChangeSupport changeSupport = new JalviewChangeSupport();
private static final String EXPERIMENTAL_FEATURES = "EXPERIMENTAL_FEATURES";
private JalviewChangeSupport changeSupport = new JalviewChangeSupport();
@@
-846,7
+850,19
@@
public class Desktop extends jalview.jbgui.GDesktop implements
{
frame.setMinimumSize(new Dimension(DEFAULT_MIN_WIDTH,
DEFAULT_MIN_HEIGHT));
{
frame.setMinimumSize(new Dimension(DEFAULT_MIN_WIDTH,
DEFAULT_MIN_HEIGHT));
+
+ // Set default dimension for Alignment Frame window.
+ // The Alignment Frame window could be added from a number of places,
+ // hence,
+ // I did this here in order not to miss out on any Alignment frame.
+ if (frame instanceof AlignFrame)
+ {
+ frame.setMinimumSize(new Dimension(ALIGN_FRAME_DEFAULT_MIN_WIDTH,
+ ALIGN_FRAME_DEFAULT_MIN_HEIGHT));
+ }
}
}
+
+
frame.setVisible(makeVisible);
frame.setClosable(true);
frame.setResizable(resizable);
frame.setVisible(makeVisible);
frame.setClosable(true);
frame.setResizable(resizable);