Core Java
-
Create Lucene Index
package com.javacodegeeks.lucene; import java.io.File; import java.io.FileReader; import java.io.IOException; import org.apache.lucene.analysis.SimpleAnalyzer; import org.apache.lucene.document.Document; import org.apache.lucene.document.Field; import org.apache.lucene.index.IndexWriter; import org.apache.lucene.store.FSDirectory; public class…
Read More » -
Did you mean feature with Apache Lucene Spell-Checker
package com.javacodegeeks.lucene.spellcheck; import java.io.File; import org.apache.lucene.search.spell.PlainTextDictionary; import org.apache.lucene.search.spell.SpellChecker; import org.apache.lucene.store.Directory; import org.apache.lucene.store.FSDirectory; public class SimpleSuggestionService { public static void main(String[]…
Read More » -
Play audio in Applet
In this example we shall show you how to play audio in an Applet. A Java applet is a special…
Read More » -
Draw Image in Applet
With this example we are going to demonstrate how to draw an image in an Applet. A Java applet is…
Read More » -
Get an applet parameter
This is an example of how to get an Applet parameter. A Java applet is a special kind of Java…
Read More » -
Applet lifecycle methods
In this example we shall show you the Applet lifecycle methods. A Java applet is a special kind of Java…
Read More » -
Bean XML deserialization
With this example we are going to demonstrate how to deserialize a java Bean using the XMLDecoder. The XMLDecoder class…
Read More » -
Bean XML serialization
This is an example of how to serialize a java Bean using the XMLEncoder. The XMLEncoder class is a complementary…
Read More » -
Bean property change event listener
In this example we shall show you how to change a Bean’s property using an event listener. We will use…
Read More » -
List bean property names
With this example we are going to demonstrate how to list the names of a bean’s properties. We are using…
Read More »