From: Borislav I. <bor...@ko...> - 2004-03-31 00:05:20
|
Hi, I've added a few things jlib/swing.scm that I needed (toolbar and togglebutton). The additions simply follow the established pattern. What is the process of submitting a patch? I'm not familiar at all how those patch file are made and applied :( And a question: what would be an elegant way to define a paint procedure for a generic component. Right now, my program has only one Java class that extends Jcomponent only in order to override the painProc method (which invokes a scheme procedure). It would be nice to have something like this: (component (paint (lambda (graphics) ...do the painting))) Isn't something of the sort that (canvas) and jlib.SchemeCanvas should be doing. But I'm not sure it works. There is paintHandler method in SchemeCanvas, but it doesn't seem to be set anywhere in the generic construction processing in swing.scm. Thanks, Boris |