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: Adding Copy/Cut/Paste Functions
If you are trying to do some sort of a text editor using Java or any form which you would like to add the copy, cut, and paste functionality to it, just follow this simple steps:
First, include this line above your code with other imported classes:
import javax.swing.text.EditorKit;
For Menu Items:
JMenuItem cutMenu = new JMenuItem(new DefaultEditorKit.CutAction());
cutMenu.setText("Cut");
cutMenu.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_X, ActionEvent.CTRL_MASK));
JMenuItem copyMenu = new JMenuItem(new DefaultEditorKit.CopyAction());
copyMenu.setText("Copy");
copyMenu.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_C, ActionEvent.CTRL_MASK));
JMenuItem pasteMenu = new JMenuItem(new DefaultEditorKit.PasteAction());
pasteMenu.setText("Paste");
pasteMenu.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_V, ActionEvent.CTRL_MASK)); Read more...

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!