Is There a Way to Clear the Screen ???

I am building a Class that is text (command line) based. Is there anyway to clear the screen (output) in such a class.
Similar to what CLS does in DOS...

See my response here:
http://forum.java.sun.com/thread.jsp?forum=31&thread=317191

Similar Messages

  • Is there a way to clear the shell

    hi there,
    i am programming a game. since now i want to output the gameloop data with a shell.
    is there some way of clearing the shell?
    i would like to clear the shell and then output the data onto an emty shell?
    thx

    Why not just create another JFrame and add a JTextArea to that and then output all your game data there instead.
    Otherwise you'll need to possible send an escape code of some kind to the shell (depending on what terminal it is emulating) or simply output 25 (or more) empty lines.

  • Is there a way to keep the screen from lighting up every time an email comes in, but still be able to see the email on the lock screen when you press the home button?

    Is there a way to keep the screen from lighting up everytime an email comes in, but still be able to see the email on the lock screen when you press the home button?  This is killing my battery, but also is kinda the whole point of the notification center in my mind.

    This is something I've been wondering. I am a bit like you, I like being able to have a glance at emails or Facebook updates without having to log in, and I think it would be great to be able to turn off the notification switching the screen on, especially for emails as I do get a lot, and Facebook, but I somehow doubt it is possible.
    I am currently monitoring how much this eats up my battery charge. On a normal day, after an overnight charge, I would probably still have 30%-40% left when I leave work in the evening. Today, I was down to 48% by lunchtime, where I've usually got a good 60-70% left... Might have to turn email notifications off on lock screen until it's possible to have them appearing in the list without flashing me...

  • Is there a way to clear the cache on iPhone 4?

    Is there a way to clear the cache on iPhone 4?  Seems to be a bit slow checking for e-mail, etc., lately.

    Thank you for the info!!!!  I did go in and delete cookies and history, the only 2 options available.  Whether it helps or not, still a good thing to do once in a while, I would imagine.  Thanks so much!!!

  • Is there a way to get the screen saver on user "a" to use iphoto pictures from user "b"?

    Is there a way to have the iphoto screen saver use the photos from a different iphoto user?  My husband leaves his account open and he has only old photos when the screen saver kicks in.   I would like to have my photos be able to pop up on his screen saver.  I need to find them in the system preferences screen saver place, but have it access my iphotos and not only his.  How?  Also, I would like a better system on organizing my photos.. I have them all in events by year and it is difficult of often find favorite specfic photos.  Thank you. Melody

    In short, no. The whole point of different accounts is to keep your data separate from his, and your photos are your data.
    You could share a library? It can be a bit complex.
    You can use Fast-User switching to switch over to your account - takes a couple of seconds
    As to organising your Photos - iPhoto is a database and offers pretty much unlimited options for organising your pics, but it takes a bit of work to go beyond the basic and automatic.
    If you take the time to assign Places then you cn see all the photos in your Library based on where they were taken. (Of course, that's of limited use if they're all taken in your backyard ) Faces means you can sort the Library based on who's in the Photos.
    Beyond that, simple thigns like naming the Events will help - Xmas 11, Bobby's Wedding, Rome 2009 and so on. You can then search on those basic words in the search box.
    After that: Keywording. The following is a canned answer I use to describe my system. It may spark some ideas for you.
    I use Events simply as big buckets of Photos: Spring 08, July - Nov 06 are typical Events in my Library. I use keywords and Smart Albums extensively. I title the pics broadly.
    I keyword on a
    Who
    What
    Where basis (The When is in the photos's Exif metadata). I also rate the pics on a 1 - 5 star basis.
    Using this system I can find pretty much find any pic in my 40k library in a couple of seconds.
    So, for example, I have a batch of pics titled 'Seattle 08' and a  typical keywording might include: John, Anne, Landscape, mountain, trees, snow. With a rating included it's so very easy to find the best pics we took at Mount Rainier.
    File -> New Smart Album
    set it to 'All"
    title contains Seattle
    keyword is mountain
    keyword is snow
    rating is 5 stars
    Or, want a chronological album of John from birth to today?
    New Smart Album
    Keyword is John
    Set the View options to Sort By Date Ascending
    Want only the best pics?
    add Rating is greater than 4 stars
    The best thing about this system is that it's dynamic. If I add 50 more pics of John  to the Library tomorrow, as I keyword and rate them they are added to the Smart Album.
    In the end, organisation is about finding the pics. The point is to make locating that pic or batch of pics findable fast. This system works for me.

  • Is there any way to change the screen resolution in Front Row?

    Hi all,
    I've got a Mac Mini plugged in to my TV, and I want to be able to change the screen resolution depending on the content I'm watching (as some content is in 4:3 aspect ratio, some is in 16:9, and I'd prefer to have the picture filling the screen completely). Unfortunately, the TV doesn't have a "stretch" mode for making an 4:3 picture fit a 16:9 aspect ratio. If I know what I want to watch in advance, I can set the resolution accordingly using system prefs on the mac, but if I'm just sitting back choosing what to watch with the Apple Remote, it's annoying to have to leave front row, walk over to the computer and change resolution once I've decided what to watch, open system prefs, change resolution, re-launch Front Row and find what I wanted to watch again.
    So I was wondering if anyone had figured a way to allow the screen resolution to be switched from within the FrontRow UI. I've seen that people have written python based plug-ins such as PyeTV and Understudy that allow different types of content to be added to FrontRow, but I've not found any utility plug-ins such as what I'm looking for on the net (nor could I find SDK documentation on this API in the stuff that comes with XCode).
    I guess the other approach might be quick keys: has anyone had any success hooking up quick keys macros alongside front row in response to apple remote events? (seems too few events to be able to choose from, but I've never tried it, so I won't assume!) Or how about is there a way to trigger an AppleScript from within Front Row? And, of course, I'm very open to any other ideas you might have!
    Thanks very much in advance for any ideas on this.
    Andy
    Message was edited by: Andy__D

    Safe Boot from the HD, (holding Shift key down at bootup), set a good rez there.

  • Is there a way to access the screen (headless operation) of a machine being used as a Mac OS X (ML) Server?

    I'm using ML OS X Server and so far have enabled only FIle Sharing. Is there a way to share a screen with the Mac Mini (server host) while in Server operation? What section(s) need to be enabled to do this? I can access the Server remotely using the Server app, but as yet have not configured the web app to manage the server. Even if I do, this will not allow me to run an app as I could while at the server machine's screen, keyboard and mouse. My goal to operate this machine almost full time headlessly.
    Thanks!!
    Henry

    Eric. wrote:
    You can use screen sharing even if the Mac is headless; it's been that way for awhile now. You probably have to go back to the G3s to find Macs couldn't run headless or that you'd have to trick. I used my old G4 MDD headless this weekend; I used screen sharing and remote desktop from a 2011 Mini and 2011 MBP. I sometimes to do it with my mini Server, when I use the 23" LCD with my MBP, leaving the Server headless.
    Hmm... I noticed this as a problem when I had the Mini's combo video (VGA) output adapter plugged in to its VGA screen.
    When the monitor power was lost (due to it's plug being on an unprotected plug and the power being out) AND while display still connected without a working power source, lost the remote display, too. In that case, the Screen Sharing wouldn't work from a remote computer on the local network. Did not try unplugging the connection completely (suppose that rebooting might be necessary to see the headless mode?). Mention it here because you might also want to be aware of that situation for the future...
    Moving the plug-in to protected power for the monitor (even if off) did cure the problem and easier for me too. Checked with screen share (vnc:// connection seems to behave the same). We're probably doing the same thing, or pretty close to it. Seems I just have to completely detach the screen connection to effectively use the "headless' mode, which I didn't do. Note the specs of my Mini as below to compare with yours (it's not a new version 'server' model).

  • Is there a way to clear the list of "synched items" from phone?

    Please read the list of things I've done so far before responding with basic stuff.
    My iphone 4 was just updated with the latest firmware, 7.1.1. Full backup was done prior to upgrade. Subsequently, everything was wiped from the phone. Restore brought back a limited amount of apps and all pictures, but no music and no video. The Restore process displayed each file that should have been restored, but when completed, no music or videos were. restored. I tried again to restore with the same results. Tried syncing a few time and nothing was transferred.
    Frustrated as ****, I added a song to be synced. That song and only that song was synced. Short of deselecting and reselecting everything that I want on the phone, is there a way to tell the phone that nothing has been synced and to resync everything without verifying if it exists on the phone?

    You will find that by pressing the option key when you are in the File menu, that Duplicate changes to Save As… .

  • Is there a way to clear the content stored in dbms_error_code

    Hi everybody,
    Here is my situation. I'm doing an application in forms 6.i. There's an ON-ERROR trigger defined at form level which calls a procedure programmed to treat errors. Inside this procedure I issue a message like "record is being used by another user" when I get the -54 dbms_error_code.
    So far, so good. The problem is when I test the lock. I do a select for update nowait to lock a record (at sql*plus) and then I try to update this record (in forms). The exception is raised just fine. But when I returned to sql*plus and issue a rollback to end the transaction and go to forms and try to continue with the operation, I succeed, the record is recorded in the database but i get the error message "record is being used by another user". This happens always in the commit line of my code and I know that it passes through ON-ERROR and issue the message.
    I know that it's because of the last error that ocurred (-54 lock). So i was wondering if there is a way of clearing this last error. Please, anyone can help me?
    Thanks anyway.

    The On-error trigger gets raised for lots of different reasons. Only a few of these are caused by database errors, and ONLY THEN should you check dbms_error_code.
    <p>When you get any other errors, ones caused by doing something wrong within the form processing, On-Error runs, but dbms_error_code is not changed. So you should not check it.
    <p>EVERY time on-error runs, you should check Error_Code, and only with certain values should you check DBMS_Error_Text. Here is an on-error trigger I use:
    <p>Re: FRM-40735:Pre_Insert trigger raised unhandled exception ORA-20011

  • Is there a way to stop the screen from updating till the code is executed?

    My extension needs to export all the layers to PNGs and it creates a lot of moving around in the screen while the operation is complete (eg: switching between layers, cropping the images, etc). I've set the Playback mode to Accelerated as well.
    Is there a way to not update Photoshop UI during the process? (I have seen similar functionality in Microsoft Excel/VBA scripting)

    As a shameless hack: put a layer on top, fill it with the color you like the most and that will prevent the document from revealing what's going on below.
    It's a bit like hiding the dust under the carpet, there might be cases when you need to turn it off (e.g. merge on top) but for basic stuff it does the job.
    Besides that, there's a undocumented "viewless document" or something like that, but you can do very limited processing - XBytor wrote something on ps-scripts.com years ago.
    Best
    Davide Barranca
    www.davidebarranca.com
    www.cs-extensions.com

  • Is there a way to clear the app stores "Not on this iphone" list of previously downloaded apps?

    with the new update there is a way to download all your old apps. however my list is immensly long, and i am looking for a way to clear or reset the list.
    the list im referring to is on my iphone 4, in the app store, under the tab "Updates" and "Not on this Iphone" alot of these apps are old or i have no interest ever downloading again and would prefer to not have them showing

    There are many threads that have recently been posted addressing this matter. Currently iTunes and iOS displays all Apps ever downloaded  and you can't control which ones you would like to delete from that list permanently and which you would like to keep in the Cloud, so to speak.

  • HT2480 Is there a way to clear the calendar invitations from the iPhone invite inbox when the Meeting is accepted by a delegate?

    I am running an Exchange / Outlook 2010 environment with many mobile users accessing email and calendars with iPhones.  Senior Executives have delegated their Calendars to Executive Assistants, who manage them mostly from Outlook.  When Meeting requests arrive for the executives, their assistants Accept, Decline or mark as Tentative as the calendar allows.
    The executives have only their mail account on their iPhone.  The assistants have both their account and the executive's Exchange ActiveSync account on their phones.  When the request is handled and a Send Response Now is submitted, the calendar invitation does not get cleared from the Senior Executive's Calendar invitation inbox, or the Calendar invitation inbox on their assistant's phone (which is to say, the Senior Executive's Calendar, which is a secondary calendar at this point) but it does show up properly on their Calendar.  It seems the cache doesn't know that the request has been handled and does not clear the flag.
    Other than turning off the Calendar, deleting the ActiveSync data and downloading fresh data, is there a way to correct this?  I have tried multiple switches and settings, notifications, etc.  I have even dabbled in Outlook's Rules, since this is where the delegation occurs.  Once a Meeting is accepted, how can it be cleared in the inbox?  This is not a badge, as I've turned off badges.
    It affects not only the iPhone 4 and 5, but also iPads and iPad Minis running iOS 6.0.1 or better.

    I have similar issue.  Sharing calendars in the house hold and when I did it lit up my calendars inbox with 21 messages and no way to clear them. Hope this is fixed in the next iOS release.

  • Is There a Way to Leave the Screen on When Connected to USB?

    I assume even if the screen is on it continues to charge so it seems unnecessary to let it time out and have to enter the password again and again.  So, is there as way to set it to stay unlocked (screen on) when it's on USB, but time out and lock when on battery only?

    No, there is not setting to differentiate when charging and when on battery.

  • Is there any way to clear the Update badge from Settings?

    I don't want to update to IOS 5.1. I prefer to keep running 5.0.1 which is runing fine and fast for me. Seems like when I update too much, my i devices end up slowing down to a point where they frustrate me. Best to leave them the way they were when I got them. I'll get 5.1 when I get a new iPad and/or a new iPhone.
    But I'm not fond of staring at this red badge on settings for the next several months. Seems like there should be a way to clear it without having to obey it.

    GeneTucc wrote:
    I don't want to update to IOS 5.1. I prefer to keep running 5.0.1 which is runing fine and fast for me. Seems like when I update too much, my i devices end up slowing down to a point where they frustrate me. Best to leave them the way they were when I got them. I'll get 5.1 when I get a new iPad and/or a new iPhone.
    But I'm not fond of staring at this red badge on settings for the next several months. Seems like there should be a way to clear it without having to obey it.
    You MUST OBEY!! Repeat YOU MUST OBEY, YOU MUST OBEY!

  • Is there a way to keep the screen from turning off

    I would like a way to keep my screen from going to sleep while browsing. Sometimes I am still reading the current screen when it dims out. The browser I am hoping to replace with Firefox has this option. Is there a way (option or addon) to do this?

    Not possible from within Firefox. You can check to see if your device has a 'Never' option for screen timeout under 'Display' settings in Android settings. I suspect not available though as that would be a hindrance towards battery lifetime.

Maybe you are looking for

  • Dates in Events do not update automatically

    After iPhoto made events out of my photo library during conversion from from iPhoto06, there are often photos from several days in one "event". I can live with that most of the time, but in several instances I split events. Unfortunately, the dates o

  • Playing wmv files in Quicktime Pro

    I really want to play wmv files in quicktime. I read that quicktime pro should be able to do so. I have quicktime pro but nether Quicktime Player X or Quicktime 7 Pro can open it, and I know the file isn't corrupted cause it plays on a windows comput

  • Format gets lost when I copy

    Hi I try to format some text within pages and copy it to another program where it is much more complicate. Does anybody know why I loose the formats  -  as if I would copy / paste out of a simple editer

  • Cron job "best way"

    Hello, Which is the best way to create a cron job for a sql script? Thank you!

  • How to make the color of one picture to be the same as another one

    I want to change the orange color of this button: to the dark blue(at the top) of this logo, How could I do this? I am not that familiar with photoshop, please show me the detailed steps if it is possible, thanks