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:
- setting focus false text.
swt.read_only
text .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
Post a Comment