WHITE PAPERS  |  PRICING  |  DOWNLOADS

 

username

password

 

 

 

 

 

 

 

 

 

 

  Swing Edition Details  

 

  > Features  

  > Key Benefits  

  > Screenshots  

  > Standards Supported  

  > Pricing  

  > Download Now

 

 

  Developer Resources  

 

  > API Documentation  

  > Developers Guide  

  > Code Examples  

  > Updated Builds  

  > Technical Articles  

 

 

 

 

 

Jump to:

General WebRenderer Functions

  WebRenderer example code base.

 

Advanced WebRenderer functions

 

 

 

 

 

  

  

 

Highlighting selected text

 

 

 

Highlighting selected text

The IBrowserCanvas method highlightSelectedText(Color) colors the background of the text selected, essentially highlighting the text. Any java.awt.Color can be passed to highlightSelectedText(Color).


IBrowserCanvas browser = BrowserFactory.spawnMozilla();

//Highlighting the selected text with the Yellow color
browser.highlightSelectedText(Color.yellow);

  top

 

 

 Sun, Sun Microsystems, and the Sun Logo are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries 

Privacy Policy  |   Disclaimer