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

The constructor JToolBar(int) does not set orientation.

    Details

    • Subcomponent:
    • Resolved In Build:
      beta
    • CPU:
      x86, sparc
    • OS:
      solaris_2.5.1, windows_nt

      Description



      Name: aaC67449 Date: 06/24/99


      The constructor JToolBar(int) does not set orientation.

      Javadoc:"
      public JToolBar(int orientation)

            Create a new toolbar.
            Parameters:
                  orientation - The initial orientation (HORIZONTAL/VERTICAL)
      "

      See example:

      ----------------- example -----------
      import javax.swing.JToolBar;

      public class Test {

         public static void main(String argv[]) {
             JToolBar c = new JToolBar(JToolBar.VERTICAL);
             if(c.getOrientation()!=JToolBar.VERTICAL) {
                 System.out.println("Failed");
             } else {
                 System.out.println("Passed");
             }
          }

      }
      -------------- JDK1.3-H output -----------
      Failed


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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gsaab Georges Saab
                Reporter:
                alisunw Ali Ali (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: