Creating JPEFrame

[Graphics:../HTMLFiles/index_66.gif]

The Java class JPEFrame is a main entry of the Java Photo Editor application. New instantce of JPEFrame is created. The default image in the resource of javaphotoeditor is painted at first.

In[22]:=

LoadJavaClass["javaphotoeditor.JPEFrame"]

In[26]:=

frame = JavaNew["javaphotoeditor.JPEFrame"]

In[27]:=

JavaShow[frame]

JPEFrame has a JPEPanel which is a subclass of JLink's class MathGraphicsJPanel.

In[28]:=

panel = frame @ getJpePanel[]

The image drawn on the panel is stored inside JPEPanel. It is accessible from Mathematica by calling getSourceImage() method.

In[29]:=

sourceImage = panel @ getSourceImage[]


Converted by Mathematica  (July 17, 2003)