Bug 24423 - JPopupMenu doesent get invisible when parent frame gets moved
Summary: JPopupMenu doesent get invisible when parent frame gets moved
Status: RESOLVED FIXED
Alias: None
Product: classpath
Classification: Unclassified
Component: swing (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
: 23998 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-10-18 08:19 UTC by Beat Wolf
Modified: 2006-06-15 17:30 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2005-10-18 18:34:52


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Beat Wolf 2005-10-18 08:19:57 UTC
If you open a jpopupmenu and you move the window to which it is attached, the jpopupmenu should get invisble. it doesent and stays where it is.
here a testcase, just open the menu and move the menu (while the menu is open)
this is the same testcase that also show the bug that the jmenuitem or the jpopupmenu (i think the later?) isnt updated correctly if the name of a item changes.  it also shows the bug of non resizable jframes.

package test;

import java.awt.Dimension;

import javax.swing.*;        

public class SwingTest {
    private static void createAndShowGUI() {
    	
        JFrame frame = new JFrame("HelloWorldSwing");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        
        JMenuBar bar = new JMenuBar();
        JMenu menu = new JMenu("asdfasd");
        JMenuItem item1 = new JMenuItem("aa");
        menu.add(item1);
        bar.add(menu);
        
        frame.setSize(new Dimension(600, 450)); 
        frame.setResizable(true);
        frame.setJMenuBar(bar);
        item1.setText("Long name");
        frame.setVisible(true); 
    }

    public static void main(String[] args) {
        javax.swing.SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                createAndShowGUI();
            }
        });
    }
}
Comment 1 Andrew Pinski 2005-10-18 18:34:52 UTC
Confirmed.
Comment 2 Lillian Angel 2006-03-28 18:03:00 UTC
*** Bug 23998 has been marked as a duplicate of this bug. ***
Comment 3 Lillian Angel 2006-06-15 17:30:35 UTC
This seems to be fixed.