System out on Dual Monitor systems

Hi,
I am trying to write an application running on single processor, but dual monitor facility. So differnet monitor must get differnet display from same process.
May I know how can I capture the monitor standard output. I know we have System.out that is set to standard monitor, in this case I "think" it will consider the first monitor has standard output. So, how can I capture actual output stream to each monitor so that I can set the system out property to which ever monitor I wish.
Thanks
HKG...

I don't understand. System.out and System.err write to the standard out and err streams. When running Java in a command window under a GUI environment like Windows, Mac OS or Unix or Linux with X-based graphical displays, these streams will be default be displayed in the shell window that started the program. This window will be on what every display you placed it, the Java program has no control.
If the Java program is a GUI (AWT, Swing or SWT), then System.out and System.err output still goes (by default) to whatever shell window started the program or into the bit bucket if no shell windows as associated with starting the program.

Similar Messages

  • Saving window position at dual monitor system

    Hi!
    Is it just me, or is it a bug? I use flash at a dual monitor
    system an place the stage on the first and the actionscript window
    on the second screen. After restarting flash, both (the stage and
    the AS-window) are at the first screen.
    Ingo.

    I am having issues with it too:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15&catid=194&threadid =1288032&highlight_key=y&keyword1=dual%20monitor

  • After upgrading to NX-OS 5.04, out snmp traps monitoring system is not generating ticket / incident for the snmp traps and my question is whether we need to apply new MIBS for that?

    after upgrading to NX-OS 5.04, out snmp traps monitoring system is not generating ticket / incident for the snmp traps and my question is whether we need to apply new MIBS for that?

    Looking at the error message "The Network Adapter could not establish the connection" , It appears hostname and port may be incorrect. Review the targets.xml under E:\oracle\product\10.2.0\db_1\SAP_solman_SDB\emd and
    emoms.properties under E:\oracle\product\10.2.0\db_1\SAP_solman_SDB\config folder to make sure host ( sap_solman) and port (1527) are correct.
    As far as setting the environment variables goes, you can go to control panel -> system -> advanced -> environment variables and set the ORACLE_HOME and ORACLE_SID
    -Ramesh

  • Problem on dual monitor system

    Hi;
    I have dual monitors and put Eclipse on the right monitor full screen. When I move the mouse over a variable, the pop-up is displayed in the left monitor.
    ??? - thanks - dave

    I've a similar problem. But actually my problem is very common; I've seen a lot of programs showing this.
    My monitors are arranged as [2][1]. That means the primary monitor is on the right while the secondary is on the left. But most programs suppose that we have [1][2]. This is a very very bad assumption.
    So when the application window is placed on the secondary monitor, ie on the left, popup, tooltips or other things would appear on the right ([1]) !
    Nitrox is, unfortunately, one of these applications.

  • Timeline scrolls by itself on dual monitor system

    Here's a minor (but somewhat annoying) issue maybe someone has an idea about. I'm running PPro CS 5 on Win 7 x64 with two, idential 24" screens, configured as one, large desktop, with the primary monitor on the left. Each screen is running at 1920 x1200, and PPro is stretched across the screens, so it has a long timeline.
    The annoying part is that if I play a sequence with the CTI starting anywhere in the first half of the left-hand (primary) monitor, the timeline all of a sudden scrolls all the way to the right end of the screen. The CTI then has to advance for a bit before it wraps back to the left side, again. Nothing gets changed in the sequence -- it's just that the scrollbar shifts around on its own. Running the screens at a lower resolution doesn't stop this, and is counterproductive, anyway.
    Has anyone else encountered this?

    I knew this was going to be hard to describe, so I recorded a 7-second video of the timeline:
    http://www.screencast.com/t/eiDbSJ8d1b0
    The timeline you see is stretched over both monitors (it's about 1900 px wide, but reduced for this video). At 00:00, note the CTI starts near the left side of the timeline. After I press the spacebar to start playback, at 00:01 the whole sequence has scrolled to the right. You can clearly see a different section of the audio waveform is displayed, and the CTI is near the end. But then at 00:02, the CTI bumps into the end of the window, and the sequence scrolls back to where it started out a couple of seconds earlier, and then plays normally.
    What I'm trying to figure out is how to prevent the sequence from scrolling back and forth like that. If the CTI had started about 25% further to the right, this wouldn't happen.

  • ScreenSaver on Dual Monitor System

    When the screen saver kicks on, if does not adhere to the same rules as wallpapers do. Wallpapers treat each monitor separately, meaning the same wall paper is applied to each monitor.  When I select the picture screen saver (that shows a slideshow, the pictures ALWAYS orient on the top/left corner of the left-most monitor.  It seems to me that this is wrong.

    There's an app for that, 2nd Screen Saver runs an independent screen saver on the other screen(s)!
    http://2ndscreensaver.blogspot.com/

  • CCMS Agent Issue in Central Monitoring System

    Dear Guru's,
    We are configuring the CCMS Agent in our landscape, while registering the CCMS Agent we're facing some issue.
    CEN system - Only ABAP Stack - ECC 6.0 Ehp3
    Target System - Double stack (ABAP + JAVA, Netweaver 2004s)
    After completing the Visual Admin settings. Service file SAPCCMSR.99 has
    been generated automatically. As per the help.sap the service file should
    be SAPCCMSR.<Instance No.>, our instance no. was 00 but its was generated
    with 99 (SAPCCMSR.99).
    Two RFC has been created in Double stack system and one RFC has been
    created in ABAP system.
    RFC in ABAP system :
    SAPCCMSR.HOSTNAME.00 - its not working
    (Error Details, ERROR:program hostname.sapccmsr.00 not registered)
    RFC in Dual-stack System :
    SAP.CCMS.J2EE.SID - its working
    SAPCCMSR.HOSTNAME.00 - its not working
    (Error Details, ERROR:program hostname.sapccmsr.00 not registered)
    While testing the Remote System Topology, we're getting communication
    error.
    In RZ21, Topology - Agents for Remote Systems - Display Overview, Agent
    for SAP System SID tab, Agents for Remote SAP Systems, selecting the
    available system (Dual stack system) and give Test Connection means
    its throwing Error opening an RFC connection - SAPCCMSR.HOSTNAME.00
    Could you please suggest, what we're missing.
    regards,
    Guna

    Hi,
    Thanks for your reply.
    What your said was rite, but I'm unable to get J2EE (Java Stack) alert information in RZ20 of the same system, coz., its dual stack system. If we don't have any issue in Java means it should be updated in RZ20 of the same system.
    In Dual-stack System:
    RZ20 -> CCMS monitor sets -> SAP J2EE Monitor Template -> All Systems -> SID -> J2EE Engines, J2EE Applications, J2EE Log files... these are not updating here.
    Could you kindly suggest for above issue.
    regards,
    Guna

  • [Solved] Move system out of LVM DBus problems

    Hi,
    Earlier was using LVM and Arch age on Vol0/archlinux, today I moved the system out of LVM, then system now is on sda1, for move I do this (I can't remember the correct order but I thinks that's it):
    1. copied system using "rsync -ah --progress" ignoring sys,dev,run,mnt,proc
    2. configured /etc/fstab accordly:
    /dev/sda1 / btrfs rw,relatime,space_cache,compress=lzo 0 1
    3. from a chroot installed grub (no error reported), i.e.:
    grub-install --recheck /dev/sda
    4. booted in the system
    all are working well, except some services can't start at boot: dnsmasq and after login in console systemd-logind fail to start at first try (automatically) after it start normally and is working.
    another thing is that LightDM won't start, the complete output:
    [+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
    [+0.00s] DEBUG: Starting Light Display Manager 1.6.0, UID=0 PID=3230
    [+0.00s] DEBUG: Loaded configuration from /etc/lightdm/lightdm.conf
    [+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
    [+0.00s] DEBUG: Using Xephyr for X servers
    [+0.00s] DEBUG: Registered seat module xlocal
    [+0.00s] DEBUG: Registered seat module xremote
    [+0.01s] DEBUG: Adding default seat
    [+0.01s] DEBUG: Starting seat
    [+0.01s] DEBUG: Starting new display for greeter
    [+0.01s] DEBUG: Starting local X display
    [+0.01s] DEBUG: Could not run plymouth --ping: Failed to execute child process "plymouth" (No such file or directory)
    [+0.01s] DEBUG: Using VT 7
    [+0.01s] DEBUG: Logging to /var/log/lightdm/x-2.log
    [+0.01s] DEBUG: Can't launch X server Xephyr, not found in path
    [+0.01s] DEBUG: X server stopped
    [+0.01s] DEBUG: Releasing VT 7
    [+0.01s] DEBUG: Display server stopped
    [+0.01s] DEBUG: Stopping display
    [+0.01s] DEBUG: Stopping seat, failed to start a display
    [+0.01s] DEBUG: Stopping seat
    [+0.01s] DEBUG: Seat stopped
    Failed to get D-Bus connection
    tried:
    1. re-installing lightdm
    2. regenerating initramfs
    3. removing and re-installing dbus and systemd (i.e.: pacman -Rnsdd systemd dbus; pacman -S systemd dbus)
    nothing of these things solves, So I think that it isn't a LightDM issue.
    dbus-monitor looks correct!
    Last edited by hotvic (2013-07-26 03:06:54)

    Is X server Xephyr in your path?
    By the way, you would be better advised to use the rsync flags mentioned in the wiki page for full system backup with rsync to make sure that you do not lose information. -a will get most stuff but not everything. For example, ping may not work and I think you will lose ACLs as well as capabilities. I doubt this is why it can't find the X server, though.

  • System.out will not flush before input

    Hello everyone,
    I am using Netbeans 5.5, JDK6, and J2EE. I am new to the environment so I wrote a test application that would prompt a user to enter a string and then echo it. I have:
    String str = "";
    BufferedReader br = new BufferedReader(new nputStreamReader(System.in));
    System.out.print("Enter a string: ");
    System.out.flush();
    try
    str = br.readLine();
    catch(IOException ex)
    System.out.print(ex.toString());
    System.out.print(str);
    What is really bizarre is that System.out will NOT flush no matter what. My application will always ask for input before it even prompts the user for the string. This is what the output looks like when running:
    init:
    deps-jar:
    compile:
    run:
    hello
    Enter an string: hello
    BUILD SUCCESSFUL (total time: 5 seconds)
    Notice how I had to enter the string first? The only way that I have seen that it flushes is if I used println() instead of print. But what if I don't want the prompt to have an end line in it. This just seems like weird behavior. Also, I have tried using a Scanner for input and the results are the same. Not really sure what to do. Any help would be most appreciated. Thanks.

    are you running this inside netbeans as well? the "console" view in netbeans (and eclipse, and probably other IDEs) is not a real console, it's a GUI component that the IDE writes to. it's behaviour isn't guaranteed to act like a real console. I've seen this sort of thing on eclipse before, but never used netbeans. but it still stands that an IDE's console view isn't an actual console/terminal window. that may well be the root of the problem

  • Redirect, System.out  ?

    Hi.
    I want to redirect System.out to a Swing Component like JTextArea, etc.
    try with printstream, Reader, etc. but i dont know how.!.
    I want to see, messages (The standard out) in a Swing Component.
    plis some help..
    tnks.

    I was using the Redirect method you made edna for my software and it works wonderfully when using strings, unfortunately I ran in to a strange problem which is fitting since my current objective is very strange.
    I am writing a piece of software that has an embedded jython interpreter in it. When I execute my jython scripts all the output went to the console and I had no direct way of saying append to this particular text area since I wasn't able to pass my Java GUI class in to the script.
    Thus redirecting my output with your method came in quite handy. This is where the problem comes in. I tried the println function in my regular java classes and all the primitive types worked fine, but within in the script only String worked. Here is the code for the println function
    PrintStream stdout = new PrintStream(System.out) {
       public void println(String x) {
          outputTextArea.append(x + "\n");
       public void println(int x) {
          outputTextArea.append(x + "\n");
       public void println(boolean x) {
          outputTextArea.append(x + "\n");
       public void println(Object x) {
          outputTextArea.append(x.toString() + '\n');
    };Here is the sample Jython code:
    import JythonScripter
    System.out.println(4) #fails to print correctly
    System.out.println("HelloWorld") #works
    System.out.println(10) #fails
    System.out.println("Goodbye Cruel World") #works
    If you have any advice on why strings would work but not other types I would greatly appreciate it.

  • Using same line in Console/Screen System.out.println()

    Ok next small prob, and then thats it lol,
    Let's say if I want to print something out to the screen...
    And after that print something again on the same line...
    So, sorta like refreshing the line.
    I can't figure it out because System.out.prinln() jumps to the next line.
    Thnkx in advance
    Robert

    public class Switch
        public static void main(String args[])
            try {
                for(;;){
                    System.out.print("Hello   ");
                    System.out.flush();
                    Thread.sleep(2000L);
                    System.out.print("\u0008\u0008\u0008\u0008\u0008\u0008\u0008\u0008");
                    System.out.print("Good Bye");
                    System.out.flush();
                    Thread.sleep(2000L);
                    System.out.print("\u0008\u0008\u0008\u0008\u0008\u0008\u0008\u0008");
            catch(Exception ex) {
                ex.printStackTrace();
    }

  • Solution Manager and external Central Monitoring system

    We have a Solution Manager system SOL and a Central Monitoring system
    CEN.  The monitored system SDS is configured to report CCMS data to CEN
    and I wanted SOL to be able to access this data.  After configuring SDS
    to CEN, CEN that the following entry in RZ21:
    SDS#SDS_RZ20_COLLECT#SDS_RZ20_ANALYZE
    After performing the wizard in SOL, SOL now has the following entries
    in RZ21:
    SDS2#SM_SDS2CLNT200_READ#SM_SDS2CLNT200_TRUSTED
    This would indicate to me that SOL is reading the CCMS information
    directly from the monitored system, rather than via CEN.
    In the 'Setup System Monitoring' of Solution Manager the Central
    Monitoring System and CEN destination are SOL and NONE respectively.
    Is this configuration correct, and if not how do I correctly configure
    it?
    Is the monitored system now only reporting data to SOL, or is it
    reporting to both CEN and SOL?
    Regards,

    Issue closed

  • Information needed on having one more CEN system for the monitored systems

    Hi Everyone,
    I need some information regarding configuring of one more CEN system
    system for the systems which are already being monitored by another
    central system.
    1) Do I need to register a new CCMS agent on the monitored system for the NEW CEN system again. As I already have sapccm4x registered in the monitored system for the old CEN system, which i think can't be used for the new CEN system.
    If I can go with configuring NEW CEN system for the same monitored systems, can you tell me how should I proceed.
    Can anyone help me by providing the information for this issue.
    Regards,
    Bharath Kumar.K

    1) yes you can use DSL with what you have, but you want more RAM and I would recommend getting OSX.3 or above because the web browsers for OS9, which I assume is what you are running, are a bit dated and not well supported any longer.
    2) Yes you can add more RAM. The 64meg stick in there can be removed. You can add up to 1 Gig of RAM via two 512Mb PC100 or PC133 DIMMS.
    See here: http://tinyurl.com/qdlo3
    I would add at least 512 Mb if you use OSX and no less than 256 mb if you are using OS9
    3) No you can not use CD-R or CDRW with the hardware you have. That iMac only has a CDRom drive and can not burn CDs. You can buy an external CD burner if you want to back up to CDRs
    PS: You may want to remove your serial number from your post. Granted the warranty has expired but there's no need or reason to list it.

  • URGENT : System.out AND OACorexx files! log files more than 4Giga

    Hi all,
    I have a client with a custom done in OAF where there are a lot of System.out... and System.err "logs" print.
    The problem is that these logs are written in OACorexxx files under Apache/Jserv/logs/jvm directory: in only 4 days more than 4G size!
    Is possible to disable this logs?
    Thanks,
    Carlo

    Calling java.lang.System.setOut(PrintStream out) will allow you to redirect the System.out calls. You can direct them to null.
    --Shiv                                                                                                                                                                                                                                                                               

  • Temporarily routing System.out and System.err to a String

    Hi everybody,
    Does anyone know of a way to temporarily route System.out and System.err directly from the console into a String, then set it back to its default to the console? I know how to reroute to a text area:
    TextAreaOutputStream taos = new TextAreaOutputStream(yourTextArea);
    PrintStream ps = new PrintStream(taos);
    System.setErr(ps);
    System.setOut(ps);But it doesn't seem like there is either a way to reroute to a String or a way to switch back to the default routing afterward. Can anyone give me some advice on how to do this, please?
    Thanks,
    Jezzica85

    Too late to the party?
    import java.io.*;
    public class Redirection {
        public static void main(String[] args) {
            System.out.println("To console");
            PrintStream old = System.out;
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            PrintStream ps = new PrintStream(baos);
            System.setOut(ps);
            System.out.println("To memory");
            System.out.print("No 'ln'");
            //System.out.flush(); //needed?
            System.setOut(old);
            System.out.println("To console again?");
            System.out.println("earlier I wrote...");
            byte[] data = baos.toByteArray();
            String message = new String(data);
            System.out.println(message);
    }

Maybe you are looking for