Lady Java Music Video by JavaZone
This was the video teaser for the recently concluded JavaZone 2010. The video features Jenny Skavlan as Lady Java singing to the tune of Lady Gaga’s Bad Romance. If you’re a programmer, you can relate to what the lyrics says.
J2ME Programming: Reading and Writing to a RecordStore (RMS)
If you are working on a mobile application project with J2ME (Java Micro Edition) and needs some sort of a data storage, you can work it with Record Management System (RMS). RMS is an API for MIDP applications which allows data persistence, facilitating data storage for your Java-based mobile phone applications. You just need to access it via javax.microedition.rms.* class. It’s like the relational database but a simpler one. If you want to learn more in-depth with RMS, please visit Databases and MIDP.
Two common methods or functions for RMS is the reading and writing to a recordstore (javax.microedition.rms.RecordStore). A RecordStore serves as the database. Read more…
Java Mobile Programming: J2ME Using RecordStore (RMS)
Here’s a quick code demo on how to use J2ME’s RecordStore feature under the record management store (RMS). With RMS, you can add, delete, and update/edit data via the MIDlet interface. This sample code was created during my 3rd year CS elective class (CS Elect 1 – Mobile Application Development) in ADZU. It is a simple phone address book with the following functions:
- Adding of new entries to your phonebook
- Updating / Editing of entries in your phonebook
- Deleting of entries from your phonebook
- Sending querries to your phonebook (sorting and filtering)
Click here to download the source code.
Java Mobile Programming (J2ME): Menu, List and Alert
Here’s a short sample application implementing List, Menu, and Alert items using J2ME Mobile Application programming. I use Netbeans with Java Wireless Toolkit (comes with mobile phone emulators) in developing J2ME-based applications. And if you want to install this on your Java-enabled phones, you can do so by copying the JAR file to your phone and run it.
Below is the screenshot and the source code:

Click here to download/view source code for this demo.
Connecting Java Applications to MySQL Database
So you’re creating a Java application and want it to work and get connected to a MySQL database. Here’s a quick tutorial on how to get your Java App working with MySQL database.
First, you need to identify your MySQL connection properties like your host address, username, password and database name (assuming that you have your MySQL already up and running.) Also, make sure that you have your Java MySQL Connector installed in your Java JDK library path. You can download Java MySQL Connector here, if you do not have one.
Now, having those information, you need to initiate a new instance of the Java MySQL Connector using these lines:
Class.forName(“com.mysql.jdbc.Driver”).newInstance();
conn = DriverManager.getConnection (ConnectionURL, dbUsername, dbPassword);
You can replace the parameters for the connection for example:
String ConnectionURL = “jdbc:mysql://hostAddress/dbName”;
… where hosAddress is your MySQL host address and dbName for your database name. For example, if you have your MySQL running under localhost (or IP Address if you have it somewhere else) and you want to connect to accounts database, you can connect with this:
String ConnectionURL = “jdbc:mysql://localhost/account”;

Hi! I am Jerome Locson from Zamboanga City, Philippines. I am programmer, web developer and designer, technopreneur, and blogger. I blog about technology, foods and my travel. Thank you for visiting!