Opening a new JFrame in a specific DISPLAY on X11 environment with JNI

Hi,
I have a problem that I'm unable to solve.
I have a Java Application (on Linux with X11 XServer display manager ) running in background that has to open, once received the request, JFrames on the client display. So if I launch the client from "display1", I have to open a JFrame on display1 and then if I launch again the client from "display2", I have to open a JFrame on display2.
But I found no way do specify where (on which display) I want to open my frame.
I saw there is a JFrame constructor using GraphicsConfiguration but it I can access only to Local GraphicsConfiguration, so I didn't understand the meaning of this parameter. ;-)
I tryed even to change runtime the value of $DISPLAY environment variable just before the "new" call but it seems that awt connect to XServer only the first time I use a "graphic call" using correctly my $DISPLAY changed value.
So all my frames appear on the display from which the first client connects.
There is a way to tell awt to open a window on a specific DISPLAY without JNI ?
Or, with JNI it's possible to override, in the X11DrawingSurfaceInfo structure, the field "display" (opening a new connection when necessary) for specific JFrame and the return the changed value to the AWT engine ?
Thanks to all

Hi,
Have you had any further luck with this? I'd like to do something very similar to this (read from a config file the XServer address and use it at runtime to display on that particular server - I have multiple displays with different addresses).
The best I can figure so far is to use ProcessBuilder and launch another java process with the $DISPLAY env variable set (differently for each process - or client display in your case).
Whilst I may be able to get away with this for my project, it has many many disadvantages and I'd like to be able to change this programmatically/on-the-fly.
Anyone's help would be greatly appreciated.
I may just have to scrap using Java..

