X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fappletgui%2FFeatureSettings.java;h=b58d3456e3533e85d338994c56f17fe77bb66320;hb=54904100ca490c7ca4484a88bf40963e48a35eec;hp=a733e24c1763300c9d01178fa804cf859b145c86;hpb=bceadbb394604c88ac18e2dcf4b33e735377d7ac;p=jalview.git diff --git a/src/jalview/appletgui/FeatureSettings.java b/src/jalview/appletgui/FeatureSettings.java index a733e24..b58d345 100755 --- a/src/jalview/appletgui/FeatureSettings.java +++ b/src/jalview/appletgui/FeatureSettings.java @@ -104,9 +104,10 @@ public class FeatureSettings extends Panel implements ItemListener, } frame = new Frame(); frame.add(this); - int height = featurePanel.getComponentCount()*50 +30; + int height = featurePanel.getComponentCount()*50 +60; - height = Math.max(100, height); + + height = Math.max(200, height); height = Math.min(400, height); jalview.bin.JalviewLite.addFrame(frame, "Feature Settings", 280, @@ -117,6 +118,8 @@ public class FeatureSettings extends Panel implements ItemListener, { g.setColor(Color.black); g.drawString("No Features added to this alignment!!", 10, 20); + g.drawString("(Features can be added from searches or", 10, 40); + g.drawString("from Jalview / GFF features files)", 10, 60); } void setTableData() @@ -403,8 +406,9 @@ public class FeatureSettings extends Panel implements ItemListener, int height = evt.getY()+evt.getComponent().getLocation().y; - if(height > this.getSize().height) + if(height > featurePanel.getSize().height) { + comp = featurePanel.getComponent(featurePanel.getComponentCount()-1); } else if(height < 0)