mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-04-19 06:49:55 +00:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user