-
Bug
-
Resolution: Cannot Reproduce
-
P4
-
None
-
1.4.0
-
None
-
sparc
-
solaris_8
Run the following test case using merlin build85.
steps to reproduce:
1. run the following test case with merlin build 85
2. A window is displayed on the screen
3. Make the mouse right click very close to the window edges.
4. Now a popup menu is displayed.
5. Try selecting any menu item. The popup menu goes behind the window (its parent.).
The problem can be reproduced with swingset2 demo too.
The problem occurs only on solaris.
test case:
-----------
//file mypopup.java
import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.*;
class mypopup extends JFrame
{
public static void main(String ss[])
{
mypopup s = new mypopup();
s.setSize(400,400);
s.setTitle("This is A Demo");
JPopupMenu pp = new JPopupMenu("List");
pp.add(new JMenuItem("Long Line for MenuItem1") );
pp.add(new JMenuItem("Long Line for MenuItem2") );
MouseListener popupListener = new PopupListener(pp);
s.addMouseListener( popupListener);
s.setVisible(true);
}
}
class PopupListener extends MouseAdapter {
JPopupMenu popup = null;
PopupListener(JPopupMenu p)
{
popup = p;
}
public void mousePressed(MouseEvent e) {
maybeShowPopup(e);
}
public void mouseReleased(MouseEvent e) {
maybeShowPopup(e);
}
private void maybeShowPopup(MouseEvent e) {
if (e.isPopupTrigger()) {
//if(e.getComponent().hasFocus() == true )
{
popup.show(e.getComponent(),
e.getX(), e.getY());
}
}
}
}
//test case ends
###@###.### 2001-11-19
steps to reproduce:
1. run the following test case with merlin build 85
2. A window is displayed on the screen
3. Make the mouse right click very close to the window edges.
4. Now a popup menu is displayed.
5. Try selecting any menu item. The popup menu goes behind the window (its parent.).
The problem can be reproduced with swingset2 demo too.
The problem occurs only on solaris.
test case:
-----------
//file mypopup.java
import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.*;
class mypopup extends JFrame
{
public static void main(String ss[])
{
mypopup s = new mypopup();
s.setSize(400,400);
s.setTitle("This is A Demo");
JPopupMenu pp = new JPopupMenu("List");
pp.add(new JMenuItem("Long Line for MenuItem1") );
pp.add(new JMenuItem("Long Line for MenuItem2") );
MouseListener popupListener = new PopupListener(pp);
s.addMouseListener( popupListener);
s.setVisible(true);
}
}
class PopupListener extends MouseAdapter {
JPopupMenu popup = null;
PopupListener(JPopupMenu p)
{
popup = p;
}
public void mousePressed(MouseEvent e) {
maybeShowPopup(e);
}
public void mouseReleased(MouseEvent e) {
maybeShowPopup(e);
}
private void maybeShowPopup(MouseEvent e) {
if (e.isPopupTrigger()) {
//if(e.getComponent().hasFocus() == true )
{
popup.show(e.getComponent(),
e.getX(), e.getY());
}
}
}
}
//test case ends
###@###.### 2001-11-19
- relates to
-
JDK-4402584 JWindow does not visually stay on top of a JFrame on Solaris
-
- Closed
-
-
JDK-4409480 Regression: JComboBox drop down list goes behind the frame
-
- Closed
-
-
JDK-4430368 JComboBox: Selecting the item from JComboBox, JComboBox is behind the frame.
-
- Closed
-
-
JDK-4488428 A display bug in JComboBox in Solaris platform.
-
- Closed
-