Launching applet/application in new window

Hi again fellows. Game is advancing nicely, but another little bump on the road is slowing me down:

I would like to open the applet in a new window, to allow the user to resize at will.
How is this done? Have been googling for days and only one link so far, which is however not doing what i want.
http://www.jguru.com/faq/view.jsp?EID=567282
With that I can get a new Tab to open (firefox and opera), after getting the popup blocker notification.
Please enlighten me…

The game can be checked out at http://www.slicksandslide.com/,
pressing ‘Aloita Peli’ launches the applet, FI/EN flags change language

My model is the gokgs server, which handles this very nicely.

see http://www.quackit.com/html/codes/html_popup_window_code.cfm

As a workaround, you could start the applet in it’s current window and then have the applet create a new JFrame.

ok, the quackit code makes a beautiful popup new window, but - of course it is the browser window, not the java window
so it doesnt react to resizing… otherwise quite workable.
JFrame ends up doing nearly the same thing, no dynamic resize, just makes a new frame inside the window.
Thank you for the ideas all the same!

Ok my wording is wrong - i guess it’s not a browser window, it’s a java (application?)
launched from the browser window…
there must be an easy way: http://www.gokgs.com/
They seem to know how to do this.
You login, then it pops open a movable, resizable game lobby ON TO THE WORKSPACE. How do they do it?

I tried to make the new JFrame like so, from inside the main applet:

popFrame = new JFrame(“pop”);
popFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
popFrame.setSize(800, 600);

panel = new SlicksPanel();
panel.setSize(800, 600);

popFrame.add(panel);
popFrame.setVisible(true);
panel.init();
panel.requestFocusInWindow();

but it does not make a window on the workspace, it is still inside the browser.

you could try JFrame.setResizable(true); just a thought…

tried that, still no go. Maybe I’m missing something, like are they launching a separate application or something?

in case you missed this, an applet will automatically resize to fit the window it is in if you use the “%” symbol in the applet tag.

<applet … width=100% height=100%>

Ok, I was a bit slow on the uptake, now getting all possible´s:

JFrame, movable window with disadvantage of a grey warning arrow

SlicksPanel panel = new SlicksPanel();
panel.setSize(width, height);
JFrame frame = new JFrame();
frame.setSize(width, height);
frame.add(panel);
frame.setVisible(true);

so simple after all.

JWindow, undecorated gfx whatever screen can give
I can make as big an applet as i want, within the browser window.
I might even be able to resize it at will Inside a specific preset area. http://www.metaportaldermedienpolemik.net/processing.org/applet_resize/ (very cool, but difficult)
I can pop new browser windows

quite impressive array of choices when we get down to it.

But if we look at the gokgs implementation, it is definitely the most natural, as it opens a normal window containing the app on to the desktop.
[CORRECTION] gokgs does indeed have the warning sign, just havent noticed it before :stuck_out_tongue:
thanks anyhows everybody, it was surprisingly hard to find any examples which pop JFrames for the user so i was a bit confused as to how it was done.

P.S. Nothing works on Opera anymore… ayay.lucky it’s still not very popular