im studying Java now and im kinda irritated cause im using Bluej and my compilker refuses to work which ill hopefully be able to fix eventually but what i would like to know is: what is the java code if there is one which i believe there is to clear the terminal window
Can you specify what you mean by "terminal window" ?
i may consider it changing that is but for the course im taking they use BLueJ
the terminal window is what displays stuff
like if i type
show up in the terminal window
Ok, now I understand : the terminal window is sometimes called "java console" too. It's where System.out and System.err print the messages, and where System.in gets its input.
Actually there is no java instruction to clean that window, as that window is not a java object at all.
If you want to visualise something in java, you have to use either Swing & AWT (JFC) or Eclipses "SWT" (standard windowing toolkit). To start with, it's easier to use Swing/AWT, e.g. use a JFrame (which is a window) put a JTextArea in a JPanel, and set that JPanel as being the contentPane of the JFrame. At that moment, you can manipulate the JTextArea, e.g. using the setText method, and that way clean the text area.
I hope this helps you.
Anyone can help me? I've been searching a rijndael algorithms code in java for many weeks. Anyone have that code. I really need it.
I use netbeans 4.1 for environmental development. It's easy and also bundled with the newest java2sdk (1.5.0_02).
But I get some problems here. When I try to compile my old java file with this sdk (I build this java file in java2sdk 1.4.0), the compiler unsuccesfully run. Any suggestion?
Maybe you had some variables in your code that were called "enum" ? As from java 5, "enum" has become a keyword, and can't be used anymore as variable name.
You should look at the output of the compiler for more information...
the method you are searching for is
And btw use either eclipse or JCreator LE, both free. Eclipse if you are heavily into java. JCreator LE if you are just learning. Mightbe you will like to check my Java blog. Link in sig.
Was enum the prob and is it solved. If you still have that problem might be you will like to post the code here for all of us to see and comment.
I think the object java.lang.Runtime will help you.
You can run command "cls" to clean dos window by method "exec" of the object.
However,I dit not tried it myself.It's not a easy job to download j2sdk and config it to develop my java source.
Anyone can help me? I want to make a exe file for java, and also the installation... Is there any tool or third party program?
I was wondering what microsoft's J# is. I have been using JCreator for a while now but I really love the way VisualStudio lays out the grunt work in making GUI's. Is there an easy way like that to make GUI's in Java?
use under windows:
and under unix:
this will tell the OS to clear the output console.