Hiding cursor in Text component in Eclipse RCP application -


in eclipse rcp application there few buttons & few input boxes & below text component. problem press 1 of buttons cursor starts blinking in below test component. can please let me know how solve this.

i tried:

  1. setting focus false text.
  2. swt.read_only text .
  3. code:

    cursor cursor = new cursor(parent.getdisplay(), swt.cursor_no); protocolfilterdescription.setcursor(cursor); 

nothing seems rid of unnecessary cursor.

protocolfilterdescription = new text(parent, swt.none | swt.read_only  ); formdata protocolfilterdescriptionldata = new formdata(); protocolfilterdescriptionldata.left = new formattachment(0, 1000, 650); protocolfilterdescriptionldata.top = new formattachment(0, 1000, 290); protocolfilterdescriptionldata.width = 450; protocolfilterdescriptionldata.height = 12; protocolfilterdescription.setlayoutdata(protocolfilterdescriptionldata); protocolfilterdescription.setforeground(new color(parent.getdisplay(),   204, 153, 0)); protocolfilterdescription.setbackground(display.getcurrent()   .getsystemcolor(swt.color_widget_background)); protocolfilterdescription.setfont(new font(parent.getdisplay(),"verdana",   6, 1)); protocolfilterdescription   .settext("captured"); 

you have set focus of other swt component true remove focus text component.

you'll have in actionlistener.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -