Solved

Clrscr() using Java

Posted on 1999-01-11
1
2,500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

895 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now