-
Bug
-
Resolution: Fixed
-
P3
-
7
-
None
-
b20
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2152564 | 6u10 | Alexander Potochkin | P3 | Resolved | Fixed | b05 |
it can overlap the taskbar (see the image attached)
the same behaiviour can be seen for GTK on *nix
Swing doesn't allow popups to overlap taskbar
and it prevents Swing applications from looking native
and the most important it doesn't allow to implement
the JTrayIcon to use JPopupMenu together with awt.TrayIcon
Use the simple test to see that popup doesn't overlap taskbar:
import javax.swing.*;
public class PopupTest {
private static void createGui() {
final JFrame frame = new JFrame();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JPopupMenu menu = new JPopupMenu("Menu");
menu.add(new JMenuItem("MenuItem"));
menu.add(new JMenuItem("MenuItem"));
menu.add(new JMenuItem("MenuItem"));
menu.add(new JMenuItem("MenuItem"));
menu.add(new JMenuItem("MenuItem"));
menu.add(new JMenuItem("MenuItem"));
menu.add(new JMenuItem("MenuItem"));
menu.add(new JMenuItem("MenuItem"));
menu.add(new JMenuItem("MenuItem"));
JPanel panel = new JPanel();
panel.setComponentPopupMenu(menu);
frame.add(panel);
frame.setSize(200, 200);
frame.setLocationRelativeTo(null);
frame.setVisible(true);
}
public static void main(String[] args) throws Exception {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
PopupTest.createGui();
}
});
}
}
- backported by
-
JDK-2152564 Swing Popups should overlap taskbar
- Resolved
- relates to
-
JDK-6888634 test/closed/javax/swing/Popup/TaskbarPositionTest.java fails
- Resolved
-
JDK-6707909 Gnome window manager: Swing popups should overlap taskbar
- Resolved
-
JDK-6778495 JDialog disappears when JCombox has focus
- Closed
-
JDK-6770457 Using ToolTips causes inactive app window to exhibit active window behavior
- Closed
-
JDK-2160179 Regression: heavyweight popups cause SecurityExceptions in applets
- Resolved
-
JDK-6691503 Malicious applet can show always-on-top popup menu which has whole screen size
- Resolved
-
JDK-8074481 [macosx] Menu items are appearing on top of other windows
- Resolved
-
JDK-6694823 A popup menu can be partially hidden under the task bar in applets
- Resolved
-
JDK-6675802 Regression: heavyweight popups cause SecurityExceptions in applets
- Closed
-
JDK-6285881 JTrayIcon: support Swing JPopupMenus for tray icons
- Closed