Manage two screens

Hello,
I just start to learn java. One of my projects is to create an application that uses two screens.
Have somebody already done something with this kind of configuration ?
Some more details :
On my first screen (monitor) I would like to have the main application and on the second screen (monitor) I would like to have a other window that will display information to a customer.
So I would like to set the position of the two windows.
I already try to understand the Window class and GraphicalEnvironment, but I can't get a solution.
Thanks for you help.
Bernard

I hope the following method helps:
void showFrame(int preferredWidth, int preferredHeight) {
Toolkit toolkit = getToolkit();
Dimension dimension = toolkit.getScreenSize();
// ensure preferred width fits user's monitor
if (preferredWidth > dimension.width) {
preferredWidth = dimension.width;
// ensure preferred height fits user's monitor
if (preferredHeight > dimension.height) {
preferredHeight = dimension.height;
pack();
setBounds( (dimension.width-preferredWidth)/2,
(dimension.height-preferredHeight)/3,
preferredWidth, preferredHeight );
setVisible(true);
}

Similar Messages

  • How do I manage two iPods on one computer please?

    I have an iPod (early 40G model, and it's fine). I installed iTunes, and all fine. A year goes by. Another member of the household gets an iPod (mini), and we load the software into a different subdirectory in Program Files. This erases my iTunes, but all still works fine for some reason. i.e. when I attach my iPod, it is recognised, and my iTunes music is shown on the screen. When the other iPod is attached, same thing (i.e. it is recognised and her iTunes are shown on the screen). Our different music folders are stored in different subdirectories.
    This is all fine, until her iPod erases itself, and is now no longer recognised by iTunes. In the processes advised for solving this situation (restore and reset etc) we erase my iPod (but have managed to restore music to if after re-installing the original software that came with it.)
    So now we are back to the stage of having her iPod not being recognised by iTunes. Please suggest solutions! Please also advise if there is a more sensible way of managing two iPods on one PC. Is it really as basic as having different playlists?
    Thanks in advance for your help.

    Yep. Playlists will do it.
    If you want other options, see this:
    Natalie Beresford: Multiple iPods/iTunes Installations

  • Managing Two Different Libraries on One MacBook Pro

    How can I manage two different iTunes libraries on one MacBook Pro?  My currently library (i.e. all files) is on an external hard drive.  My girlfriend synced all of her music onto an iPad but she no longer has the computer.  I'd like to get her music onto the computer without mixing her library with mine.
    Thanks!

    you might have to find a third party program to get those songs off her ipad onto the computer, apple doesnt support that unless they are purcahsed from itunes store because of DRM (Digital Rights Media) another word for copy write. so theres not a whole lot of hope for that, but you can always create a new user on your computer
    >user>+ icon>Create new user make it admin
    -if they are how ever purchased from itunes you would still make that new user, plug the device into itunes and authorize the computer by clicking store on the top of your screen where file edit and view are, Store>authorize this computer
    once thats done you'll then plug that device in to the computer and on the left side of itunes you'll see devices and "Device name" the device its self, right click or control click the name and choose transfer purchases, anything that has ever been purchased of gotten for free will sync onto the computer,
    you cant just simplay pull the songs off the device to the computer, doesnt work like that

  • Video stream : Synchronization of two screen

    Hi
    In my project I have to create two or more screens, each feeding on different source. In addition I must be able to synchronize these two screens to the same time, exactly.
    Is it possible? How reliable is JMF in this regard?
    Any link, advice, idea will be highly appreciated.
    Bye Yuval

    There are currently better sync features in the works!
    I know your frustration. For a similar and more in-depth discussion, see another thread I posted in here: Batch syncing audio and video using timecode
    Unfortunately in CS6 (what I currently use)  it creates a separate track for each clip, which can be a mess if you have hundreds of clips. The best way I have found to make things easier is to create a separate TC synced multi-cam sequence for each individual cameras footage.  For example, I follow the same steps you did for each of my cameras footage independently so that I have a TC synced sequence for camera A, a TC sequence for camera B, etc. Then you can select all the footage of each sequence, nest it, and copy each nest into a master sequence to work with. What you end up with is a single clip for each camera. MUCH easier to work with!  To keep track of where clips start and/or end in the nested sequences you can go into your original sequence and place a marker (shortcut "M") at each clip. These markers then show up in your Mastertimeline clips for reference.
    I know things could be easier, but this is currently the best option I know of. I already put in a feature request and was told by the Engineering Manager of Premiere Pro that new sync features were in the works. (see thread link above)
    Hope that helps!
    ...and for the record, here is my TC sync process:
    SELECT ALL clips you wish to sync from your Project Tab/Window.
    RIGHT-CLICK and SELECT "Create Multi-camera Source Sequence..." In CS6 it is the next-to-last option in your popup window.
    A dialogue box will appear. For the Synchronize Point, SELECT the box that says "Timecode" and UN-CHECK "Ignore Hours"
    You will now see a new multi-cam sequence in your Project Tab/Window.
    RIGHT-CLICKyour new multi-cam sequence and SELECT "Open in Timeline"

  • Using Pages over two screens

    I wonder if it is possible to work with Pages or even Keynote over two Displays?
    For example have a preview over a secondary screen that is rotated in 90 degrees.
    Grant most Macs have the ability to spam over two screens.

    I wonder if it is possible to work with Pages or even Keynote over two Displays?
    For example have a preview over a secondary screen that is rotated in 90 degrees.
    You are asking for two sorts of support :
    1. Globally, the operating system supports several colour managed screens at the same time. You have to have the horsepower, but if you have that then it is not a problem.
    2. Locally, the application may or may not support several window views of the same document at the same time. For instance, Adobe Illustrator has done this since version 3 at least.
    If you can't get Pages to support (2), save a copy of the document and open that in order to do what you want. Meanwhile, in paginated publishing it is not seen as important to be able to open multiple views of the same artwork whereas in dealing with the minutiae of an illustration that ability is a lifesaver.
    /hh

  • I have two screen on my PC. Adobe always opens on the second screen. I would like to change this. Ho

    I have two screens on my PC Adobe always opens on the second screen. How do I change this to open on the first screen.

    It should (should) stay where you close it from, especially if you have it maximized on that monitor. I can't guarantee that because I'm having the same problem with Firefox this morning. I always open it on my secondary montior, and today it will only open on the primary.

  • Managing two iPads on one iTunes account

    Hey, all anyone out there who can help me with managing two iPads, one for home (original model) and one for work (new version)? I'd like to manage all my apps through one iTunes / Apple account. Is that practical? Or should I start a second account?
    [email protected]

    Ditto.  iTunes will allow you to pick and choose what you want to put on both.  Just name them something different when setting them up.

  • How can I use two screens to display one window

    Before Mavericks, MAC OS allowed you to use two screens (next to each other) in order to display one (big) window of one application.
    That would mean that a window would start on your left screen en would continue on the right screen.
    With Mavericks, however, this not possible any more. The window of the application can only be seen on ONE of the screens (i.e. the left one).
    Can any one tell me whether I've missed certain options or how to adjust my settings in order to get this feature back?

    Hey CGNL,
    First, if you haven't already, set up the displays as an extended desktop:
    Choose Apple menu > System Preferences, click Displays, then click Arrangement.
    Follow the onscreen instructions.
    Then, use Mission Control preferences to uncheck/turn off the option for "Displays have separate Spaces":
    Choose Apple menu > System Preferences, click Mission Control
    Uncheck "Displays have separate Spaces"
    That should enable you to stretch whatever window you want across multiple displays.
    via: OS X Mavericks: Connect multiple displays to your Mac
    http://support.apple.com/kb/PH13814
    and
    OS X Mavericks: Mission Control preferences
    http://support.apple.com/kb/PH13925
    Welcome to Apple Support Communities!
    Have a good one,
    Delgadoh

  • How can I open two screens of Adobe digital editions at the same time?

    How can I open two screens of Adobe digital editions at the same time?

    I doubt that you can. Doesn't the Sound prefpane require you to select just one output device?

  • I have recently installed Mavericks and since then I have been unable to shut down or log out of my mac.  I work with two screens and now I seem to have programmes at the top of both screens which I didn't before.  any advice?

    I have recently installed Mavericks on my desk top and since then I have been unable to switch off my computer without crashing it. I work with two screen and now I seem to have the menu bar on the second screen as well which I did not have before.  Can you please help me?

    Dr Bettina, I had similar problems with Mavericks. I installed it on a Mini and a 13" MacBook Pro. I can't speak to your disdplay issues, but I can confirm the inability to logout, shut down, or restarft without a forced, power button shut down. I can also report frequent System Prefs freezes and finder issues, like folder contents taking half a minuite or more to render, or not appearing at all. And while a few Adobe CC apps actually ran faster, InDesign ran like molasses uphill in Decemner.
    I tried uninstalling or disabling numerous 3rd party apps and pref panes. I unplugged everything but the keyboard, ran DiskWarrier, repaired permissions, did fsck -f, trashed various preference files, reinstalled the OS... You name it, and I tried it — short of a potion using eye of newt.
    After two days of totally hosed productivity, I restored OS 10.8.5 on the Mini so I could actually get some work done. However, I've decided to leave Mavericks on the MBP as a sort of crash dummy, and will install and thoroughly test all updates until stability has been achieved. Then — and only then — will I upgrade the Mini to Mavericks, even if it means waiting 'til a .2 or even .3 update.
    Good luck to you...

  • Oracle VM Server 2.2 Install Problems (Management Info Screen Skipped)?

    Hi,
    I am new to Oracle VM Server and I basically following the install guide to install the server on a spare machine we have in the office (a relatively new Dell with an i7 processor and 8gb memory) so we can evaluate it and play with it a bit.
    When running the install from a bootable CD everything goes as expected and documented in the install guide up to point number "11. The Oracle VM Management Interface screen is displayed." - when we install it skips these screens and jumps directly to step "15. TimeZone Selection."
    We continued with the install but when the VM Server comes up we have no network enabled?
    Any help would be greatly appreciated.
    Regards,
    Bren

    Hi BOF,
    if the network screen is not displayed during installation, the network card could not correctly be identified, and it may be that the network drivers are not installed.
    If you are lucky, the network is still detected and working, but not with the correct drivers.
    Did you use OVM Server 2.2. or the latest 2.2.1 (which includes some more network card detections?).
    Otherwise I recommended getting the correct network drivers for the card and installing them after the server is running.
    Keep in mind, that OVM Server 2.2 is based on OEL 5.3 (respectivly RHEL 5.3) if you are looking for the correct drivers.
    Maybe this thread on realtek network cards can give you some more information:
    oracle vm - network issue
    Regards
    Sebastian

  • Best practice on managing two iPhones / iTunes accounts

    I have always used two computers / iTunes accounts for my wife and I's two iPhones. Last week my iPhone and home computer hard drive both crashed (what are the chances. I am now pulling all data off my AppleTV and I am trying to decide how to set everything back up:
    1. Put all content on wife's Toshiba laptop (Win7) and manage two instances
    2. Buy a new Harddrive and reset up my desktop (which will only be used to manage digital media and occassional surf.
    Any thoughts? How simple is it to manage two iphone/itunes accounts from one machine. Last posts I saw look like a bit of a pain, because I have to manage my music (the bigger amount of music) in playlists.
    Opinions appreciated!

    You're welcome.
    Can I import the same music into both iTunes instances.
    Yes, as long as your authorize the computer for each account that the music was purchased under, e.g- if the music was purchased under your account & you want the music in your wife's library, you would use her computer login, launch itunes, sign her out of itunes, sign in using your itunes account details, Store>Authorize this Computer, sign out, then sign her back in.
    Do I need to just add one new user
    Yes, and I assume you want full administrative powers, so you should set up your account as an administrator.
    Once you've set things up this way, transferring purchased content(Apps & music) is real easy. Simply launch itunes, sign out of whatever account you want to transfer the content to, sign in using the account that has the content on the phone, File>Transfer Purchases, sign out after doing so & then sign the other party back in.
    You also want to make sure that you disable auto sync when an iphone is connected under preferences in the edit menu. Do this for each login. You DO NOT WANT TO SYNC to each others account, just File>Transfer Purchases. That way you can share apps & music, which is permitted under the EUSLA for family members in the same household.

  • Manage multiple screens

    Hi there,
    i got a question concerning an example which was posted about managing multiple screens which Angela Caicedo posted on oracle blogs:
    https://blogs.oracle.com/acaicedo/entry/managing_multiple_screens_in_javafx1
    I got all working but one thing won´t work because of the first line:
         Group root = new Group();
           root.getChildren().addAll(mainContainer);
           Scene scene = new Scene(root);
           primaryStage.setScene(scene);
           primaryStage.show();
    Because all the screens get finally added to a Group they are not resizable. The main window could be resized but the content
    won´t because of the Group.
    I tried some things but without any luck.
    Could one point me plz to the correct direction
    Thy in advance
    Ingo

    I think you misunderstood my previous post.
    Replace
    Group group = new Group();
    group.getChildren().addAll(mainContainer);
    Scene scene = new Scene(group);
    with
    Scene scene = new Scene(mainContainer);

  • One of my two screens stays off after coming from standby - OSx 10.10.2 MacMini

    When 'reviving' my macmini after not using it for a while one of my screens stays black (The screen stays off so there is no contact from the mac). Even after logging in again the screen stays black.
    I can get it to work again by disconnecting both screens and plugging them back in, but that is not a real solution of course. Also, after switching the position of the screens the other screen stays off, so the problem should be in the connection.
    I've got a relatively new MacMini with OSx 10.10.2 and have the two screens (same size but not identical) attached via two 'mini displayport to DVI adapters'.
    Does anyone have any idea what can cause this?

    Hi Snery,
    Welcome to the Apple Support Communities!
    I know you have already started some troubleshooting for this situation where your second monitor is not connecting when you wake your Mac mini from sleep. To continue this troubleshooting process, I would suggest reading over and working through the steps in the attached article to help isolate and resolve this issue. 
    Apple computers: Troubleshooting issues with video on internal or external displays - Apple Support
    Best regards,
    Joe

  • How to pass the value between two screen in dialog programming.

    hi everybody,
    In case of dialog programming I have two screens 200 & 300.I want to get the value of textfield in screen 200 in scrren 300 in a label or in textfield.
    Thanks
    byee

    Aashish,
      Welcome to SDN!!!!
      SAP does automatic data transfer when u have the variable defined in the Program and same variable(name) being used in any number of screens in the same program.
    U donot want to worry abt Data Transfers!!!
    If this does not solve ur requirement, let us know.
    Thanks
    Kam

Maybe you are looking for