*/
package jalview.jbgui;
-import jalview.util.Platform;
-
import java.awt.Component;
import java.awt.MouseInfo;
import java.awt.Point;
import javax.swing.JSplitPane;
import javax.swing.plaf.basic.BasicInternalFrameUI;
+import jalview.util.Platform;
+
public class GSplitFrame extends JInternalFrame
{
protected static final int DIVIDER_SIZE = 5;
*/
public GSplitFrame(GAlignFrame top, GAlignFrame bottom)
{
+ setFrameIcon(null);
+ setName("jalview-splitframe");
this.topFrame = top;
this.bottomFrame = bottom;
*/
protected void hideTitleBars()
{
- if (new Platform().isAMac())
+ if (Platform.isAMacAndNotJS())
{
// this saves some space - but doesn't hide the title bar
topFrame.putClientProperty("JInternalFrame.isPalette", true);
return false;
}
Point p = comp.getLocationOnScreen();
- Rectangle r = new Rectangle(p.x, p.y, comp.getWidth(), comp.getHeight());
+ Rectangle r = new Rectangle(p.x, p.y, comp.getWidth(),
+ comp.getHeight());
return r.contains(loc);
}
else
{
this.dividerRatio = splitPane.getDividerLocation()
- / (double) (splitPane.getHeight() - splitPane
- .getDividerSize());
+ / (double) (splitPane.getHeight()
+ - splitPane.getDividerSize());
}
if (alignFrame == this.topFrame)