Similar Messages

  • Under Windows 7, 64-bit, Firefox intermittently will not open a new window - all I get is a grey screen, with a tiny part of my homepage displayed in the top left corner of the screen.

    The problem began after a recent Firefox update. Occasionally, when I try to open a new Firefox window, all I get is a grey screen with a tiny section of my homepage visible in the top left corner of the screen. NOTE: Firefox stores all of these aborted attempts, as, whenever I close it and then re-open it, the first time I open a new window it automatically opens all of the windows that had originally failed to open.
    == This happened ==
    Every time Firefox opened
    == on or about June 26, 2010

    Got the exact same problem aswell, finally fed up with it now as i just started up firefox and 14 new windows opened because of this bug, luckily my computer can handle them but someone with a slower processor it would have been a nightmare, needs fixing ASAP.
    Reverting back to 3.6.3 until this issue is solved. (link for anyone wanting to do the same below)
    http://www.filehippo.com/download_firefox/7345/

  • How do I open a new tab at a specific web site

    When I open a new tab (in Firefox 5) I want it to opne at my home page (google). I cant seem to make firefox 5 do this, yet it worked fine in Firefox 3. Have a missed a point somewhere?

    Do you see that button if you open the Customize window?
    * Open the Customize window via "View > Toolbars > Customize" or via "Firefox > Options > Toolbar Layout"
    * If a missing item is in the toolbar palette then drag it back from the Customize window on the toolbar
    * If you do not see an item on a toolbar and in the toolbar palette then click the "Restore Default Set" button to restore the default toolbar set up.
    See also:
    * http://kb.mozillazine.org/Toolbar_customization
    * http://kb.mozillazine.org/Corrupt_localstore.rdf

  • Open a new window in a specific location

    I am opening a new page using the Open Browser Window. But I
    want to specify a location where i want this window to open (maybe
    to the centre or right rather than the top left corner). Is there
    anyway I can do this?

    Hi.
    Go to the 4Level web, they have an extension which do that.
    It´s free.
    http://www.fourlevel.com/dreamweaver/extensions/openbrowser/index.htm
    In this link you can donwload directly the extension:
    http://www.fourlevel.com/dreamweaver/extensions/openbrowser/4LevelOpenbrowser.mxp
    "timpano" <[email protected]> escribió
    en el mensaje de noticias
    news:ga58i5$750$[email protected]..
    >I am opening a new page using the Open Browser Window.
    But I want to
    >specify a
    > location where i want this window to open (maybe to the
    centre or right
    > rather
    > than the top left corner). Is there anyway I can do
    this?
    >

  • When I open a new tab I no longer get the search bar with all of my recent pages, how do I restore this back to the default?

    I was on demonoid and I accidentally installed some software that I didnt want to. Once this happened I noticed that on both of my browsers firefox and chrome that this search site named trovi.com has taken over as my homepage and over my new tab. I fixed the problem on chrome and I fixed the home page problem on Firefox, what I cant figure out is how to get rid of this bane when I open a new tab. All I have all of my useful sites pinned there and it is very annoying.
    I have been searching through all the options and cannot find a way to change this back to default without restoring the entire browser back to default. Which I really dont want to do. Thanks in advance
    THis is the problem
    "browser.newtab.url": "http://www.trovi.com/?gd=&ctid=CT3320418&octid=EB_ORIGINAL_CTID&ISID=M8DFF7074-5289-4613-BE92-D34E972485F9&SearchSource=69&CUI=&SSPV=&Lay=1&UM=6&UP=SP7898ACB3-917F-4B3E-99A5-29076F23E57D",

    hello, please install the search reset addon - it will revert the most common customizations those adware programs do in firefox back to the default: https://addons.mozilla.org/firefox/addon/searchreset/

  • The + button or "open a new tab" does not correspond. I also tried with Ctrl+T but I can not open a new tab unless I click on a link in the existed tab. What can I do?

    I have seen nothing relevant in options

    The Ask Toolbar is causing that in the Firefox 3.6.13+ versions. Uninstall that extension.
    There are a couple of places to check for the Ask toolbar:
    * Check the Windows Control panel for the Ask Toolbar - http://about.ask.com/apn/toolbar/docs/default/faq/en/ff/index.html#na4
    * Also check your list of extensions, you may be able to uninstall it from there - https://support.mozilla.com/kb/Uninstalling+add-ons

  • I cannot open a new search from a second tab. Comes back with : GGmain.jhtml (GIF Image. 1 x 1 pixels)

    As above

    Some firewalls like Kaspersky can block content and send a 1x1 GIF image instead.<br />
    Kaspersky: Protection > Firewall > Filtration system: disable the "Banner Ad Blocker"
    See:
    * https://support.mozilla.org/kb/Configuring+Kaspersky+Internet+Security
    * https://support.mozilla.org/kb/Firewalls

  • When I select a link on a site and this opens a new instance of Firefox, the link page is blank; but OK when the link is displayed in a new tab on same instance of Firefox.

    ''Duplicate post, continue here - [/questions/775444]''
    This happens on many sites eg just went to Virgin Media
    http://www.broadband-finder.co.uk/broadband-directory/virgin-media/?li=3
    and tried to click on one of the 3 More Info boxes (Just Broadband, Broadband and Phone,... etc). Each time I click the More Info box, a new instance of Firefox is opened with a blank page showing and 'Untitled' in the tab heading.
    Is there a setting somewhere where I can stop these links opening a new instance - or at least display the information if they do?

    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • Loading a website without opening a new web-browser

    Can someone tell me how to load a webpage without opening a new web-browser, having it displayed on the current one...
    I have tried the following code but it opens up a new browser instead... :
    getAppletContext().showDocument(new URL("http://www.angelfire.com"), "_blank");
    Million thanks

    getAppletContext().showDocument(new URL("http://www.angelfire.com"), "_self");

  • Using Firefox 5 in Windows 7, once I have Firefox open, I can no longer open a new window using the start button. How do I fix?

    As I stated, I have Windows 7 on my laptop and have installed Firefox 5. I sometimes like to have multiple windows of the browser open. But, unlike any previous version of Firefox, now when I have the browser open, when I try to open a new window using the Start menu, it will not open one. I have to use Ctrl+N. Why did this change?
    This may seem insignificant but it really hampers my work flow. For one, with other applications, Shift+N is what opens a new window. For two, I've been doing with with my browsers for years now and it's like second nature for me - having to remember that in Firefox it's Ctrl+N is a pain in my tuccus.
    Firefox is my go to browser and I would like it to stay that way. Please find the solution for me! I have tried looking using Tools, Options, as well as looking at my start menu and taskbar options, and no dice.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • When I open a new window, it doesn't attach itself to the bottom toolbar? I'm using XP Pro and Firefox 6.0.2.

    It's explained pretty well in my initial question. Not sure what else you would need in the way of details.
    I will say it's been going on for a month or so, and it happens every time I start Firefox, and every time I open a new window.

    Thank you for taking the time to leave an answer for me, Poochie1. I really appreciate your attempt at helping me.
    Unfortunately, as smart as I thought I was when I asked the question, I apparently wasn't that smart, because I didn't explain my problem so you'd know what the heck I was talking about.
    I think it's because I'm probably not using the correct terminology. I'll try again.
    When I open a new window, it just kind of floats on the screen. Before this new update, I could open a window and it was lined up with the start taskbar located at the bottom of the screen. Sometimes the new window will cover up the taskbar partially, and sometimes completely. I have to move it up and align it with the taskbar. Then, when I open another new window, I have to line that one up with the window underneath it.
    I hope that description is better than my first one, and I hope you can make some sense out of it, Poochi (and anyone else who happens by here).
    Again, thank you for your help.

  • Global Policy Link Does Not Open A New Browser Window in IExpenses

    Hi All,
    On 11.5.10.2 version
    Global Policy Link which is located at the top of most iExpenses pages is
    supposed to open a dynamic web page (Core policy manuals) on a new browser when
    someone clicks on it. Currently this link, when clicked on it, brings the
    correct page on the same browser.
    I need the page to be opened in new window.
    if not so, i need a alternate solution to open in new window
    Thanks in advance,
    Vali

    Hi
      Accessing an application with the window name is not possible.The other possibility is accessing it using the application name.Follow the code...It will be
    useful for you.
    Thanks
    Anzy
    Data:    lo_cmp_api             TYPE REF TO if_wd_component,
              lo_window_manager      TYPE REF TO if_wd_window_manager,
              lo_ext_win             TYPE REF TO if_wd_window,
              lv_url type string.
    lo_cmp_api = wd_comp_controller->wd_get_api( ).
    lo_window_manager = lo_cmp_api->get_window_manager( ).
    CALL METHOD cl_wd_utilities=>construct_wd_url
          EXPORTING
           application_name = 'MYAPPLICATION'
          IMPORTING
           out_absolute_url = lv_url.
    lo_ext_win = lo_window_manager->create_external_window(
                                       url = lv_url
                                       title = 'My Application' ).

  • Open a new window when you click on a button

    Hi all,
    I'm a newbie on BPS and web interface on BPS. I have a problem on how to open a new window.
    I explain:
    We have a page with a button which call a function. We want to change this button in the way when you ckick it, a new window appears and present a page with two buttons which call each a function(this page is already created thanks to bps_wb).
    The problem is : how to modify the button in the way it opens a new window with in parameter the page.
    Thanks by advance.
    Best regards,
    Nicolas

    Hi Nicolas,
    I don't know about a pop-up, but if you are trying to open a page (page 2) in a new window (internet explorer window), then do the following:
    Instead of using a navigate pushbutton, use a hyperlink component.
    In the URL selection option insert the URL (web address) of page 2. You can find the URL by going to SE80, in the repository browser select "BSP Application" and "THE TECHNICAL NAME OF YOUR BPS". Open your BSP and go to the folder "pages with flow logic" and find your "page 2". Double click on your page and then select the "properties" tab and navigate to the bottom where you will see the pages URL.
    Insert this URL address into your hyperlink component back in the Web Interface Builder.
    Leave the Target selection as parent. Make sure your internet explorer enhanced options are set to "not reuse the same window" under the browser options.
    Good luck.
    Rael

  • Java script application appearing everytime i open a new tab

    Hi,
    Everytime I open a new tab on my computer, a message pops up with Java script application in a box with a yellow triangle with an exclamation mark symbol. I have to click ok twice before I can continue using the internet.
    Can you please tell me how to fix this, I think this happened after I upgraded my mozilla website.

    hello annap2677, you have quite a few malicious addons present. please try these steps:
    # [[Reset Firefox – easily fix most problems|reset firefox]] (this will keep your bookmarks and passwords)
    # afterwards go to ''firefox > addons > extensions'' and in case there are still extensions listed there, disable them.
    # finally run a full scan of your system with different security tools like the [http://www.malwarebytes.org/products/malwarebytes_free free version of malwarebytes] and [http://www.bleepingcomputer.com/download/adwcleaner/ adwcleaner] to make sure that adware isn't present in other places of your system as well.
    [[Troubleshoot Firefox issues caused by malware]]

  • Open a new form based on the selection from the drop down list

    Good Morning Everyone,
    Can any one please advise how I can start to build the form that has a drop down list(DDL) to list other forms so the user can select one from the selection of that DDL to open a new form.
    e.g  A form in workspace ES3 with drop down list to list 3 forms: form1, form2, form3. When user select form1 from the DDL, then it will kick off the render servic to launch form1 in workspace ES3.
    Thanks in advance,
    HD

    Hi,
    I'm not surea about the data structure...Are there two ClassNodes, one for "VALVES" and one for "BOLTS"??
    and for scripting it is no good idea if the names of the attributes are value, don't know if this is your naming...
    but to access a node of the DATA view -->
    //var selection --> you have assigned "VALVES"
      var onodeCN =  xfa.resolveNodes("xfa.record.Classification.ClassNode[*].value");
    // get the node with the valves -->
                   for (var i = 0; i < onodeCN.length ; i++) {
                        if ( onodeCN.item(i).value == selection ) {
                                         //get the Leaves of Node VALVES
                                         var onodeVALS = xfa.resolveNodes("xfa.record.Classification.ClassNode[+i+].ClassLeaf[*].value");
                                         for (var j = 0; j < onodeVALS.length ; j++) {
                                           // insert values of Leave to 2nd drop down
                                XXX.addItem(onodeVALS.item(j).value, onodeVALS.item(j).value);
    ??works??
    norbert

Maybe you are looking for

  • Error during MIRO fpr number range .

    Dear All ,                                          Pl see the error below during Posting MIRO --> In company code 1000, the number range 51 is missing for the year 2009 Message no. F5150 Diagnosis The document type you specified has been allocated t

  • Acrobat Pro 9 file size increases 10x

    When I edit a pdf file in Acrobat Pro 9, even the smallest edit like the date, my document size increases by 10 fold.  Another user, on the same version, makes the same edit and it does not change much at all.  I have uninstalled/reinstalled 3 times,

  • In Logic, how can I turn off the prompt asking if I want to use airplay.

    Sorry if I have missed the obvious, but regularly during a session i get these prompts and they are interupting my workflow. I have looked around and have been unable to sort this out . Thanks in advance.

  • Install IAS 9i in Readhat linux AS 2.1

    I need the URL of this page o document install IAS 9i in Readhat linux AS 2.1 and I need a guide to install IAS in linux Suse 8.1 Thanks Regards nahald

  • Upgrading from WLC-12 to WLC-50

    Would anyone know if I would run across any issues when upgrading from a Cisco Wireless controller WLC-12 to a Cisco wireless controller WLC-50? Can anyone forsee any issues with me just copying the startup config from the WLC-12 to the WLC-50? Any a