From: Geoffrey K. <ge...@kn...> - 2004-08-17 01:03:48
|
I should have been more clear what I meant: something that would take the embedded Java code, compile it, put it in the right "scm/" directory (given the package name), and add the current directory to the classpath. The thought was prompted by a posting I saw in comp.lang.scheme today: http://groups.google.com/groups?hl=en&lr=&ie=UTF -8&c2coff=1&selm=411bde55%241%40news.tulsaconnect.com The author notes that in a small amount of Perl you can extract text between BEGIN and END: while(<>) { print if (/BEGIN/ .. /END/); } Geoffrey -- Geoffrey S. Knauth | http://knauth.org/gsk On Aug 16, 2004, at 19:22, Geoffrey Knauth wrote: > Sounds great Ken. I wonder if this bit could be automated: > > --- scm/MouseInputAdapter.java --- > package scm; > public class MouseInputAdapter extends > javax.swing.event.MouseInputAdapter { > } > --- > > Geoffrey > -- > Geoffrey S. Knauth | http://knauth.org/gsk > > On Aug 16, 2004, at 17:27, Ken Anderson wrote: > >> There are several concerns you must deal with when developing a Java >> GUI: >> - layout - where components go. >> - action - what happens when you click on something. >> - model - what happens to the underlying data "model" when an action >> happens. >> - update - what happens to the gui when an action happens. >> - enable - which actions are currently enabled. >> >> I've enclosed a slice of code that i'm using in an application tries >> to separate these concerns: >> - layout is delarative, like XUL http://luxor-xul.sourceforge.net/ it >> could be in xml. >> Layout show relative position of components and associates a named >> action and enabling state with each component. Any action occurs in >> its own thread. >> - model - the model is a simple prototype object which includes named >> components of the GUI. >> - update - Any update occurs in an invokeLater >> >> One way this differs from the Mode-View-Controller pattern is that >> i'm using a single update procedure. So i need to think about that >> more ... >> k >> >> [The attachment swing-action.scm has been manually removed] >> > > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > Jscheme-user mailing list > Jsc...@li... > https://lists.sourceforge.net/lists/listinfo/jscheme-user > |