Is there a way to select which display to use??

Hi,
I think my problem is OS dependent but i'm still gonna ask...
Code related to this problem is:
  Process runner;
  Runtime t = Runtime.getRuntime();
  runner = t.exec("<path-to-office>\powerpnt.exe /s '<path-to-show>\show.ppt'");
  //  The program in line above is not nessecary  powerpoint it can be also Acrobat or web browser!!
  // (basicly  anythig which can be run on full-screen mode from command line)
The Problemo:
I have a computer (running on Win XP) which has two (or more) displays attached (Matrox G550),
do i have a chance to detect amount of displays and if there is more than one display, can i somehow
select in Runtime which display to use to show results of code above?
Matrox solution was "when you run program once in certain display , it should be opened in same
display next time", well... what if i shoud use 2 powerpoints in same time to have x kind of ppt in one
screen and y kind in second screen wich has totally different kind of info what screen x does?
If it's possible with JFrame to decide wich screen to use, i'm almost shure that i can change program to
use pictures instead of external programs.
-jori

Hmm, I don't know how you would do this with out going native, but for Java frames you can use the following links.
http://java.sun.com/j2se/1.4.2/docs/api/java/awt/GraphicsDevice.html
http://openide.netbeans.org/multi-monitors.html

Similar Messages

  • Is there a way to tell which apps are using data while on WIFI?

    Hello,
    I have just purchased an iPad Air 2.  I use my phone as a mobile WIFI hot spot to connect to the internet when I do not have a regular WIFI connection available.  151 MBs of data were consumed over an hour and a half or so.  I played about an hour of Hearthstone, but I know from tethering my phone to my laptop that it usually doesn't use anywhere near that amount of data.
    I would like to track down which applications might be using the data so that I can avoid using them while connected to my phone.  Is there any way to do this?

    Thanks for the quick response.  That's a little disappointing though.  Is there an app on the store?

  • Is there a way to select which Audiobooks to download to iPhone?

    It looks like you get all or none, I don't see a way to open the audio books and click on the books you want. Am I missing something?

    For automatic sync: In your audiobooks library, check only those audiobooks you want synced. (Hold the command key when checking to check or uncheck all at once). Then in the iPhone summary tab, select "Sync only checked music and videos."
    Or: Use "Manually manage music and videos" and drag the audiobooks you want onto the phone. Of course you would have to do the same with music and videos.

  • Selecting which disk to use in Time Machine

    Mavericks allows the use of multiple backup disks in Time Machine. Is there any way to select which disk to use when browsing a backup?

    Yes while clicking on the TM icon in the Status bar press the option key.
    The Enter Time Machine menu entry will change to Browse Other Backup Disks. You can then elect the disk to browse.

  • Is there a way to identify which files haven't been migrated from a backup?

    I've just upgraded my girlfriends 13" mbp from Leopard to Snow Leopard. It was behaving a little strangely and being sluggish so I erased everything before the upgrade. I've used Migration Assistant to transfer most files from a Time Machine backup but was a bit unsure about transferring everything blindly as I'm a little worried about what was causing the problems before the upgrade. The only items I didn't select in Migration Assistant were the 'All other files and folders' in the 'Users' drop box, and the 'All other files and folders on Macintosh HD'. I left these as I wanted to investigate what exactly these files were but now I have no clue how to go about this. Is there a quick way to highlight which files were present in the backup before the upgrade that aren't there now? Are any of these files likely to be hugely important?
    Also, because I backed up again after the upgrade, Migration Assistant automatically selects the last backup to migrate from instead of the one that has the missing files. Is there a way to select which backup file to use from my external drive?
    Thanks

    Macademia82 wrote:
    I've just upgraded my girlfriends 13" mbp from Leopard to Snow Leopard. It was behaving a little strangely and being sluggish so I erased everything before the upgrade.
    It's usually not a good idea to upgrade a computer that's having problems. They may get fixed, but more often they'll get worse.
    'All other files and folders on Macintosh HD'.
    Those are other files, not in any user home folders, besides system files. On most installations, they're just a few Help files, but if you've installed things or created files at the top level of a drive, they weren't migrated.
    Also, because I backed up again after the upgrade, Migration Assistant automatically selects the last backup to migrate from instead of the one that has the missing files. Is there a way to select which backup file to use from my external drive?
    No, unfortunately. You can only do that with a full system restore.
    If you used +Setup Assistant+ when the Mac first started up, the user accounts now on the Mac are the same ones, and you can use the "Star Wars" display to restore selected items from older backups. But you can't restore an entire home folder, or the default folders in the user's home folder (Desktop, Documents, etc.); you have to select the contents of those folders instead. See #15 in [Time Machine - Frequently Asked Questions|http://web.me.com/pondini/Time_Machine/FAQ.html] (or use the link in *User Tips* at the top of this forum).
    If you used the +Migration Assistant+ app, however, the user accounts may not be recognized as being the same ones, so may not have permission to see and restore from the backups.
    It's a pain, but your best bet may be to start over: do a full system restore of the last Leopard backup, per #14 in the FAQ. Then try to address the "strangely and being sluggish" issue. Once that's either fixed or you determine it isn't a big problem, just install Snow Leopard over Leopard without erasing.

  • Is there any Way to find Which case is Executing in LabVIEW VI programmat​ically and Display it..

    Is there any Way to find Which case is Executing in LabVIEW VI programmatically and Display it..
    Solved!
    Go to Solution.

    I wrote this a few years ago: http://lavag.org/files/file/199-state-machine-foll​ower/
    This JKI RCF Plugin sets the Visible Frame property of a Case Structure while the owning VI is running. Use it to follow the execution through the cases in your string-based State Machine/Sequencer when Execution Highlighting isn't fast enough (and, it's never fast enough).
    The use-case I wrote this to improve is setting a Breakpoint on the Error wire coming out of the main Case Structure and probing the Case Selector terminal so I can float-probe wires during execution. The problem with this is that I had to manually select the current frame every time. This is boring, so I developed this plugin to automatically set the Visible Frame to the case most recently executed.
    You might be able to adapt it to your needs.  The basic idea is that a custom probe on the wire to the Case structure's selection terminal sends a notification to a VI that displays the appropriate case.
    We might be able to help you develop something easier if you'll give us more information.  Is it OK if the code to display the case is in the same VI?
    Jim
    You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice

  • Photos does not display generic title of image (ex: IMG_2234) as actual title. Is there a way to batch rename all photos using the generic title?

    Photos does not display generic title of image (ex: IMG_2234) as actual title. Is there a way to batch rename all photos using the generic title?

    If you launch Script Editor and open the Help menu, you will see the APpleScript Help and a Language Guide:
    To see, which commands an application understands, open the File menu in Script editor and select Open Dictionary.  In the list locate "Photos".
    You will see examples how o script Photos.

  • Is there a way to set which keychain item is used by default for a site/application?

    This question applies primarily to the keychain in Mavericks, but also the iCloud keychain and its use in iOS.
    There are several sites and services for which I have multiple logins that serve different purposes. Whether it's because they are business/personal accounts, or accounts that pertain to different functions, I have multiple logins for many sites/services I use daily, however, there is usually one primary account for each that I use for most purposes.
    What I would like to be able to do is set which of these logins appears by default. An example scenario might be if I have an "admin" account on a site, and a "dev" account that is used for testing purposes to Q/A the site from the perspective of a user who doesn't have administrative access. Most of my work happens under "admin" but whenever I go to the login page, the "dev" account prepopulates in the login form and I have to start typing admin and select that. It also does this on my iPhone, which is where this issue becomes very cumbersome, because there is no dropdown for me to select which credentials to use to autofill from. It appears to only allow autofill from whatever it sees as the first account to come up, and I can't seem to change that without deleting all the other keychain items that come up ahead of the one that I want. This kind of thing also poses a significant risk of accidents if, say, I have multiple payment methods saved and the one that comes up by default isn't my personal payment method, but a business account that's only meant to be used for business purchases. If that comes up first, if I don't replace it with my personal details, I might accidentally place a personal charge on a business account.
    So I really have 2 questions:
    1) Is there a way to set the priority order of which account populates a form by default from the keychain?
    2) When filling out credentials on iOS, an "autofill" button appears at the top of my keyboard, and I can begin typing in a field and it will show the autocomplete of the username that I am typing, but if I click autofill, it replaces it with the original credentials and not those of whatever I began typing in. If I click on the username it's autocompleting, it just clears the autocomplete. Is there some way to choose which username I'm autocompleting a form with?
    Thanks to anyone who has any ideas about a solution to this, and if there isn't, and if anyone at Apple is listening, in an ideal world, it would be like setting the priority order of known wifi networks, where you can drag your first choice to the top of the list.

    This sounds like the age old problem with keychain & Safari. I don't know of a way to solve it without using something like 1Password.
    The iOS app has it's own built in browser, so it has more control over what gets autofilled. Safari on OS X has an 1Password extension that handles account selection & autofill etc.
    Keychain is great in principle, but it quickly falls down when you need tight integration with many ID's & different use cases (work, home etc).
    I'd suggest you submit feedback to Apple about your thoughts. I did so years ago about this issue & this is how far we have come (back to the point where me.com synced passwords) :^)
    http://apple.com/feedback/macosx.html
    Other tools like lastpass or keypassx may also help if you want to truly segregate password storage, but that doesn't fix autofill, the way around that issue is to dedicate one browser for work.

  • Can I choose a backup-font for missing characters in a style? Or is there a way to select pink areas

    I have to layout tons of UTF 8 data from a MySQL database.
    There is one problem. The designer picked a font that does not contain the Japanese characters. But there is much inline-Japanese in the text.
    So the imported text has many pink areas (characters not present in font).
    So I search for any of the following options:
    Is there a way to define a fall-back font (like webbrowsers do). If you view UTF in TextEdit (mac) or in the browser, all weird characters are displayed using Osaka. Is there a way to let Indesign replace pink squares with Osaka?
    Is there a way to SELECT all pink squares, and apply a character-style to them? That way I can create a characterstyle with the Osaka font
    Is there a way to have InDesign parse some sort of markup-elements in plain text? I could tweak the MySQL output with PHP to wrap all strange symbols in a markup-item like [japanese]blabla[/japanese]. If that would be converted to characterstyle "Japanese" on import, I would be helped a lot as well.
    The font hack: is there a way to load all available characters in the designfont into Osaka and replace those characters and make Osaka2? Or would that result in a mess?
    I think some automation to get a character style on the pink areas is the best, as that allows to tweak font height and baseline shift to match the other font.
    Does anybody know one of the four or maybe a fifth way to tackle my problem?

    Thanks for standing in for me, Peter - we were hosting the extended family, I did nothing but cook for hours.
    Is there a way to have InDesign parse some sort of markup-elements in plain text? I could tweak the MySQL output with PHP to wrap all strange symbols in a markup-item like [japanese]blabla[/japanese]. If that would be converted to characterstyle "Japanese" on import, I would be helped a lot as well.
    This is what I'd do, honestly.  It depends on your available output-from-DB formats, and what you're placing/importing into ID. But if you're placing raw text (?) then you can't simply use Type -> Find Font, so the GREP solutions offered here are good ones.
    I think some automation to get a character style on the pink areas is the best, as that allows to tweak font height and baseline shift to match the other font.
    Note that the "baseline" in Japanese is not the same place as the baseline in Latin-script. Japanese doesn't really have a baseline - they operate with a completely separate set of typographical conventions - but the effect is that you should not line up the bottom of your Japanese glyphs with the Latin-script baseline. Set some bilingual text in a good font (Kozuka Mincho Pro, it came with ID, you probably already have it installed) and take a look.
    it is very important that you have the correct glyphs or you risk changing the meanings or making the author look like an idiot. If you don't read Japanese you would be well advised to have the document checked by someone who does to be sure it reads OK before it goes into the wild.
    Chances that you'll make something completely illegible are minimal when handling Japanese, but there are a very large number of reasons why you can't just flow Japanese into English-language ID and expect it to work. There are permissible places to wrap Japanese, and places where it's not permissible. The paragraph composer you'd be using if you are using English-language ID will happily break Japanese in the wrong place. This is analagous to bad hyphenation, but looks far more idiotic to the Japanese readership than bad hyphenation looks to an English-language readership (who probably wouldn't notice bad hyphenation unlesss they happen to be a design-savvy readership). Look into using something like Japanese Indesign or World Tools Pro or the TransPacific Digital Japanese-composer template files.

  • Is there a way to select every other page in a multi page pdf and convert it to grayscale?

    I'm going to ask this question in a few sub-forums, so if you think you've seen it, you might have.
    Where I work I use a program that can print to pdf. We use it to produce mailings, usually postcards, that are addressed.
    I often end up with a 500 page document that will print on 250 sheets of cover stock, which will get cut into 1,000 postcard, all pre-addressed and sorted by zip code.
    Usually, the address side is all black and the front is color. The printers we use can print a black click on the address side and a color click on the other, IF the pdf is set up that way. Otherwise, both sides will be counted as color clicks.
    I know I can select pages individually in a pdf and convert them to grayscale and those pages will be counted by the printer as black clicks, which are cheaper than color clicks.
    The problem is, I have not figured out how to convert all the odd numbered pages to grayscale at once. As a result, I usually end up printing the color side simplex, then putting the job back in the tray and printing the black side. Of course, that only works if only one side is personalized, sometimes both sides are.
    Is there a way to select every other page in a pdf and convert it to grayscale?

    The Acrobat SDK has sample code that shows how to convert the colors for one page (the first page of a document). This sample can easily be adjusted to process every other page. You can then use an Action that executes this JavaScript to process the document. Do you know how to create an Action? If so, you can use this script (as I said, adapted from the sample in the SDK) to convert all odd pages (1, 3, 5, ...):
    // Get a color convert action
    var toGray = this.getColorConvertAction();
    // Set up the action for a conversion to RGB
    toGray.matchAttributesAny = -1;
    toGray.matchSpaceTypeAny = ~toGray.constants.spaceFlags.AlternateSpace;
    toGray.matchIntent = toGray.constants.renderingIntents.Any;
    toGray.convertProfile = "Gray Gamma 1.8";
    toGray.convertIntent = toGray.constants.renderingIntents.Document;
    toGray.embed = true;
    toGray.preserveBlack = false;
    toGray.useBlackPointCompensation = true;
    toGray.action = toGray.constants.actions.Convert;
    // Convert every other page
    for (var i=0; i<this.numPages; i++) {
      console.println("Processing page " + i);
      if (i % 2 == 0) {  // change to "if (i % 2 != 0) {" for all even numbers
      console.println("in page " + i);
      console.println(this.colorConvertPage(i, [toGray], []));
    As I've indicated in the code, you can change this to all even numbers by changing the == to !=

  • Is there a way to select every other page in a pdf and convert it to grayscale?

    I'm going to ask this question in a few sub-forums, so if you think you've seen it, you might have. Someone suggested it might be done with Javascript. I know nothing about Javascript.
    Where I work I use a program that can print to pdf. We use it to produce mailings, usually postcards, that are addressed.
    I often end up with a 500 page document that will print on 250 sheets of cover stock, which will get cut into 1,000 postcard, all pre-addressed and sorted by zip code.
    Usually, the address side is all black and the front is color. The printers we use can print a black click on the address side and a color click on the other, IF the pdf is set up that way. Otherwise, both sides will be counted as color clicks.
    I know I can select pages individually in a pdf and convert them to grayscale and those pages will be counted by the printer as black clicks, which are cheaper than color clicks.
    The problem is, I have not figured out how to convert all the odd numbered pages to grayscale at once. As a result, I usually end up printing the color side simplex, then putting the job back in the tray and printing the black side. Of course, that only works if only one side is personalized, sometimes both sides are.
    Is there a way to select every other page in a pdf and convert it to grayscale?

    The Acrobat SDK has sample code that shows how to convert the colors for one page (the first page of a document). This sample can easily be adjusted to process every other page. You can then use an Action that executes this JavaScript to process the document. Do you know how to create an Action? If so, you can use this script (as I said, adapted from the sample in the SDK) to convert all odd pages (1, 3, 5, ...):
    // Get a color convert action
    var toGray = this.getColorConvertAction();
    // Set up the action for a conversion to RGB
    toGray.matchAttributesAny = -1;
    toGray.matchSpaceTypeAny = ~toGray.constants.spaceFlags.AlternateSpace;
    toGray.matchIntent = toGray.constants.renderingIntents.Any;
    toGray.convertProfile = "Gray Gamma 1.8";
    toGray.convertIntent = toGray.constants.renderingIntents.Document;
    toGray.embed = true;
    toGray.preserveBlack = false;
    toGray.useBlackPointCompensation = true;
    toGray.action = toGray.constants.actions.Convert;
    // Convert every other page
    for (var i=0; i<this.numPages; i++) {
      console.println("Processing page " + i);
      if (i % 2 == 0) {  // change to "if (i % 2 != 0) {" for all even numbers
      console.println("in page " + i);
      console.println(this.colorConvertPage(i, [toGray], []));
    As I've indicated in the code, you can change this to all even numbers by changing the == to !=

  • When using apple remote app on ipad or iphone to control apple TV is there a way of selecting different airplay speakers?

    When using apple remote on ipdad or iphone to control apple TV is there a way to select different airplay speakers without having to control the menu on screen. Eg I want to listed to my music through apple tv (which is in the living room)  and beam it to my airplay speakers in my bedroom, at the moment I would have to go back into the living room to see my tv screen to select the bedroom airplay speakers, then go back upstairs to listen to the music. YOu should be able to select the speakers in app without looking at the TV screen. Hopefully that makes sense!?!

    Look at this.
    Tango Remote Control for iOS6-7 on the App Store on iTunes

  • Just upgraded to iOS5 on ipad2 and now have all my old emails to delete. Is there a way to select all like in trash and then delete all?

    just upgraded to iOS5 on ipad2 and now have all my old emails to delete. Is there a way to select all like in trash and then delete all?

    Thanks for the feedback, the question is that it will syn all the folders that I have checked, and its total up to 6000 photos which was taking me one whole day to syn. I am seeking is there away that what have already in my Iphone will not be delected if I did not checked on the next syn, and only add in the new album that was checked.

  • When using two iPhones (iOS 5) on the same computer/iTunes Is there any way to choose which songs, contact info., etc. are sync'd to each device?

    When using two iPhones (iOS 5) on the same computer/iTunes Is there any way to choose which songs, contact info., etc. are sync'd to each device?

    For each iPhone...
    From the Summary tab select:  Sync only checked songs and videos.
    Under Options in the Summary tab select:  Sync with this iPhone over Wi-Fi
    If you want you can select: Manually manage music and videos.
    Select the music you want synced from your iTunes library, same with Contacts.

  • Is there a way to find which process s chain was scheduled?

    I am developing a query on 0TCT_C21. Is there a way to find which process chains were scheduled to run? I want to see only those process chains. 
    If 0TCT_C21 does not have the information, is it a way to get from somewhere else (i.e., some other tables using virtual characteristic or so  ...).
    Thanks a lot,

    You need to use a combination of tables and function modules.
    Table TBTCO contains list of jobs with job status 'S' for scheduled
    Table TBTCP contains the program name and variant scheduled in that job
    you need to use a function module to know the chain name using the above program name and variant.
    I have written a sample code to do this. feel free to change it as per your needs.
    REPORT  ztest4.
    TYPES: BEGIN OF l_s_scheduled,
           jobname  TYPE tbtco-jobname,
           jobcount TYPE tbtco-jobcount,
           sdlstrtdt TYPE tbtco-sdlstrtdt,
           sdlstrttm TYPE tbtco-sdlstrttm,
           progname TYPE tbtcp-progname,
           variant TYPE tbtcp-variant,
           chain   TYPE rspc_chain,
      END OF l_s_scheduled.
    DATA: l_t_scheduled TYPE STANDARD TABLE OF l_s_scheduled,
          l_t_valtab    TYPE STANDARD TABLE OF rsparams,
          l_w_valtab    TYPE rsparams.
    FIELD-SYMBOLS     <l_f_scheduled> TYPE l_s_scheduled.
    SELECT a~jobname a~jobcount a~sdlstrtdt a~sdlstrttm b~progname b~variant
    INTO CORRESPONDING FIELDS OF TABLE l_t_scheduled
       FROM tbtco AS a JOIN tbtcp AS b
                  ON a~jobname = b~jobname AND
                     a~jobcount = b~jobcount
    WHERE a~jobname = 'BI_PROCESS_TRIGGER' AND
          a~status = 'S'. "Scheduled
    LOOP AT l_t_scheduled ASSIGNING <l_f_scheduled>.
      REFRESH l_t_valtab.
      CALL FUNCTION 'RS_VARIANT_CONTENTS'
        EXPORTING
          report               = <l_f_scheduled>-progname
          variant              = <l_f_scheduled>-variant
        TABLES
          valutab              = l_t_valtab
        EXCEPTIONS
          variant_non_existent = 1
          variant_obsolete     = 2
          OTHERS               = 3.
      IF sy-subrc = 0.
        READ TABLE l_t_valtab INTO l_w_valtab
        WITH KEY selname = 'CHAIN'.
        IF sy-subrc = 0.
          <l_f_scheduled>-chain = l_w_valtab-low.
        ENDIF.
        WRITE :/ <l_f_scheduled>-chain, <l_f_scheduled>-sdlstrtdt, <l_f_scheduled>-sdlstrttm.
      ENDIF.
    ENDLOOP.
    The structure l_s_scheduled in the above program can be extended with more fields and can be used as extract structure in a generic datasource  of type function module and can be fed into a DSO for reporting.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/business-intelligence/d-f/functional%20module%20based%20generic%20datasource%20part%20i.pdf
    Hope it helps!

Maybe you are looking for

  • The cryptic error - element cannot be found in a collection ?

    I have encountered this error in the script task a few times. The causes are - Variable is present in code,  but not added to task list OR, you try to create a DataColumn with the wrong column name, OR the variable in the task list has been deleted.

  • 3 internal tables in one ALV - Download to Excel

    Hi guys..I need some help I've tried searching around but no avail. I have a requirement to display 3 itabs in 1 ALV. An example of the output would be like a report from ECC tcode - ME2L. Basically it will be Header Item Schedule Line And of course

  • Ipad retina disconects from router

    Got connected finaly by updating the router firmware, reducing width to 20 and increasing wep2 pw to over 12 digits. Ipad now connects but disconects every few minutes and asks for the wep2 pw again. Thinking my years of PC'ing may have been well spe

  • Importing new users with plain text password using a csv file does not work

    Hello everyone, I am using csvde -i -f filename to import a number of users and their plain text passwords but it seems that the "Password" parameter in my csv file is not recognized. PS D:\csvfiles> csvde -i -f .\testimport.csv Connecting to "(null)

  • RDP Published IE application. On export would like to use local version of Excel.

    We have a remote app (Internet Explorer site) that we have published. When a exports to an Excel spreadsheet server instance of Excel opens. Instead we would like to use the local version of Excel. Similar to this option in Dynamics: https://communit