Solved

Clrscr() using Java

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

705 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

15 Experts available now in Live!

Get 1:1 Help Now