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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 5.0
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:

      Description

      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



        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: