See the attached code for what I mean;
- Code: Select all
public static void main(String[] args) {
final JFrame d = new JFrame();
final JidePopupMenu ppm = new JidePopupMenu();
for (int j = 1; j < 150; j++) {
JMenu option = new JMenu("JMenu Option " + j);
for (int i = 1; i < 150; i++) {
option.add(new JMenuItem("JMenuItem Option " + i));
}
ppm.add(option);
}
d.addMouseListener(new MouseAdapter() {
public void mouseClicked(MouseEvent e) {
ppm.show(d, e.getX(), e.getY());
}
});
d.setPreferredSize(new Dimension(200, 100));
d.setVisible(true);
d.pack();
}
The list of JMenu Options scrolls perfectly fine, but their submenus does not.
I have tried adding a simple scroll to the popup menu (with all the menuitems) but each time I hover over that menu item the popup disappears....