Hi,
I was trying to add a JPopupMenu to the CollapsiblePane using the
pane.setComponentPopupMenu() method but nothing shows up. I am using JDK 1.5.
Would you have any suggestions/workarounds for this?
Thanks
Moderator: JIDE Support
private static CollapsiblePane createOtherPlacesPane() {
CollapsiblePane pane = new CollapsiblePane("Other Places");
JidePopupMenu popup = new JidePopupMenu();
popup.add(new JMenuItem("ABC"));
...
public class JideTest extends JFrame {
public static void main(String[] args){
new JideTest();
}
public JideTest(){
super("CollapsiblePane Test for Popups");
CollapsiblePane pane = new CollapsiblePane("Other Places");
JidePopupMenu popup = new JidePopupMenu();
popup.add(new JMenuItem("ABC"));
pane.setComponentPopupMenu(popup);
getContentPane().add(pane);
setPreferredSize(new Dimension(200,100));
setVisible(true);
pack();
}
}
Users browsing this forum: No registered users and 17 guests