N
nick yakman
How can i place an image to the east-side of an applet.
I am using BorderLayout, but can't seem to add my Image pic1.jpg, using:
Image pic;
pic = getImage(getDocumentBase(), "Pic1.jpg");
add(pic, BorderLayout.EAST);
The only way i have managed is using:
public void paint(Graphics g)
{
g.drawImage(pic, 350, 250, 400, 300, this);
}
but if the window is resized the image gets covered.
Many Thanks
K Yakman
I am using BorderLayout, but can't seem to add my Image pic1.jpg, using:
Image pic;
pic = getImage(getDocumentBase(), "Pic1.jpg");
add(pic, BorderLayout.EAST);
The only way i have managed is using:
public void paint(Graphics g)
{
g.drawImage(pic, 350, 250, 400, 300, this);
}
but if the window is resized the image gets covered.
Many Thanks
K Yakman