Can I leverage Java classes from a python program
D-Man
dsh8290 at rit.edu
Fri Feb 23 16:21:42 EST 2001
You can certainly use any Java classes from Python. Go to
jythnon.sourceforge.net. Jython is the new name for JPython. It is
current with version 2.0 of CPython.
from javax.swing import JDialog , JLabel
class MyDialog( JDialog ) :
def __init__( self ) :
self.getContentPane().add( JLabel( "Hello World" ) )
self.setSize( 200 , 300 )
self.setVisible( 1 )
dialog = MyDialog()
-D
More information about the Python-list
mailing list