•setMathCommand( )

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

JPEFrame is disposed.

In[43]:=

frame @ dispose[]

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]

JPEPanel on the frame is received.

In[45]:=

panel = frame @ getJpePanel[]

Panel size is shown.

In[46]:=

panel @ getSize[] @ toString[]

The method setMathCommand[ ] evaluates command string by making it to an expression.

In[47]:=

panel @ setMathCommand[command]

Panel's preferred size is adjusted and the frame is shown.

In[48]:=

panel @ setPreferredSize[panel @ getSize[]]

In[49]:=

JavaShow[frame]

Note that panel's size is changed after showing the frame.

In[50]:=

panel @ getSize[] @ toString[]

Panel's preferred size is set. It has no insets of 4 pixels.

In[51]:=

panel @ getPreferredSize[] @ toString[]


Converted by Mathematica  (July 17, 2003)