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

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P3
    • None
    • Affects Version/s: 1.1.3
    • Component/s: 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

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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: