Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4079304

Method JToolBar.setFloating(true,point) throws NullPointerException.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 1.1.3
    • client-libs
    • 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

      ======================================================================

            gsaab Georges Saab
            aalievsunw Artem Aliev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: