473,395 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Clear Output Pane

176 100+
Is there a method I can use to delete all the text that has been outputted using the
System.out.println(""); method?
Jun 16 '08 #1
6 2613
BigDaddyLH
1,216 Expert 1GB
No in a platform-independent way. The simplest thing is to be happy with printing a few blank lines.
Jun 16 '08 #2
Kid Programmer
176 100+
No in a platform-independent way. The simplest thing is to be happy with printing a few blank lines.
Okay. Thanks amigo.
Jun 16 '08 #3
BigDaddyLH
1,216 Expert 1GB
Okay. Thanks amigo.
Yeah, keep it simple and save the fun and games for Swing...
Jun 17 '08 #4
r035198x
13,262 8TB
You could of course "clear" the visible screen by printing lots of blank lines

Expand|Select|Wrap|Line Numbers
  1. void clrscr () {
  2.          for(int i = 0; i < 100;i++) {
  3.                     System.out.println("");
  4.          }
  5. }
Jun 17 '08 #5
Kid Programmer
176 100+
You could of course "clear" the visible screen by printing lots of blank lines

Expand|Select|Wrap|Line Numbers
  1. void clrscr () {
  2.          for(int i = 0; i < 100;i++) {
  3.                     System.out.println("");
  4.          }
  5. }
Okay that could work. The user could just scroll back up but whatever.
Jun 17 '08 #6
JosAH
11,448 Expert 8TB
ps. you can also google for 'jcurses'.

kind regards,

Jos
Jun 17 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Don Leckie | last post by:
Hi, I'm upgrading our software from JDK 1.3.1_03 to JDK 1.4.2_07 and I'm having trouble with ComponentOrientation.RIGHT_TO_LEFT working correctly in a JScrollPane. One of my windows has a...
4
by: C Williams | last post by:
Hi, Is there a way to insert an image from the research pane into the document? The insert button appears to work only for text--is there a way around this? Thanks! -Casey
2
by: Peter Kirk | last post by:
Hi I am "playing" with some simple aspects of C# with Visual Studio. All I would like to know right now is how do I get the Console.Write method to write its output in the Visual Studio...
1
by: noleander | last post by:
Hi. I've got a C++ program written in Visual C++ 2003. The program is trivial, created with the Program-creation wizard: used the .NET "Form" template. The program has a trivial...
0
by: dbuchanan | last post by:
Hello, The actions pane locks up after selecting a listbox. I have tried all kinds of things and have narrowed it down to this. If I click in the listbox the action pane locks up. Neither a...
2
by: Matthias Langbein | last post by:
Hi all, is there an event raised when the task pane is changed from visible to invisible and vice versa? And how can I trigger this event? Thx, Langi
4
by: garyusenet | last post by:
Hi. I am trying to learn about array lists, and found an example on MSDN. I tried to compile it but it's not producing any output. I can't see why. Any ideas? Here is what I did. 1....
4
by: Dinsdale | last post by:
I am writing a small console application that runs fine unless I am re- directing the output to a file (i.e. c:\ app.exe >>output.txt) . I have determined that the issue is caused by the...
1
by: petersonus115 | last post by:
Hi my name is jewel.. i am having a problem with accordion pane.. I am using newest version of ajax control tool kit.. i have two text box and one button in my accordion pane... I want to execute...
0
by: =?Utf-8?B?YmFtbm9sYQ==?= | last post by:
When using Windows Live Hotmail and the "bottom" reading pane option chosen, the messages list shows up but no message, not even when I (single) click on the message. The only way to open and...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.