Can I leverage Java classes from a python program
D-Man
dsh8290 at rit.edu
Fri Feb 23 16:21:42 EST 2001
More information about the Python-list mailing list
Fri Feb 23 16:21:42 EST 2001
- Previous message (by thread): Can I leverage Java classes from a python program
- Next message (by thread): Can I leverage Java classes from a python program
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): Can I leverage Java classes from a python program
- Next message (by thread): Can I leverage Java classes from a python program
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list