Thursday, June 30, 2011

Using SimpleListField in BlackBerry Java Application

I write a simple program that using SimpleListField, extended from ListField

Please find the source code free, download here

Thursday, June 23, 2011

A Sample Write/Read UPC format Barcode at J2SE

This is a sample write and read UPC format Barcode
using j2se platform



Download sample code here

Example of using Accordion UI in BlackBerry Java Application

This example show how to create Accordion UI in BlackBerry Java Application


Download sample source code here
Also download OrionUI package

Main classes

AccordionPanel
Accordion


Example of usage:

public final class MyScreen extends MainScreen
{
    AccordionPanel _accPanel = new AccordionPanel();
   
    public MyScreen()
    {       
       setTitle("Accordion Demo");
       
        VerticalFieldManager content1 = new VerticalFieldManager();
        content1.add(new LabelField("Content 1", FOCUSABLE));
        content1.add(new LabelField("Content 1", FOCUSABLE));
        content1.add(new LabelField("Content 1", FOCUSABLE));

        VerticalFieldManager content2 = new VerticalFieldManager();
        content2.add(new LabelField("Content 2" ,FOCUSABLE));
        content2.add(new LabelField("Content 2" ,FOCUSABLE));
        content2.add(new LabelField("Content 2" ,FOCUSABLE));

        Accordion acc1 = new Accordion("Title 1", content1);
        Accordion acc2 = new Accordion("Title 2", content2);
       
        _accPanel.add(acc1);
        _accPanel.add(acc2);
               
        add(_accPanel);
    }
}



What is OrionUI ?

OrionUI is class packages for UI Component for BlackBerry such as Accordion, Tooltip, TabControl, etc.