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

The constructor JToolBar(int) does not set orientation.

XMLWordPrintable

    • beta
    • x86, sparc
    • solaris_2.5.1, windows_nt



      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


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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: