![[Graphics:../HTMLFiles/index_104.gif]](../HTMLFiles/index_104.gif)
JPEFrame is disposed.
In[43]:=
![frame @ dispose[]](../HTMLFiles/index_105.gif)
New JPEFrame whose panel has specified width and height is created. Note that 4 pixels on each side are added for insets used by JLink.
In[44]:=
![frame = JavaNew["javaphotoeditor.JPEFrame", 404, 304]](../HTMLFiles/index_108.gif)
JPEPanel on the frame is received.
In[45]:=
![panel = frame @ getJpePanel[]](../HTMLFiles/index_111.gif)
Panel size is shown.
In[46]:=
![panel @ getSize[] @ toString[]](../HTMLFiles/index_114.gif)
The method setMathCommand[ ] evaluates command string by making it to an expression.
In[47]:=
![panel @ setMathCommand[command]](../HTMLFiles/index_115.gif)
Panel's preferred size is adjusted and the frame is shown.
In[48]:=
![panel @ setPreferredSize[panel @ getSize[]]](../HTMLFiles/index_116.gif)
In[49]:=
![JavaShow[frame]](../HTMLFiles/index_117.gif)
Note that panel's size is changed after showing the frame.
In[50]:=
![panel @ getSize[] @ toString[]](../HTMLFiles/index_120.gif)
Panel's preferred size is set. It has no insets of 4 pixels.
In[51]:=
![panel @ getPreferredSize[] @ toString[]](../HTMLFiles/index_123.gif)
Converted by Mathematica (July 17, 2003)