Re: Is there JPythonApplet, JPythonPanel or something like that?

Hi Curtis,

Thank you for your reply.

I talked with Tom about this a few days ago. I browsed
the code visad.python and related. It turns out that I
may need to write my own version of JPythonEditor by
use of org.python.util.PythonInterpreter since I have
more options: 

(1) run a py file, then just like
visad.python.JPythonEditor

(2) run line by line, one option I like is Matlab type
of the output. If the line ends with semi-coma, then
print the result of the line----opposite to Matlab
actually.

(3) run line by line and ignor semi-comas.

(4) run likes in the command line. However, the
"intermdiate:" in visad.python.JPythonFrame is not
full functioning.

Xue-Feng

 --- Curtis Rueden <curtis@xxxxxxxxxxxxx> wrote: > Hi
Xue-Feng,
> 
> The bulk of the JPython editor is contained in
> visad.python.JPythonEditor, which is a descendant of
> JScrollPane.
> The intent was to allow JPythonEditor to function as
> a modular
> component for any other editor someone might want to
> construct.
> 
> Is that what you're looking for?
> 
> -Curtis
> 
> At 09:18 PM 2/4/2003, you wrote:
> >Xue-Feng:
> >
> >What capabilities are you looking for?  Do you want
> a full editor environment or just something to run
> Python code that the user enters?  
> >
> >tom
> >
> >Xue-Feng Yang wrote:
> >
> >>I would like to make a pluge-in to make something
> like
> >>JPythonFrame availabel to my own project. However,
> >>JPythonFrame extends JFrame. So JPythonFrame
> cannot be
> >>a pluge-in in a JPanel. Is there anything good for
> >>this purpose?  
>  

______________________________________________________________________ 
Post your free ad now! http://personals.yahoo.ca