Hello,
is the Panel already visible?
If not, then show() it before getting a Image!
greetings
Chris
Manfred Bartz wrote:
>
> I want to create an off-screen image in a Swing application.
> The program compiles without errors, but createImage() always
> returns null.
>
> The only examples from the tutorial that contain createImage() are
> applets (not swing applications) and seem to work fine.
>
> For verification, I included the relevant code snippet (as shown
> below) in a swing application example from the tutorial -- same
> result.
>
> Am I missing something??? or is that a swing bug?
> I am using jdk117_v1a, swing-1.1.1-beta1
...
>
> Any feedback appreciated
> --
> Manfred
--
public class chu extends ChrisHübsch implements TUChemnitz {
String email = "mailto:[EMAIL PROTECTED]";
String SMSMail = "mailto:[EMAIL PROTECTED]?Subject=SMS: info";
URL homepage = new URL("http://www.tu-chemnitz.de/~chu/");
Talk talkto = new Talk("[EMAIL PROTECTED]");
Integer ePlus = new Integer(4628555);
}