My frist Java Project

Grisu

Draghetto
Retired Moderator
Joined
Dec 20, 2001
Messages
10,531
Location
Switzerland
I'm attending a voluntary java-course where we had the task to programm an application that takes a text-file and generates another random textfile that resembles the original in style but is complete rubbish. Try it out it's quite funny, it should work with any language-textfile as it works on character basis.

if you have a java compiler installed save the Babble2.java file, then enter "javac Babble2.java" in the command line. The compiler now compiles it. Afterwards you can start the application with "java Babble2".

and bother telling me about my programming style, I know I'm chaotic ;)

edit: corrected the command to start the app.
 
It worked fine, except for the fact that it has no practical use, but who said a program needs that.:p

"java Babble2" is what'll start it though.:)

I've always disliked making graphical programs in java though, because I begun with VB and because it doesn't have the same style as the OS, but your program looks nice.
 
Originally posted by funxus
It worked fine, except for the fact that it has no practical use, but who said a program needs that.:p

"java Babble2" is what'll start it though.:)

I've always disliked making graphical programs in java though, because I begun with VB and because it doesn't have the same style as the OS, but your program looks nice.

yeah I know. I still have to find a idea for a program that actually does something useful ;)

I haven't really any experience with gui-programming, the only other guis I ever did were with the QT-Framework in C++.
 
Originally posted by KaeptnOvi
yeah I know. I still have to find a idea for a program that actually does something useful ;)

Either I don't have a good idea, or the idea I have is too hard for me. I've only made a handful useful programs (in case you want ideas...): a program to remind my dad to take a short break every few minutes (he has back pain) and lunch, a program that encrypts and decrypts files, a macro in outlook that zips important files and send them in an email (backup), a program that sets up network drives when both computers at home are running and a program that registers all logins on a bunch of computers and send them to a server database. All are in VB though, as java is quite limited when it comes to interacting with the OS.

Although they are useful, I've either lost them when formatting or nobody is using them because of some small unsolvable flaw.:p
 
There's no class file in that zip so i'm getting no class found error.
 
Originally posted by funxus
It worked fine, except for the fact that it has no practical use, but who said a program needs that.:p

"java Babble2" is what'll start it though.:)

I've always disliked making graphical programs in java though, because I begun with VB and because it doesn't have the same style as the OS, but your program looks nice.

Since Java SDK 1.4.0 (IIRC) you can set the Look&Feel property to be "like any other program in this OS" and you'll get programs that looks like any other Windows program in Windows, MAC program in MAC OS, and so on :)
 
Back
Top Bottom