View this PageEdit this PageUploads to this PageHistory of this PageHomeRecent ChangesSearchHelp Guide

cs6452 Swiki

Prototyping Interactive Systems

(Class page)
Uploaded Image: prototyping.jpg
Fig 1: An ambitious class project



Who's who

Please add yourself to the table!

Tutorials

Students from last year began compiling these–please feel free to add content.

Selected Content from Previous Semesters

Article: Java and Python: a perfect couple
Compiling Jython files into executable Java files
IM GUI's
Example of doing Drag-and-drop from Jython
File I/O from Jython – useful for the P2P project
Got Timing Errors in the IM project? (Like REGISTER never "taking" with the server?)
Using Google Maps

Jython List Gotcha

There's a bug we ran into last semester that appears to still be around in the latest versions of Jython, unfortunately. This problem only shows up on certain machines. The problem shows up as an error message about Vector conversions when you're trying to assign a Jython list to a JList's listData. The fix is simple, if cumbersome. Basically, replace code that looks like this:

list.listData = ["Sunday", "Monday", ...]

with code that looks like this:

import java.util as util
list.listData = util.Vector(util.Arrays.asList(["Sunday", "Monday", ...]))

You only need to do the import once. If you don't see the problem, you can just do the simple listData assignment, and not worry about the more complex version.

Andy: I met this bug in my laptop when I tried swing-sampler.py.
It's fixed by following the suggestion.

What is the best IDE for Jython?


Emacs. The only problem with python-mode (http://sourceforge.net/projects/python-mode/) is that there's a negative interaction with semantic (http://sourceforge.net/tracker/index.php?func=detail&aid=1215039&group_id=86916&atid=581349). I had semantic as part of JDEE,but since I now do Java with Eclipse (and everything else in Emacs!), I just took all the JDEE stuff out of my .emacs file, including semantic (or cedet).

Can you share how you set up your devel environment?
  • I think this is the best: http://pydev.sourceforge.net/
    • I agree. I just disabled my JyDT.
    • I agree, too. JyDT was not that mature yet.

UI Software Teams Page