Today I came across an interesting idea for a Java project : Shorthand (speedwriting) applications.
It's a relatively simple concept, but it's an interesting idea from a programming perspective as it will test your string manipulation expertise and give you good exercise in arrays! Also, I bet not a lot of kids are going to be doing something like this, and it's really quite fun to test out the program on various shorthand and speedwriting concepts.
So, how does shorthand work ? It's basically a way of writing down words quickly while taking notes and is mostly used by secretaries, typists, writers and journalists. There are many shorthand and speedwriting systems, but almost all of them have the same common principles. Of course, the following section won't be hard for MXIT freaks to understand!
Shrthnd sa wy f rtng smtng na shrtr wy tht s fstr ltho nt qte s isy t ndrstnd.
Shorthand is a way of writing something in a shorter way that is faster although not quite as easy to understand.
Phew! So where's the programming exercise then ? Well, why don't you write a simple program that will identify common words in a text file and shorten them, thereby creating a list of shorthand words someone can study so that they can write faster. Then write a counter-program that will extract words from a text file and expand them back to their proper form, highlighting words it did not understand as it goes along.
This project can easily make use of a database for storing and retrieving words (shortened and expanded) and could very well be sold to a few clients as well!
Try searching the Net for shorthand and speedwriting to get more ideas on how these methods work. This is also a very nice idea for a research project as it's sure to draw the attention of your teacher as being a unique effort!
Tuesday, July 15, 2008
Wednesday, May 21, 2008
More Java Answers
Looking for Java answers ? In a hurry to get help with some obscure API feature ? Why not visit http://www.javaworld.com and learn from the experts.
Sunday, April 27, 2008
Make a beep!
Hi.
A reader asked how to get his program to make a BEEP whenever a user clicks a button. The simplest way of doing this is to import the java.awt.Toolkit library and then add the following code to your application :
Toolkit beeper = Toolkit.getDefaultToolkit();
beeper.beep();
Until next time.
A reader asked how to get his program to make a BEEP whenever a user clicks a button. The simplest way of doing this is to import the java.awt.Toolkit library and then add the following code to your application :
Toolkit beeper = Toolkit.getDefaultToolkit();
beeper.beep();
Until next time.
Saturday, April 26, 2008
Center a JFrame or JDialog on a parent window or the desktop.
I often get asked how to center a JFrame or JDialog on the desktop or another frame. It's really a quite simple operation. All you need is the following command :
theFrame.setLocationRelativeTo(null);
This command will set the frame object as CENTERED on the main desktop of the current operating system. If you replace the null with the name of another object, like a parent frame in a JDialog window you can center the JDialog on a JFrame.
Easy!
theFrame.setLocationRelativeTo(null);
This command will set the frame object as CENTERED on the main desktop of the current operating system. If you replace the null with the name of another object, like a parent frame in a JDialog window you can center the JDialog on a JFrame.
Easy!
Friday, April 25, 2008
Welcome
Welcome to the Java for Kids blog!
This blog is dedicated to providing practical examples, source code and explanations for students studying the Java programming language.
Use our resources to help you do your homework, school work or projects and assignments. The blog content is aimed at grade 10 to 12 students and is based on the local school curriculum. If you are looking for Afrikaans resources, consider visiting our Afrikaans-orientated website at JavaK.
Download our free Java and SQL tutorial from http://www.nofuss.co.za/downloads/sqltutorial.pdf if you are a beginner SQL programmer.
This blog is dedicated to providing practical examples, source code and explanations for students studying the Java programming language.
Use our resources to help you do your homework, school work or projects and assignments. The blog content is aimed at grade 10 to 12 students and is based on the local school curriculum. If you are looking for Afrikaans resources, consider visiting our Afrikaans-orientated website at JavaK.
Download our free Java and SQL tutorial from http://www.nofuss.co.za/downloads/sqltutorial.pdf if you are a beginner SQL programmer.
Subscribe to:
Posts (Atom)