• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2529
  • Last Modified:

Clrscr() using Java

Anybody guide me how to clear screen using Java?? like clrscr() of C/Pascal. I use Java 2 on Windows 95.
0
hvhemant
Asked:
hvhemant
1 Solution
 
heyhey_Commented:
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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

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

Tackle projects and never again get stuck behind a technical roadblock.
Join Now