Solved

Clrscr() using Java

Posted on 1999-01-11
1
2,509 Views
Last Modified: 2011-04-14
Anybody guide me how to clear screen using Java?? like clrscr() of C/Pascal. I use Java 2 on Windows 95.
0
Comment
Question by:hvhemant
1 Comment
 
LVL 16

Accepted Solution

by:
heyhey_ earned 10 total points
ID: 1230836
if you use
- command line aplication - you can't clear the screen - you have only standard input and standard output - there is no concept of 'text screen'
- GUI application without AWT components - clearing screen is all to yourself, because probably all the drawing is in your paint methods. you can paint some pictures, or paint solid backgroud (clear screen)
- GUI application with AWT components - you'll have to hide all of them (using setVisible(false) or CardLayout)

if you post your code, we'll be able to fix the problem for you.

regards
   heyhey
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how to add new optional parameter to JSP 1 49
expectj telnet failing 5 45
jboss wildfly 10.1 10 233
Notify sent to other threads in Java 9 33
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question