Reputation: 4789
I have to run a java program which has a applet embedded within a Frame . I am doing this because I want to run applet as a application.
It works awesome when I run it on my local machine but It does not when I want to do it in remote machine. The program seems to be running my main () but I am not able to see the window.
I tried ssh -X and ssh -t but of no use.
Here is the test code
public static void main(String args[]){ final DatingGUI applet = new DatingGUI(); applet.init(); applet.start(); Frame frame = new Frame("RKY-Dating-Game Applet"); frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { System.exit(0); } }); frame.add(applet); frame.setSize(IDEAL_WIDTH,IDEAL_HEIGHT); frame.setVisible(true); }
Any help is appreciated.
Thank you.
Upvotes: 1
Views: 324
Reputation: 4789
Well , I figured out. The plugin x11 was missing in my Mac. I installed it and the issue was fixed.
Upvotes: 1