Skip to main content

Displaying image on ocap ri

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
2 replies [Last post]
deepa625prabhu
Offline
Joined: 2011-08-02

am trying to dispaly image on ocap ri, using HGraphic button, but no luck.

can anyone help me with a sample code for displaying image on ocap ri.

Thanks.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
csweeney
Offline
Joined: 2009-04-11

There is an xlet in the RI apps/qa directories (./apps/qa/org/cablelabs/xlet/hsampler/HSampler2.java) that may be illustrative.

sarendt
Offline
Joined: 2009-07-21

You might also have a look at HDeviceTestXlet.java -- the doPaint method draws an image.