H
harald ebert
Hello,
I tried to define and initialize a static variable with an object
whoes constructor throws an Exception.
public class MyClass1 {
private static DataFlavor flavor = new DataFlavor(
DataFlavor.javaJVMLocalObjectMimeType + ";class=MyClass2");
}
The DataFlavor class throws an Exception.
Is it possible to do what i want to do?
How can I catch the Exception?
Thanks for your help
Harald Ebert
I tried to define and initialize a static variable with an object
whoes constructor throws an Exception.
public class MyClass1 {
private static DataFlavor flavor = new DataFlavor(
DataFlavor.javaJVMLocalObjectMimeType + ";class=MyClass2");
}
The DataFlavor class throws an Exception.
Is it possible to do what i want to do?
How can I catch the Exception?
Thanks for your help
Harald Ebert