Coding Villa Forum
FAQs
Advertisements

Add RichTextBox widget Google Web Toolkit (GWT)

Maliha Online 8/1/2011 2:22:34 PM

Hi,


In my java application with Google Web Toolkit(GWT), my problem is that i want to allow user to format his/her text in his/her own style like we do in MS-Word, so i like to have that functionality in my application so is there any possible solution available in Google Web Toolkit(GWT)?


Thanks.

Share with Friends

Advertisements

Answer

Saad Online 8/4/2011 4:14:35 PM


In order to do formatting, Google Web Toolkit(GWT) provides a combination of two of its components. One is the RichTextArea and the second is the RichTextToolBar. Both of them allow a user to formatt the text in the way which he want to do ao you can also use it as per your requirement in your java application with GWT. The following code will help you to do this.

Code:

RichTextArea area = new RichTextArea();
area.setSize("100%", "14em");
RichTextToolbar toolbar = new RichTextToolbar(area);
toolbar.setWidth("100%");

Best Of Luck.
Share with Friends

Post reply

 

Enter This Code
Captcha
 

Subscribe

Email me when people reply


Subscribe to the