hi,
i'm driving nuts not understanding what it takes to draw a jpg to my tab panel (or any other place in my applet).
this is what i did so far. it fails when i want to instantiate the Graphics object. what am i doing wrong
String firstImage = "C:\\folder\\photos\\test.jpg";
Toolkit tk = Toolkit.getDefaultToolkit();
Image img = tk.getImage(firstImage);
img = getImage(getDocumentBase(), firstImage);
Graphics g = img.getGraphics();
i'd appreciate any help. thanks heaps. (btw. i just read Toolkit class touches OperationSystem dependent resp. native OS behaviours. Any other way to output images in an applet?)
i'm driving nuts not understanding what it takes to draw a jpg to my tab panel (or any other place in my applet).
this is what i did so far. it fails when i want to instantiate the Graphics object. what am i doing wrong
String firstImage = "C:\\folder\\photos\\test.jpg";
Toolkit tk = Toolkit.getDefaultToolkit();
Image img = tk.getImage(firstImage);
img = getImage(getDocumentBase(), firstImage);
Graphics g = img.getGraphics();
i'd appreciate any help. thanks heaps. (btw. i just read Toolkit class touches OperationSystem dependent resp. native OS behaviours. Any other way to output images in an applet?)