-
Bug
-
Resolution: Not an Issue
-
P3
-
None
-
1.1.3
-
sparc
-
solaris_2.5.1
Name: aaC67449 Date: 09/16/97
Method com.sun.java.swing.JToolBar.setFloating(true,point) throws java.lang.NullPointerException.
Swing version is 0.4.1
-------------------Example-----------------------------------
import com.sun.java.swing.*;
public class Test {
public static void main( String argv[] ) {
JToolBar c=new JToolBar(); // Create JToolBar object
c.setFloatable(true);
try {
c.setFloating(true, new java.awt.Point(1,1));
System.out.println("Passed.");
} catch(Exception e) { // test no exception was thrown
System.out.println("Failed. Unexpected Exception: " + e);
}
}
}
-------------------Output------------------------------------
Failed. Unexpected Exception: java.lang.NullPointerException
======================================================================