Popup menu's on extended desktop

I use JDeveloper on a computer with 2 screens in extended desktop mode. When i open JDeveloper on the second screen, the popup menu's appear on the first screen.

     if(me.isPopupTrigger() && me.getX()<maxx && me.getY()<maxy)
                         //System.out.println("me.isPopupTrigger()");
                         pop.show(this, me.getX(),me.getY());
You can use isVisible() to check wheather it's being displayed or not

Similar Messages

  • Creating Popup Menu in Desktop Intelligence

    I need help creating a popup menu in the Tool menu of Deski.
    This popup needs to be visible when a report is open or when no report is open.
    It's my first add-in and I can't make my code work.
    Sub BuildMyMenu()
    Dim PopMenu As CmdBarControl
    Dim CleanPop As CmdBarControl
    Dim unvButton As CmdBarControl
    Dim lsiButton As CmdBarControl
    On Error Resume Next    'disable errors temporarily
    Set PopMenu = Application.CmdBars(1).Controls("&Tools").Controls("&Clean-Up Utility")
        If Err.Number = 0 Then  'button already exists
            Button.Delete       'delete it so that it can be re-defined
        Else
            Err.Clear           'clear the error so other testing can take place
        End If
    Set PopMenu = Application.CmdBars(1).Controls("&Tools").Controls.Add(boBarPopup)
    PopMenu.Caption = "&Clean-Up Utility"
    PopMenu.DescriptionText = "Clean-Up Utility"
    PopMenu.TooltipText = "Clean-Up Utility"
    Set unvButton = PopMenu.CmdBarPopup.Controls.Add(boControlButton)
    unvButton.Caption = "C&lean-Up Universe..."
    unvButton.DescriptionText = "Clean-Up Universe"
    unvButton.TooltipText = "Clean-Up Universe"
    unvButton.OnAction = filename(ThisDocument) & "!ShowUserForm2"
    Set PopMenu = Application.CmdBars(2).Controls("&Tools").Controls("&Clean-Up Utility")
        If Err.Number = 0 Then  'button already exists
            Button.Delete       'delete it so that it can be re-defined
        Else
            Err.Clear           'clear the error so other testing can take place
        End If
    Set PopMenu = Application.CmdBars(2).Controls("&Tools").Controls.Add(boBarPopup)
    PopMenu.Caption = "&Clean-Up Utility"
    PopMenu.DescriptionText = "Clean-Up Utility"
    PopMenu.TooltipText = "Clean-Up Utility"
    Set unvButton = PopMenu.CmdBarPopup.Controls.Add(boControlButton)
    unvButton.Caption = "C&lean-Up Universe..."
    unvButton.DescriptionText = "Clean-Up Universe"
    unvButton.TooltipText = "Clean-Up Universe"
    unvButton.OnAction = filename(ThisDocument) & "!ShowUserForm2"
    End Sub
    What I need is a popup menu from the Tools menu, that says "Clean-Up Utilities". From that popup menu, 2 more buttons: one that says "Clean-Up Universes" and the other "Clean-Up LSI".
    Thanks for your help.

    In what way, exactly, isn't it working? Do you see the pop up menu at all?
    Did you make sure that JS is enabled in your Acrobat?
    I've ran the code and it seems to work fine for me. However, I don't quite
    get what it's supposed to do.
    Is it supposed to take the user to a specific page, or to a named
    destination? It seems like it's trying to do both, which doesn't make much
    sense.

  • 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.

  • 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.

  • Airplay display issues: "extend desktop" not working properly. Secondary display continues to mirror.

    Whenever I turn my airplay display on and set it to "extend desktop," my secondary display (TV) continues mirroring my mac book pro (hereinafter MBP). It doesn't fully mirror my MBP, but my secondary display registers every time I switch between my desktop 1 and my full screen apps. Moreover, When I do switch to a fullscreen app on my MBP, I get a blank (blue-ish) screen on my TV.
    Any solutions!?!
    Additionally, "extended desktop" for my Airplay display worked properly when Mavericks was first released.

    Try this:
    Click on the Apple TV Icon on the top toolbar
    Then, select "Mirror Built in Display" instead of extend desktop
    In the same menu under "Match Desktop size to:" select "Apple TV" (or keep it on "built in display if that works"
    This solved a similar problem for me. 

  • HT5019 How do I play a video on my extended desktop (my TV) and still use my desktop to surf, work, etc.?

    I have created the extended desktop, but don't know how to get the video on to the extended desktop, which displays on my TV.  I can't seem to play a file on my tv, and use my desktop on the mac to surf, work, etc. You seem to be able to use either ione or the other desktop - not both at once.
    I was easily able to do this on my old PC!

    Apple menu -> System Preferences -> Displays
    Dragging the menubar on the image representing one display to the image representing the second display.
    As most programs send the signal for video to the primary display this will often free up the other display for using while you play video.  You can always use another video playback software, or just maximize the video playback software's window, instead of going fullscreen.  It really depends on the software you are using to play videos.

  • Using External Display WITHOUT mirroring or extended desktop

    I asked this question about a month ago and it seems to have been deleted for some reason.
    I have a broken screen on my Intel iMac G5 for reasons I don't wanna get into here, but trust me, it's not covered under the warranty. I have a great Sony LCD HD Monitor plugged in by VGA and mirroring displays. I have noticed that the computer is a LOT slower since connecting the alternate display, and I think it's because processing the smae information on both displays at once is using up too much system resources. I DON'T want an extended desktop either, since the iMac screen is broken.
    Is there a way to turn off the iMac screen completely and ONLY use the external monitor WITHOUT mirroring or extended desktop?
    If not, how can I improve my machine's performance while mirroring displays? Is more RAM the answer?

    Hello howoriginal
    Let me see
    1) OK sounds like the Sony is working for you in mirroring.
    2) Which iMac do you have Intel or G-5? (Intel's are not G-5s)
    3) Don't think you'll be able to turn off the iMac display. (you know I want to ask)
    4) Mirroring should not realy affect your performance. Keeping everything "gathered" up to Sony display might help you from misplacing windows and folders.
    5) If it's an early Intel Core Duo with 512MB then "yes" more ram to 1, 1.5 or 2GB will boost your performance.
    6) Other thing to help performance are OnyX maintenance and quitting App's from menu, not just closing App's with red button that you are not using.
    That's all I have for now!
    Dennis
    17" iMac Intel Core Duo 1.5GB Ram   Mac OS X (10.4.8)   Maxtor 300GB FireWire 2G Nano

  • How do I add an entry in Project Explorer's popup menu

    Is it possible to add my own entries in the popup menu of Project Explorer?
    I'm considering writing an LabVIEW addin that adds extra functionality to the Project Explorer, but I need a way to extend the context menu.
    /Leif

    LeifS wrote:
    Is it possible to add my own entries in the popup menu of Project Explorer?
    I'm considering writing an LabVIEW addin that adds extra functionality to the Project Explorer, but I need a way to extend the context menu.
    /Leif
    It is probably possible with digging deep into the contents of your "LabVIEW/resources" folder but will have a number of drawbacks. First your VI will need to provide a specific (undocumented) and most probably not so trivial interface that will be hard to uncover. It will somehow need to tell the project Explorer what it's name is and for what types of files or containers it should be displayed.
    Then those hooks will likely change between each LabVIEW version too as the Project Explorer is still a project under development. So unless there is an unlikely document here on ni.com that describes this (and which a search should clearly give you if there) I think it is simply not worth the hassle to dig into this.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Extended desktop question

    I have my macbook connected to an external 17" LCD display, and I have the extended desktop working just fine.
    I was wondering though, is there anyway to "copy" things like the menubar, dock and icons from the main display to the extended?
    Right now I have just a big empty display I can move windows onto, but to access application menus I have to switch back over to the primary.
    I don't want to mirror though, as I want the extra real-estate.

    What you do is open the Displays System Preference and go to the Arrangement (I think that's it) tab. Then all you do is drag the menu bar in the pictures from the MacBook screen to your 17" screen. You might need to apply the change and restart at this point (I'm doing it off memory as I'm sure you can tell) but that's it.
    From this point on your 17" display will become the primary and the MacBook will be the secondary "blank" display.

  • Zoom and extended desktop

    I can't be the first person to notice this, but all my searching hasn't turned anything up...
    Evidently, when one uses the Universal Access 'zoom' function with a computer with multiple monitors set to extended desktop mode, it doesn't work. The zoom centers on the point at the middle of the extended desktop, and evidently, the software thinks the desktop is only as big as one of the monitors, because you can't move the pointers to the top or bottom of the entire extended desktop.
    This is on a 1.67 GHz PB running Mac OS X 10.4.7, with a 19" LCD attached in extended-desktop mode. The 19" has the menu bar.
    Any help much appreciated,
    Vic
    1.67 GHz Powerbook   Mac OS X (10.4.7)  

    I use the "zoom" feature as well. I would LOVE to be able to use the feature on my display while giving a presentation in "normal" view without the zoom feature turned on. To date, I have not found a way to make this happen. Any tips?

  • Mirror and Extended Desktop - Panasonic 42" 720 image cropped

    I have my 15.4 macbook pro connected to a Panasonic 42" 720 HDTV via the mini displayport. In both mirror and extended desktop mode, the Panasonic image is cropped off on all four sides. I fooled around with all the resolution settings and nothing changes.
    No matter what I do, the menu bar and dock get cropped off by a few pixels. How can I fix this?
    thanks

    Right, your TV is overscanning. That's very common. Overscan has been part of what TVs have done for decades.
    If your TV is meant to be compatible with computer output, there should be a way to set the screen size using the TV's remote and/or menu system so that computer output just fills the screen. So check you TV's user manual about making a connection to a PC for information about how to get rid of overscan on the TV.

  • Displaying front row on external monitor (extended desktop)

    Hi,
    I've buyed a MacBook (black) and a VGA cable to connect to an external monitor. I've configured as extended desktop, no problem to work with regular apps...
    But i would like to display Front Row on the external monitor, and not on the internal... it should be possiible as i see many people talking about this kind of configuration, but i do not success...
    Can someone tell me how to display front row on the external monitor, or point me where i can configure front row ?
    Thanks in advance

    Thanks, it's a good beginning, but it make the external display also the default for everything else like menu bar,... i do not want to use the whole macbook on the TV, i just want to use the DVD, video clips, photos,... on the TV... it seems for me a regular use : using the mac for the softwares,... and the TV only for the multimedia display...

  • Princeton dual display extended desktop

    This is my first apple...I have the G5 quad and I hooked up my two Princeton LCD17 monitors, with the adapters. They both have the apple background screen, but only the right monitor has cursor function, the left is just the blue background w/the info screen on the resolution. I've played around with the resolutions...but to no avail. Are the princeton's compatible for extended desktop? Thanks.

    Good evening!
    Maybe I can help. Maybe I can't. But I'll try.
    I have a Princeton 19" VL193 lcd here, and a 15" LG 566LM lcd.
    When I turn my system on, it automatically goes into extended mode, giving me my normal 19" view with background and menu's and dock.
    The 15" shows a blank screen. So I went into the SYSTEM PREFERENCES under the APPLE menu. In there, go into DISPLAY. Each screen should show it's own resolution settings. I can set each screen's resolution and refresh rate, as well as colors, independently of each other.
    On the MAIN screen, there is the option to "mirror" the screens, and then they will show identical images etc.
    That's what you SHOULD see.
    If now, there is the option to "DETECT DISPLAYS" on the DISPLAY screen.
    So they can run seperate backgrounds / wallpapers, or identical.
    Let me know if this helps at all.
    PowerMac Quad G5   Mac OS X (10.4.5)   GeForce 6600 256MB, 250GB Maxtor, 300GB Western Digital, 19" Princeton LCD

  • How to create a splitted button with a popup menu?

    Hi,
    i am trying to build a button which can be clicked and an action is called (a normal button) and an addion to that basic function: there is on the right side of the button a seperated area with an arrow. If this arrow is clicked a popup menu becomes visible and you can choose a special action. This type of buttons (i don't know the name) can be seen by example in Eclipse or the Windows Media Player 11 or in Windows Vista).
    Here is an example image about what i mean: http://s2.imgimg.de/uploads/button56b4941cpng.png
    Can you tell me how to create a button with this possabilities?
    Please help me,
    greetings from germany,
    picard90

    hii,
    if you are want completed to define the Popup, then you have to define accesible areas,
    1/ create Popup (example from void)
    public void createPopupMenu() {
    JPopupMenu popup = new JPopupMenu();
    popup.addSeparator();
    ShowsManFxMenuItem = new JMenuItem("Show Details");
    ShowsManFxMenuItem.addActionListener((new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    //..some actions
    validate();
    repaint();
    popup.add(ShowsManFxMenuItem);
    MouseListener popupListener = new PopupListener(popup);
    //here is your listener directly to prepared object "yourButton"
    yourButton.addMouseListener(popupListener);
    2/ create POpupListener (example is class)
    class PopupListener extends MouseAdapter {
    JPopupMenu popup;
    PopupListener(JPopupMenu popupMenu) {
    popup = popupMenu;
    @Override
    public void mousePressed(MouseEvent e) {
    maybeShowPopup(e);
    @Override
    public void mouseReleased(MouseEvent e) {
    maybeShowPopup(e);
    //only in this block you can restrict anything with popup items (test anything and then to display all, only one, parts of them)
    private void maybeShowPopup(MouseEvent e) {
    if (e.isPopupTrigger()) {
    popup.show(e.getComponent(), e.getX(), e.getY());
    //these parts you can ingnore, but can covered extended events from popup
    public void actionPerformed(ActionEvent e) {
    JMenuItem source = (JMenuItem) (e.getSource());
    public void itemStateChanged(ItemEvent e) {
    JMenuItem source = (JMenuItem) (e.getSource());
    protected String getClassName(Object o) {// Returns just the class name -- no package info.
    String classString = o.getClass().getName();
    int dotIndex = classString.lastIndexOf(".");
    return classString.substring(dotIndex + 1);
    3/ I removed all my addition
    ... kopik

  • How to change the selection background color of the selected item in the popup menu of the choice box ?

    How to change the selection background color of the selected item in the popup menu of the choice box ?
    By defaut, the selection background color likes "blue", but if I want it to be "yellow" for example, how should I do ?
    Thanks

    The id is applied by (I think) the skin class of the ChoiceBox. You don't need to define it.
    You have to apply the css in an external style sheet. You can apply the external style sheet to any parent of your choice box, or to the scene (the most usual way to do it).
    Example:
    import java.util.ArrayList;
    import java.util.List;
    import javafx.application.Application;
    import javafx.scene.Scene;
    import javafx.scene.control.ChoiceBox;
    import javafx.scene.layout.VBox;
    import javafx.stage.Stage;
    public class ChoiceBoxTest extends Application {
      @Override
      public void start(Stage primaryStage) throws Exception {
        primaryStage.setTitle("Example 2");
        final ChoiceBox<String> choiceBox = new ChoiceBox<>();
        List<String> tempResult = new ArrayList<String>();
        for (int i = 0; i < 10; i++) {
          tempResult.add("Item " + i);
        choiceBox.getItems().setAll(tempResult);
        VBox root = new VBox();
        root.getChildren().add(choiceBox);
        final Scene scene = new Scene(root, 300, 250);
        scene.getStylesheets().add("choiceBox.css");
        primaryStage.setScene(scene);
        primaryStage.show();   
      public static void main(String[] args) {
        launch(args);
    choiceBox.css:
    @CHARSET "UTF-8";
    #choice-box-menu-item:focused  {
    -fx-background-color: yellow ;
    #choice-box-menu-item .label {
    -fx-text-fill: black ;
    Message was edited by: James_D

Maybe you are looking for

  • RemoteUpdateManager problem... and other questions

    Hi. We are trying to evaluate which update solution to use. We package the apps with CCP, and the users should never get prompted about updates and they are not able to download/upgrade by them self, and they are not admins on their computers. So far

  • SQL - Rollback and Commit

    Hi, What exactly does Rollback do?  I know that COMMIT applies the changes to the database system.  The thing is, I've read that until commit is applied, the database in permanent storage is unchanged.  So what exactly does a ROLLBACK "roll back"?  D

  • Format Tab  - Field Properties (Special)

    The format tab for field properties - Special - gives a phone number option which allows 10 numeric characters or spaces. UK Telephone number format is 11 numeric characters. Would be useful to have a pre defined UK phone format. If you try and creat

  • How does one move Policy Sets & Policies from one server to another

    Is there a way to export Policy Set and Policy definitions from a development server and import into a production server?

  • Eclipse Axis and Webservices in SAP

    Hi ! Im trying to write a small Web Application that whold be able to call webServices. I Created Web project in Eclipse and irts ok. Now i add new WebService Client  to a project, define Axis as provider - supply WSDL URL from ES discovery site. Ecl