DOS window Display Question

Just as a curiosity, If I have an application that moves info from one db to another, and I wanted to display the number of records moved, I could use....
for(loop){
System.out.println(stuff);
but that would cause many many lines. I could do the tried and true % and display stars as well. In many (non java) programs there is a display line like this....
Application has moved X records.
and the X increments while not adding a line. Is there a way to so this in java? Do you have to do a Runtime call to clear screen and then write a line?
Thanks.

Hmmm you could use a JDialog too. However to do that in a console I guess a clear screen would be the way to go, but if I remember well there was an articles published some months ago on this site about emulating a password field on a console that could either mask the input or change it to *. The point is that it was erasing a part of the text on the screen and replacing it which is what you need I think.
Regards

Similar Messages

  • Lenovo Service Trigger in DOS Window on startup

    After Windows (7, 32) desktop displays, a DOS window displays for a few seconds.  It contains the following;
    Lenovo Service Trigger v0.1  
    Event registered successfully.
    Start Event successfully raised.
    Unregister rrservice provider successfully!
    It always goes away and does not seem to affect anything, but...it makes me nervous to see something like this when there is no obvious explanation (can't see it in Event Viewer).  Anyone know what it is?   

    http://forums.lenovo.com/t5/T400-T500-and-newer-T-series/Weird-error-message-on-bootup-T400-Win7-64/...
    Here's a thread on this. Check the post above the one marked solution.  
    Dave
    T430u, x301, x200T, x61T, x61, x32, x41T, x40, U160, ThinkPad Tablet 1838-22R, Z500 touch, Yoga Tab 2 Windows 8.1, Yoga Tablet 3 Pro
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"!
    If someone helped you today, pay it forward. Help Someone Else!
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество

  • FRM-10142 The Http Listener (Dos Window Does not Stay Open)

    Dear Sir
    URGENT
    When I start OC4J instance its dos window open for few seconds and after that its closed.
    I mean OC4J instance dos window des not staying open at task bar.In oracle 10g forms builder and 11g database
    Please guide me how this problem would be solve...?
    Yassen

    For URGENT questions go right to https://support.oracle.com and file a Prio 1 SR with Oracle Support. For everything else I don't see why your question is more urgent then others.
    Did you check if maybe the port OC4J runs on (8889) is already used by another program (netstat)? Did you check the logfiles?
    cheers

  • In Windows, display reads UNMOUNTABLE_BOOT_VOLUME and will not proceed and I can't get back to the OS 10 Mac side of my computer. Help!

    In Windows, display reads UNMOUNTABLE_BOOT_VOLUME and will not proceed and I can't get back to the OS 10 Mac side of my computer. Help!

    buttercup7 wrote:
    Wow, wonderful!  I'm back on the OS X side of my computer and that's a good thing, THANK YOU!!  My next question, if you can help, why did that happen the first place and what can I do to prevent it from happening again?  I would be grateful for any insight you might offer.
    I gave you the link to the Boot Camp documentation, read it carefully, mistakes in BC can have serious consequences.
    If you have not yet backed up your Mac, DO IT NOW.

  • How to make dos window scrollable under win98?

    Hi, I am using win98, every time when I run my GUI application, whenever I got bunch of error message that can not be displayed in one window, I will miss the original error information. Can anyone tell me how to make my dos window scrollable so that I can view all error message.
    Thanks a lot.

    I don't think that you can do this. There is another way, however: When java throws an exception, if it is not caught in your program, it is sent to the standard error, which is the console. You can simply reset this to be a file, so you can read this to get all the error info. Try using the following code in your main method:
      public static void main(String[] arg) {
        try {
          System.setErr(new PrintStream(new FileOutputStream(new File("Errors"))));
          //instantiate your main class here
          MyClass mc=new MyClass(); //or whatever
        } catch (Exception _ex) {     
          System.out.println("An error occurred"); //exception get sent to standard error automatically, so there
                                  //is no real need to catch this exception. However, I use it to display
                                  //a message on the console to let me know an error has occurred.
          System.err.println(_ex.getMessage()); //and finally, print the exception to file
          _ex.printStackTrace();
      }

  • Double Quotes Display Question Marks

    I have some data in a tabe that is rendered as some read only output in my JHS app. This works fine in JDeveloper on Linux and JDeveloper as well as deployed on Windows. However in the version that is deployed on Red Hat the double quotes are not displaying correctly and instead display question marks in their place. The import of the database schema worked and the data is in fact double quotes. Wondering what setting I can change that makes this server treat the same data as the other environments?

    Hi,
    This sounds like a JDeveloper/ADF issue that is not related to JHeadstart. Can you please ask this question at the JDeveloper forum at JDeveloper and ADF ? Thanks!
    Regards,
    Evert-Jan de Bruin
    JHeadstart Team

  • � sign in DOS window

    How do you display � sign in DOS window when executing a program - problem has been set by Java Lecturer as extra credit. When using unicode value of 00A3 (Which works in our unix labs) it displays and accented U instead of the desired � sign!
    Any help in gaining that much needed extra credit is much appreciated.
    GAR

    try this
    try{
    OutputStreamWriter osw = new OutputStreamWriter(System.out, "Cp850");
    PrintWriter out = new PrintWriter(osw);
    out.println("�");
    out.flush();
    }catch(Exception e){ System.out.println("aaaaaaaaaagggggh");}
    CP850 is the DOS encoding called "Multilingual (Latin 1)" so it is likely to be what your system uses if you're in Europe. If you're in North America, your DOS encoding is likely to be CP437 ("English"), and perhaps if you're in England too, I don't know. Anyway, in the case of the UK pound symbol it won't matter because it's in the same position in both encodings.

  • DDE.APP_FOCUS causes DOS to display

    I'm using DDE.APP_FOCUS to execute a .bat file and when it does it causes the DOS display of the .bat commands to appear. When I close the application the .bat started the DOS window closes to. Is there a way I can prevent the DOS window from appearing? I'm using forms 6i.

    BAT files are processed by the windows command processor - e.g CMD or COMMAND and these manifest as a DOS window.
    You can start the window minimised using DDE.APP_BEGIN to minimise the visual impact.

  • Exec opens a DOS window !!!!

    Hi,
    I'm launching in a loop an external program with the following command:
    Process p=Runtime.getRuntime().exec( S9XMLDMP + "S9xmldmp.exe -d" + '"'+RepertoireXML+'"' + " " + '"'+ChemFic+'"' );
    p.waitFor();
    that command is launched almost 3000 times consecutively and for each time, a DOS window opens and close immediately
    I want to display a jprogressbar, but for that I don't want the DOS windows to open, I want the job to be made as it was before, but without the opening /closing of the windows ? Is it possible with the runtime command ? please, how can I do ?
    thank you very much
    L.

    I don't know if this will help, but in one case I was
    using exec and noticed that if I used javaw.exe to launch
    my app (no dos window) then my subprocesses would each open a dos window, but if I used java.exe to launch
    my app they wouldn't.
    Keith Ambrose

  • Dos window in applets?

    how do u put the dos window that all the output normally appears in, into an applet?

    I suppose you could write a pop-up window that displays output from an OutputStream, and then use System.setOut to redirect System.out.println invocations to send their output to the window.
    But I'm not sure that that's even what you're asking.
    I believe that System.out goes to the java console in browsers, so if you're just looking for debug info, maybe all you have to do is turn the console on.
    Possibly the real solution to your problem is to redesign your applet so that it doesn't need to produce output like that.

  • Errors Scrolling off the dos window!!

    I am using win98 and jswdk1.0.1 the error or exception are scrolling off the screen in the dos window....(where the server is running) :(
    Is there anywhere I can specify to show the errors on webpage it self??? becoz I am able to see only a part of it and I can't understand what is going wrong. Also where to look for log files?
    Hope somebody can answer this question..
    Thank You.

    Hi
    I suppose that you don't have scrollbars in your dos window(buffer size is small) and in that case you will see only a certains number of error messages which fit onto the window.(only few last messages).You can increase the dos window size and then you can scroll to the begining of the error messages. Right click on the dos window's header, then click on properties, then change the screen buffer size's height = 2000 ( approx) and that's it.when u click ok, then it will prompt you to save these settings for current window only or save properties for future windows with same title. select the latter one. I hope this will help.

  • Jrunsvc.exe dos window

    Ok, please don't crucify me for a noob question. I had to
    reformat my box (home pc with developer edition using IIS) a couple
    weeks ago. Reloaded everything fine. Yesterday I loaded a custom
    tag (cfx_jpegresize) and the very next time I restart the pc I get
    a Dos window for jrunsvc.exe. There's nothing in the window. No
    threads, no "starting service xxxx". Nothing. It's completely
    blank. But if I close it, my CFserver stops. Manually restarting
    CFserver brings the window back. Now, the thing runs, so I guess I
    should count my blessings, but I've never had this DOS window in
    the way before and I've been using CF since somewhere around
    version 4. Can someone tell me what bit got flipped and how to undo
    it?
    OS is XP, CFserver is v7.02. Loaded Adobe's Hotfix700003
    yesterday to see if it would fix this. It didn't.

    indnajns wrote:
    > Ok, please don't crucify me for a noob question. I had
    to reformat my box
    > (home pc with developer edition using IIS) a couple
    weeks ago. Reloaded
    > everything fine. Yesterday I loaded a custom tag
    (cfx_jpegresize) and the very
    > next time I restart the pc I get a Dos window for
    jrunsvc.exe. There's nothing
    > in the window. No threads, no "starting service xxxx".
    Nothing. It's
    > completely blank. But if I close it, my CFserver stops.
    Manually restarting
    > CFserver brings the window back. Now, the thing runs, so
    I guess I should
    > count my blessings, but I've never had this DOS window
    in the way before and
    > I've been using CF since somewhere around version 4. Can
    someone tell me what
    > bit got flipped and how to undo it?
    In the Services MMC panel, is CF configured to run
    interactively? If it
    is, disable it and see if your custom tag still works.
    Jochem
    Jochem van Dieten
    Adobe Community Expert for ColdFusion

  • Tomcat dos window

    hi
    when starting tomcat on windows 98 the dos shell window has a static number of lines displayed (unlike windows 2000 that allows me to scroll back through the history).
    is there a way of making the dos window in 98 extend the number of lines , or can i direct the output to a file (perhaps with a TOMCAT option).
    thanks , paul

    On NT and 2K you can edit the properties of a dos shell window. Haven't used 98 in a while, but I'd assume you can do the same? Change the buffer and screen height if you can.
    -Derek

  • Closing DOS window

    I have a bat that looks like this everything works
    start javaw -jar Runner.jar
    but is there anyway to make the dos window close...
    i thought javaw was supposed to run without the dos window...
    or is my dos window a result of -jar
    thanks for anyhelp
    Scott

    I did some testin on my win2000 machine, and running a batfile with the line
    start C:\jdk1.3.1_01\bin\javaw.exe -jar jarfile.jar
    gives just a quick flash of a dos window before it closes again, and my java application starts. The same works for jsdk1.4.1_01. The only way I have found to not have the dos window close automatically is to remove the "start" part of the command, in which case the window stays open as long as the application runs and then terminates. So I don't really know what causes your problem.
    When you start a bat file Windows open a dos window. When to close that again is basically up to Windows, not the programs running in it. So I think it's question of telling Windows to behave, and not the javaw command as such. I seem to remember that the properties dialog for shortcuts to dos commands in winXP have a checkbox for something like "leave dos window open", but I'm not sure.
    What does your dos window look like? - Does it "hang" on the javaw command, or do you get a new prompt you can write to?

  • MS-DOS Windows

    This might be a bit of a noobie question but is there a way of executing a java application without showing the MS-DOS window - under windows obviously!
    Thanx in advance

    Hy, it's a common problem if you want to show your work to friends, teachers,etc. :)
    Here is a small program I wrote : www.javahut.componente.ro (you have here the program,doc,tutorial)
    I hope it will help you do the job!

Maybe you are looking for

  • I cannot send email from my yahoo account

    How do I correct the problem.  I can receive mail but cannot send, also cannot send text messages from my iMac  iPhone and iPad are working fine on same account.

  • Acrobat Pro XI not opening

    I am running CC Suite on a MacBook Pro ver. 10.8.5. I was updating acrobat when I got an error that the uddate did not complete. When I returned to the desktop, the icon had changed and I could no longer drop a file to acrobat. I ran Cleaner and it c

  • Why is a ripped DVD much bigger when imported to iDVD?

    HI I am quite confused and cant find any help on this. I have a DVD which I ripped to the computer. If I import the resulting mv4 files to iDVD it becomes over 10Gb and is too big to go back on a DVD. What I am trying to do is copy a DVD. Its a DVD a

  • Iphoto library/pics

    Sorry not for sure how to reference the topic that I have a question on. Here is the problem: I have pic of my pet that I love and it shows up on my origianl Pic log, my events page, in a couple of folders that I have put it in, my mobile me gallery,

  • Import tline to rt_lines/ Asterisk being created in tdformat field?

    When this SAP code executes an asterisk is being created in the tdforamt field for tlines that is changing the text'x format? Anybody know what is happening?   Thanks. import tline to rt_lines    from database stxl(tx)         client   rt_client