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,6 +1,12 @@
package com.limelight;
import java.net.NetworkInterface;
import java.util.Enumeration;
import javax.swing.JOptionPane;
import javax.swing.JSpinner;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import com.limelight.binding.PlatformBinding;
import com.limelight.gui.MainFrame;
@@ -11,7 +17,7 @@ import com.limelight.nvstream.av.video.VideoDecoderRenderer;
public class Limelight implements NvConnectionListener {
public static final double VERSION = 1.0;
private String host;
private StreamFrame streamFrame;
private NvConnection conn;
@@ -36,6 +42,22 @@ public class Limelight implements NvConnectionListener {
}
public static void main(String args[]) {
// take the menu bar off the jframe
System.setProperty("apple.laf.useScreenMenuBar", "true");
// set the name of the application menu item
System.setProperty("com.apple.mrj.application.apple.menu.about.name", "Limelight");
// set the look and feel
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (Exception e) {
System.out.println("OH Shit...");
e.printStackTrace();
System.exit(1);
}
MainFrame limeFrame = new MainFrame();
limeFrame.build();
}