-
Bug
-
Resolution: Fixed
-
P3
-
1.2.2
-
1.2.2
-
sparc
-
solaris_2.5.1
-
Not verified
Name: akC57697 Date: 02/19/99
The java.awt.dnd.DropTarget throws IllegalArgumentException:
"no representation class specified for:text/plain; charset=iso8859-1"
in java full version "JDK-1.2.2-G"
The javadoc says:
"
public DropTarget(Component c,
int ops,
DropTargetListener dtl,
boolean act,
FlavorMap fm)
Construct a DropTarget
Parameters:
c - The Component with which this DropTarget is associated
ops - The default acceptable actions for this DropTarget
dtl - The DropTargetListener for this DropTarget
act - Is the DropTarget accepting drops.
fm - The flavorMap to use or null
public DropTarget(Component c,
int ops,
DropTargetListener dtl,
boolean act)
Construct a DropTarget
Parameters:
c - The Component with which this DropTarget is associated
ops - The default acceptable actions for this DropTarget
dtl - The DropTargetListener for this DropTarget
act - Is the DropTarget accepting drops.
public DropTarget()
Construct a DropTarget
"
---------------------------------------8-<-----------------------------------
public class Test {
public static void main(String argv[]) {
java.awt.dnd.DropTarget dt = new java.awt.dnd.DropTarget();
System.exit(0);
}
}
---------------------------------------8-<-----------------------------------
java.lang.IllegalArgumentException: no representation class specified for:text/plain; charset=iso8859-1
at java.awt.datatransfer.DataFlavor.initialize(DataFlavor.java:335)
at java.awt.datatransfer.DataFlavor.<init>(DataFlavor.java:250)
at java.awt.datatransfer.SystemFlavorMap.<init>(SystemFlavorMap.java:165)
at java.awt.datatransfer.SystemFlavorMap.getDefaultFlavorMap(SystemFlavorMap.java:77)
at java.awt.dnd.DropTarget.<clinit>(DropTarget.java:67)
======================================================================