how to setfont in DetailText of SWT.Mobile.ListBox ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yatinindianic
    New Member
    • Dec 2009
    • 3

    how to setfont in DetailText of SWT.Mobile.ListBox ?

    hi

    my code is below , i have try the code but is not change my font,


    listBox = new ListBox(current Shell, SWT.SINGLE | SWT.V_SCROLL,
    ListBox.LB_STYL E_NO_HEADING_TE XT | ListBox.LB_MOD_ SHOW_DETAIL_ICO NS);
    listBox.setSize (800,800);
    Font initialFont = listBox.getFont ();
    FontData[] fontData = initialFont.get FontData();
    for (int i = 0; i < fontData.length ; i++) {
    fontData[i].setHeight(30);
    }
    font23 =new Font(currentShe ll.getDisplay() ,fontData);
    //Font newFont = new Font(display, fontData);


    // font23 = new Font(currentShe ll.getDisplay() , "sansserif" , 35, SWT.ITALIC);
    listBox.setFont (font23);

    listBox.setData Model(chapters) ;
    listBox.refresh List();
Working...