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

JMenuBar failes to redraw when a JToolBar is dragged over it.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 5.0
    • client-libs

      Date: Thu, 08 Jan 2004 13:30:15 +0100
      From: <###@###.###>
      Subject: Bugreport
      To: ###@###.###

      Java version

      java version "1.5.0-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b31)
      Java HotSpot(TM) Client VM (build 1.5.0-beta-b31, mixed mode)

      OS

      Windows XP professional SP 1


      Synopsis

      JMenuBar failes to redraw when a JToolBar is dragged over it.


      Source code

      JFrame frame = new JFrame();
      JMenuBar menuBar = new JMenuBar();
      JMenu menu = new JMenu("File");
      JMenuItem item1 = new JMenuItem("Open");
      menu.add(item1);
      menuBar.add(menu);
      frame.setJMenuBar(menuBar);

      JToolBar toolBar = new JToolBar();
      toolBar.add(new AbstractAction("ascsc"){public void
      actionPerformed(ActionEvent e){}});
      frame.getContentPane().add(toolBar);

      frame.setSize(640,480);
      frame.setVisible(true);


      How to

      compile and run sample program
      drag toolbar (making it a window)
      drag the window ontop of the menu, a trail of a different color is left
      behind



            kereminsunw Konstantin Eremin (Inactive)
            gafter Neal Gafter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: