stream frame is now built. frames are now created centered. now show appname on osx instead of com.limelight.limelight

This commit is contained in:
Diego Waxemberg
2013-12-05 21:31:02 -05:00
parent 23790f9b6a
commit 2e11b28db5
3 changed files with 37 additions and 4 deletions

View File

@@ -1,11 +1,18 @@
package com.limelight.gui;
import java.awt.Dimension;
import java.awt.Toolkit;
import javax.swing.JFrame;
public class StreamFrame extends JFrame {
private static final long serialVersionUID = 1L;
public void build() {
Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
this.setSize(1280,720);
//This might break if the screen res is too small...not sure though
this.setLocation(dim.width/2-this.getSize().width/2, dim.height/2-this.getSize().height/2);
this.setVisible(true);
}
}