?
Solved

Clrscr() using Java

Posted on 1999-01-11
1
Medium Priority
?
2,521 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 16

Accepted Solution

by:
heyhey_ earned 20 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This video teaches viewers about errors in exception handling.
Suggested Courses
Course of the Month13 days, 23 hours left to enroll

800 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