Posts

Showing posts with the label j2me

J2ME Selectable Table in NetBeans

Image
// ONLY WORKS FOR SELECTING ENTIRE ROWS!!! // This is a h@ck. Use at your own risk. -Tres import javax.microedition.lcdui.Canvas; import javax.microedition.lcdui.Display; import org.netbeans.microedition.lcdui.TableItem; import org.netbeans.microedition.lcdui.TableModel; import org.netbeans.microedition.lcdui.laf.ColorSchema; /** * * @author A. Tres Finocchiaro */ public class SkidletTableItem extends TableItem { protected double rowBias = -1; protected double rowCount = -1; public SkidletTableItem(Display display, String title) { super(display, title); } public SkidletTableItem(Display display, String title, TableModel model) { super(display, title, model); } public SkidletTableItem(Display display, String title, TableModel model, ColorSchema colorSchema) { super(display, title, model, colorSchema); } public void setModel(TableModel model) throws IllegalArgumentException { rowBias = -1; rowCount = -1; super.setModel(model); } public void tableModelC...

Running Java on Windows Mobile 5

Image
I'm doing development remotely for a mobile device that will run Windows Mobile 6 and use bluetooth through Java to connect to another host. Java is very generous as they offer a JavaFX framework that installs and runs on Windows Mobile 6 Professional without a hassle! (See " JavaFX Mobile 1.2 for Windows Mobile" at http://javafx.com/downloads/windows.jsp ) *Edit: 4/24/2010: Stay away from JavaFX if you need bluetooth support (or any other JSR's) on Windows Mobile! At the time of writing this, JSR support is not yet implemented! Unfortunately, the only device I have available is a Samsung i730 . This is unfortunate because JavaFX (The MIDlet standard) is only released for Windows Mobile 6. This i730 has Windows Mobile 5 installed and according to Verizon and Samsung, it IS NOT UPGRADABLE to Windows Mobile 6! So since my development resources are limited, I'd like to test the bluetooth stack of the application on a physical device (the client is not from the ...