Re: Java Windows question..
JTapio wrote:
....
I have an homepage www.eurojari.net containing an applet runnable..
...hmmm. After visiting your homepage, and waiting several
minutes for the multitude of images and resources to load,
I saw a message about how this site was best viewed at
some 'screen resolution', and left.
I realise you were not asking us to critique the homepage, but
I will. Remove most of the images, or include tiny versions
(in both WxH and bytes) on the homepage, but link to large versions.
Move the applet from the homepage, onto a page where the user
is warned to expect to 'wait a few moment' for it to load, or better,
load it using webstart in a free floating window.
Designing for a particular screen size fell out of fashion last
millenium, make web sites for the users' screen size instead.
The bottom line of the web page (re., updates) has a typo.
if i add an image to my applet witch has an question of yes or no 'shall we
open a window' then,
how to i:
open fullscreen sized window
<sscce>
import java.awt.*;
import java.applet.*;
public class AppletWindow extends Applet {
public void init() {
Frame f = Frame.getFrames()[0];
Window w = new Window(f);
w.setSize(
Toolkit.getDefaultToolkit().getScreenSize() );
w.setVisible(true);
}
}
</sscce>
.... ready to receive Graphics2D commands from my
applet run()..
Is this an Applet or JApplet?
Andrew T.