File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Jython/Python and the fly likes Any suggestions on good jython online tutorials? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Jython/Python
Bookmark "Any suggestions on good jython online tutorials?" Watch "Any suggestions on good jython online tutorials?" New topic

Any suggestions on good jython online tutorials?

Marcos Maia
Ranch Hand

Joined: Jan 06, 2001
Posts: 977

I'd like to know jython better and I'd like suggestions on good on line resources and tutorials on it. Any suggestions?

tx in advance.
Zenikko Sugiarto
Ranch Hand

Joined: Jan 09, 2005
Posts: 58
Couldn't find one.

I'm writing a swing application using Jython on eclipse, took me about 20 minute to get used to it. It's very easy.

I'll probably write one once I am finished with my apps - it's an application to process my online banking statements. I'm sick of having to copy paste the csv files into excel every month. But it's pretty much

1. get eclipse + pydev
2. configure pydev, add jython path etc
3. in your jython code:

After that, you can just do...

and the good ol java suggestion pops up. You don't get all the nice feature of the java editor like ctrl+shift+o (manage imports). Also due to its weak typing nature, ctrl+space on a class doesn't automatically give you a list of your private attributes.

My advice is, get used to it. It's PyDev, not JavaDev.

So in 15-20 minutes, downloading Jython, googling around, mucking around, etc I ended up with a very simple Jython-Swing skeleton code like this:

Not my most elegant code, but hey it's a start, and I do plan to refine it over time.
[ September 03, 2008: Message edited by: Zenikko Sugiarto ]
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11777


Please check your private messages for an important administrative matter.

Thanks, Andrew

The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
I agree. Here's the link:
subject: Any suggestions on good jython online tutorials?
It's not a secret anymore!