Popup menu Problem

I gave the following code to add the menu item to Popup menu. I am getting the null pointer exception in the 2nd line i.e
popupMenu.add(jMenuActionsAutoMapDefaultPreferences);
Is there something I am doing wrong.
JMenuItem jMenuActionsAutoMapDefaultPreferences = new JMenuItem("Default Preferences");
popupMenu.add(jMenuActionsAutoMapDefaultPreferences);
Thanks.

Are you sure you've done this somewhere?
popupMenu = new JPopupMenu();

Similar Messages

  • Help...popup menu problem

    problem with popup menu
    i've designed the poopmenu in firworks...imported the file
    into dreamweaver...but when mouse is over the menu the drop down
    menu goes behind the flash animation placed below it.....how to
    fix?????:

    All Active content on a page will always rise to the top, so
    to speak,
    including Flash, certain form elements, Java applets, and
    Active X controls.
    This means that each of these will poke through layers. There
    is not a good
    cross-browser/platform reliable way to solve this issue, but
    if you can be
    confident in your visitors using IE 5+ or NN6+, then you can
    use the Flash
    wmode parameter (however, Safari does not support this
    properly!).
    Adobe articles:
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_15523
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14201
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Mister Mustard" <[email protected]> wrote in message
    news:[email protected]..
    > On Fri, 7 Sep 2007 10:32:03 +0000 (UTC),
    "Krutika.deshpande"
    > <[email protected]> wrote:
    >
    >>problem with popup menu
    >> i've designed the poopmenu in firworks...imported
    the file into
    >>dreamweaver...but when mouse is over the menu the
    drop down menu goes
    >>behind
    >>the flash animation placed below it.....how to
    fix?????:
    >
    > There is at least one method that allows content to rise
    above Flash,
    > but I've never used it. You might check the Flash group
    or Google.

  • Popup menue problem

    when adding popup menues on text pane component then try to appeare it ,the textpane component appeare in front of the popup menue
    i want fix this problem!!!!!

    Read the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/components/menu.html#popup]How to Use Menus for a working example of using popup menus.
    If you need further help then you need to create a [url http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program (SSCCE) that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
    And don't forget to use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags so the code retains its original formatting.

  • Toolbar Popup Menu Problem

    I've got a problem where if I click on any of the options in the toolbar in Photoshop CS5 that if the tool has options they popup instantly instead of clicking and holding.
    Please say there's a solution for this as it's driving me crazy
    Thanks

    I don't know if to mark this question as answered or not as I would love to have a definitive to the solution.
    But...
    It actually fixed it's self... which I can't explain... I'm guessing it's the good old ask for help on a forum after struggling for days to find a solution and it magically fixes it's self the moment you post asking for help.
    It was a fresh install on the new MacBook Pro, all the updates so I'm not sure what caused it.
    Thanks again for your help.

  • Popup menu problems

    I made these really nice buttons and im trying to get popup
    menus to pop down from the bottom ones i put the behavior in but
    there not coming down. does anyone have any clue why it would not
    do it? its the computer hardware button
    www.triforcetechs.com

    You do not want to use the DW pop-up menus. They are simply
    embarrassingly
    bad.
    Check the uberlink and MacFly tutorials at PVII -
    http://www.projectseven.com/
    and the Navbar tutorial/articles at Thierry's place
    http://tjkdesign.com/articles/dropdown/
    Or this one (more recent article):
    http://tjkdesign.com/articles/Pure_CSS_Dropdown_Menus.asp
    Or to get it done fast, go here -
    http://www.projectseven.com/tutorials/navigation/auto_hide/index.htm
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Monarky2000" <[email protected]> wrote in
    message
    news:eqiv9b$op7$[email protected]..
    >I made these really nice buttons and im trying to get
    popup menus to pop
    >down
    > from the bottom ones i put the behavior in but there not
    coming down. does
    > anyone have any clue why it would not do it?
    >
    > www.triforcetechs.com
    >

  • Again same popup menu problem(plzzzzz)

    hi
    frens till now i m not getting any result.
    i want to show u what kind of menu i want.
    this is link
    http://simplythebest.net/scripts/DHTML_scripts/dhtml_script_114a.html
    plz try it and if u get desired output plz send the modified code for me
    i have worked on that but it was not giving the right one.
    plz try it i m waiting
    thanx

    Please use your original thread

  • FW 8 popup-menu in CSS problem with IE7 & Safari

    Hi,
    hope that anyone out there got some ideas in my issue. I was
    already searching the forum for advice, but couldn't find
    meaningful infos.
    Here is my problem:
    I designed a page in FW8 (Mac) with a nice popup-menu. I
    exported this thing into DW8 having set the option to export the
    menu as CSS and slices to layers. Then I rearranged the html File
    and included some editable regions, as it was to be used as an
    template.
    Everything works fine in Firefox but IE7 and Safari
    experience some problems.
    The popup-layers are displayed behind the main text-area and
    not in front of it - this makes navigation a bit complicated.
    So teh menu is displayed with text and everything, but behind
    the main text.
    What I tried:
    I tried to reset the z-Index of the popup-layers to values
    below 10 (were set to 500) - didn't help.
    I gave every single item a z-index - didn't help.
    I gave the main text area an z-index of 0 or -1 - made the
    layer disappear.
    I reexported the whole thing - made me just crazy.
    I worked through the css file for errors - maybe I'm not to
    good in CSS ;)
    I checked the forums, but could only find issues where the
    menu was not displayed at all or the text was missing - doesn't
    apply.
    -- no more ideas :(
    Link to my page:
    Website
    Link
    I really appreciate your help! Any comments welcome!
    patrick

    > I think it's a bug with ie7. It doesn't support
    javascript completely,
    > nor
    > does it css.
    I don't think this is accurate. Each browser supports things
    differently,
    and CSS is no exception, but support for javascript is fairly
    reliable
    across the board.
    > but I can't find one that I can use my own images, yet
    Then you are not looking in the right place. Go here -
    http://www.projectseven.com/
    and examine their extensive collection of menu products.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "udigrudi" <[email protected]> wrote in
    message
    news:ful3t7$n9u$[email protected]..
    > I've had a similar problem, menus made in Fireworks 8
    don't show up
    > completely
    > in ie7 for windows either. The menu shows up, but the
    text of submenus
    > with
    > submenus doesn't show up.
    >
    > I think it's a bug with ie7. It doesn't support
    javascript completely,
    > nor
    > does it css.
    >
    > Since your website has disappeared, I'm sorry I can't be
    of more help.
    > I'm
    > thinking of getting a "third party" submenu generator
    (but I can't find
    > one
    > that I can use my own images, yet)
    >

  • Problems with Popup Menu on Mac

    Hi,
    i've created an application which displays a Popup menu.
    i've used me.isPopupTrigger() to display the popup.it works well on windows.
    but when i run the same on Mac OS-X .it is not at all showing the Popup menu.
    is there any way i can solve this.
    this is very urgent.Pls help me out.
    Thanx in advance,
    Gsimhan

    Hi,
    I'm trying to find out the way how to solve it, because I have the same problem.
    It seems isPopupTrigger() return false under MacOS and under Linux (atleast MacOS X and RedHat 8).
    Did you solve this problem already. If so, please, let me know how.
    Best regards.

  • Problem with Pre-Popup-Menu in Hierarchical Tree

    Hi,
    In Forms 10g I have made an application with an Hierarchical Tree. All works well, except the use of the Pre-Popup-Menu trigger.
    In that trigger when I read the values of Node_Label and Node_Value I get the values of the previous selected node, not the values of the node on which I issue the right mouse click. So, it seems that by clicking the node I need is not selected.
    Does anyone have any clues to solve this problem?
    Thanks in advance.

    Right clicking does not change the current selection. The tree has no way to report what node was right clicked. Only work around is to left click the node you wish then right click it.
    --pat                                                                                                                                                                                                                                                                                                                                                                                                       

  • Problem with fireworks popup menu in dreamweaver, has a huge box.

    hi, i made a popup menu in fireworks, and when i open that
    html page in dreamweaver, there is a huge white box around the
    popup menu area, so that i cant type anything under the menu or
    anywhere near it. i was wondering how i get rid of this white box.
    any help greatly appreciated. thanks. derek
    here is the code

    You have Dreamweaver, which is a wonderful and powerful
    program for building HTML. So
    why are you trying to build a navigation menu in Fireworks,
    which is a graphics program? Please. I beg you! Save yourself hours
    of headaches: create your graphics in Fireworks and your HTML in
    Dreamweaver.
    For example, this code would be impossible to maintain.
    Here's one of your navigation items:
    img src="untitled-4_r2_c2.gif" alt="" name="untitled4_r2_c2"
    width="98" height="48" border="0" id="untitled4_r2_c2"
    Do you even know which image this is or which link it's
    intended to take? Create your images with decent names like
    "contact.gif" or "products.gif" so you can write clear code.
    The first row and the first and last columns of your table
    have 1-pixel spacer gifs. Fireworks always puts in spacer gifs. If
    you're not aware of them, and take them out, you might get to later
    stages of your development process and wonder why you couldn't get
    your navigation menu to line up with everything else.
    As for that "big white box," it's a combination of the div
    the table is in and the 100% width on the table:
    div id="FWTableContainer1329034333
    table border="0" cellpadding="0" cellspacing="0" width="100"
    I have no idea what the div CSS is doing, but if I comment it
    out and take out the 100% width attribute on the table, then I get
    something that behaves more reasonably. FWTableContainer1329034333
    isn't in your code, but it still does something in my system, so
    either the long strings of numbers don't matter or it's coming from
    some place else and who knows what it is.
    My point is, that by letting Fireworks write bad code for
    you, you've set yourself up with something that doesn't work and is
    extremely difficult, if not impossible, to debug and maintain. Why
    would you do this to yourself?

  • Application wide popup menu for JTextComponent descendants

    Hi!
    I'm working on large project with reach Swing GUI and I got stuck with one small but wery annoing problem. I have to append simple popup menu to all text input fields (JTextComponent descendants) in whole application. I'm realy lazy to append mouse listener on each component, so I'm asking, is there any way to append "default" popup menu for all components. Please, don't answer about custom components instead of Swing plain JTextComponent descendants - it's worse to change classes for all fields then add mouse listener to them.
    As an example of what I want I could forward you to UIManager.put() method, which affects all properties of component behaviour thoughout application. I want to find same solution, maybe there any registry or smth. else in API.
    Than you in advice.

    You could always try extending something like MetalTextFieldUI so that it adds the listeners to the text field automatically. You'd then need to register that UI class with the UIManager at startup:
    public class MyTextFieldUI extends MetalTextFieldUI {
      protected void installListeners() {
        super.installListeners();
        // TODO - Install your listener here
      protected void uninstallListeners() {
        super.uninstallListeners();
        // TODO - Uninstall your listener here
    UIManager.put("TextFieldUI", MyTextFieldUI.class.getName());Personally, I think you're just being lazy... getting your components to extend a subclass of JTextField should be no trouble at all and will leave you with clearer code.
    Hope this helps.

  • How to get system popup menu in java?

    I want to know how to get windows xp or any operating systems default popupmenu in java.
    And i also have problem for using mnemonic for JPopupMenu, it works well when i first press right click of my mouse and use the specified mnemonic for that the action specifed for that is triggered but when is use mnemonic without the using my mouse it doesn't trigger why.

    Please how to get native(e.g windows explorer) popup menu in jfilechooser

  • JPopupMenu with JInternalFrame, popup menu doesn't work

    hi, i have this problem, as shown in the sample code at the end of this post.. basically, i have a table, and i added a JPopupMenu onto the table.. the popup menu works well when running the table class, though, when i call the table class in a JInternalFrame environment, the popup menu won't work.. anyone know why?
    ///Basic sample table code, when run this alone, the popup menu will work
    import java.util.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class TableBasic extends JPanel
         private JTable table;
         public TableBasic()
              String[] columnNames = { "Date", "String", "Integer", "Boolean" };
              Object[][] data =
                   {  { new Date(), "A", new Integer(1), Boolean.TRUE },
                        { new Date(), "B", new Integer(2), Boolean.FALSE },
                        { new Date(), "C", new Integer(9), Boolean.TRUE },
                        { new Date(), "D", new Integer(4), Boolean.FALSE}
              table = new JTable(data, columnNames)
                   //Returning the Class of each column will allow different
                   //renderers to be used based on Class
                   public Class getColumnClass(int column)
                        return getValueAt(0, column).getClass();
              table.setPreferredScrollableViewportSize(table.getPreferredSize());
              JScrollPane scrollPane = new JScrollPane(table);
              add(scrollPane);
         public void createPopupMenu()
              JMenuItem menuItem;
              //Create the popup menu.
              JPopupMenu popup = new JPopupMenu();
              menuItem = new JMenuItem("A popup menu item");
              //menuItem.addActionListener(this);
              popup.add(menuItem);
              menuItem = new JMenuItem("Another popup menu item");
              //menuItem.addActionListener(this);
              popup.add(menuItem);
              //Add listener to the text area so the popup menu can come up.
              MouseListener popupListener = new PopupListener(popup);
              table.addMouseListener(popupListener);
         public static void main(String[] args)
              JFrame frame = new JFrame();
              TableBasic table = new TableBasic();
              table.createPopupMenu();
              frame.setContentPane(table);
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.pack();
              //frame.setLocationRelativeTo(null);
              frame.setVisible(true);
         class PopupListener extends MouseAdapter
              JPopupMenu popup;
              PopupListener(JPopupMenu popupMenu)
                   popup = popupMenu;
              public void mousePressed(MouseEvent e)
                   maybeShowPopup(e);
              public void mouseReleased(MouseEvent e)
                   maybeShowPopup(e);
              private void maybeShowPopup(MouseEvent e)
                   if (e.isPopupTrigger())
                        popup.show(e.getComponent(), e.getX(), e.getY());
    ///when integrate the previous table into here, popup menu won't work
    import java.awt.*;
    import javax.swing.*;
    public class InternalFrameBasic
         extends JFrame
         //implements ActionListener
         private JDesktopPane desktop;
         private JInternalFrame menuWindow;
         public static final int desktopWidth = 800;
         public static final int desktopHeight = 700;
         public InternalFrameBasic(String title)
              super(title);
              //Set up the GUI.
              desktop = new JDesktopPane();
              desktop.putClientProperty("JDesktopPane.dragMode", "outline");
              //Because we use pack, it's not enough to call setSize.
              //We must set the desktop's preferred size.
              desktop.setPreferredSize(new Dimension(desktopWidth, desktopHeight));
              setContentPane(desktop);
              createMenuWindow();
              desktop.add(menuWindow); //DON'T FORGET THIS!!!
              Dimension displaySize = menuWindow.getSize();
              menuWindow.setSize(desktopWidth, displaySize.height);
         private void createMenuWindow()
              menuWindow =
                             new JInternalFrame("Event Watcher", true, //resizable
                                                                                                   true, //closable
                                                                                                   false, //not maximizable
                                                                                                   true); //iconifiable
              menuWindow.setContentPane(new TableBasic());
              menuWindow.pack();
              menuWindow.setVisible(true);
          * Create the GUI and show it.  For thread safety,
          * this method should be invoked from the
          * event-dispatching thread.
         private static void createAndShowGUI()
              //Make sure we have nice window decorations.
              //JFrame.setDefaultLookAndFeelDecorated(true);
              //Create and set up the window.
              JFrame frame = new InternalFrameBasic("Example Internal Frame");
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              //Display the window.
              frame.pack();
              frame.setVisible(true);
         public static void main(String[] args)
              //Schedule a job for the event-dispatching thread:
              //creating and showing this application's GUI.
              javax.swing.SwingUtilities.invokeLater(new Runnable()
                   public void run()
                        createAndShowGUI();
    }

    table.createPopupMenu();The above line should not be in the main method. It should be in the constructor class of TableBasic.
    You never execute that method in your InternalFrameBasic class to the mouse listener never gets added to the table.

  • Copy data from one sheet to another based on content of popup menu

    I'm trying to create a spreadsheet to help teachers grade students during reading time in my school.  If you're interested in the specifics of it, the long version is in the following paragraph:
    I work in a high school, and 10% of each student's English class grade is supposed to come from reading during what is called "Enrichment time," a 20-minute daily reading time.  This occurs at the beginning of the second period of the school day.  With a few rare exceptions, students are not in their English teacher's class for this reading time; their 2nd period teacher, whether a teacher of math, science, English, or history, or whatever, records a daily grade for each student, based on whether or not the student is reading during enrichment time. In the past, teachers have recorded the grade of each student on a separate sheet of paper, then gone to the teachers' lounge and sorted through their students' grade sheets, putting each student's sheet into a folder for the student's English teacher to grade. Next year every teacher will have an iPad, so I'm trying to create a cloud-shared numbers spreadsheet that could help solve the problem of teachers not communicating well.  I've settled upon the solution of giving each teacher with a 2nd period Enrichment group access to a spreadsheet that would be accessible to all the English teachers as well.  The enrichment teacher would enter the students' names on teh far left hand side, then with each student's name the teacher's name would be indicated in a popup menu.  The first sheet is where the 2nd period enrichment teacher would enter the data, and then the different English teachers would, ideally, have a separate sheet with only their students populating that sheet. 
    tl;dr:
    I need sheet 2 to be populated with whole rows of data from sheet 1, and I want sheet 2 to only include rows which have a specific choice selected in a popup menu.
    Here's the document, via iCloud:
    https://www.icloud.com/iw/#numbers/BAL2c7eirUmlW1C8CvqB7F6X9LlhwHB3bHWF/Enrichme nt_Template

    A,
    It seems that your iCloud Numbers document is protected by password.
    Jerry

  • Opening pdf in ADF popup menu

    Hi All,
    I have big issue in opening a pdf file under ADF popup menu. currently, the popup menu is working fine and but i dun know how to load the pdf once the popup menu is loaded. I tried to put javascript code in <body> with "onLoad=...", however, i dun know how to load pdf from javascript.
    Any one has a good idea to get around this problem???
    Cheers,
    -T

    Hi!
    I would like to insert a pdf file into the database and then display it. Actually I do not know how to insert the file into the db nor how to extract it. I use a library (jpedal) to show the pdf and am able to represent a byte stream, but how do I get it?
    regards,
    Mario Udina

Maybe you are looking for

  • Maximum drive size for mirrored RAID

    I'm want to set up a mirrored RAID with two 4TB drives that I have.  When I put the drives in the tower (Mac Pro, OS 10.8.5) and open Disk Utility, the RAID button at the top does not show up for these drives.  I only see First Aid, Erase, and Restor

  • Which bit instructs msgsrv to log deposition of messages in mailboxes?

    I hope this is a short question with a one-liner answer: I want to keep a log of all messages received by the Messaging Server, including common headers like from, to, subject, size - pretty much like sendmail logs. I believe this mode can be toggled

  • Help - How to insert onto a tape...

    I know there has to be a way to do this, but... How do you insert edit a program onto a tape to a specific timecode? I've been looking through the manual, but can't seem to find anything on it. The program is a 30-minute doc, shot in 720p-24N with th

  • Photoshop Elements 12 E-Mail-Client

    Organizer => Voreinstellungen => Teilen bei "E-Mail-Client wird mei Client "Outlook" nicht angezeigt. Kann nur Adobe E-Mail Server auswählen. Benutze Windows 7 Professional, Outlook 2010

  • Desperate! "Unable to login at this time";how to access a "no entry" folder

    I started my Mac this morning but everytime I try to login in my account it says "You are unable to log in to the user account at this time". I have tried running disk utility. Nothing changed. Since I have FileVault activated I tried to repair my Ri