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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: 1.1.3
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • CPU:
      sparc
    • OS:
      solaris_2.5.1

      Description



      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

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

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: