Bridges > Java Export Bridge > Drawable Java Export Examples

# Drawable Java Export Examples

A Java export object that supports graphics must be based on a custom IDL object that inherits from IDLgrWindow, IDLitWindow, or IDLitDirectWindow (as described in Exporting Drawable Objects). Additionally, your IDL object must also implement a set of listeners if you want to be able to respond to keyboard or mouse events in the graphics window. These are described in Event Handling. Examples in this section include:

- Java IDLgrWindow Based Histogram Plot Generator — provides an object based on IDLgrWindow that creates a histogram plot for a selected image file and lets you change the plot linestyle property.
- Java IDLitWindow Surface Manipulation — includes a drawable IDLitWindow example with ISURFACE functionality and a custom method lets you change the active manipulator. The main class is subclassed to pass key events to IDL. In the OnKeyboard method, Delete key events are captured and selected visualizations are deleted.