Re: JPanel used for graphics
| Newsgroups | gmane.comp.embedded.carlsbad-cubes |
|---|---|
| Organization | http://freemail.web.de/ |
| Message-ID | <[email protected]> |
List for Users of Carlsbad Cubes' Technologies and Products schrieb am 27.03.04 18:16:58: > > It appears that the way to do this is to register a new tag for this > subclass of JPanel that I've defined. Is this the correct approach? At least this seems the most reasonable thing to me. Easy, documented and IMHO well used. > > This got me to thinking about other approaches. The Swix engine could check > to see if a variable to which a tag is bound already has a non-null value. > If it's null, then it should create a new instance as it does now. If it's > non-null and it's an instance of the appropriate type, then the xml > attributes should be applied to the existing value. I'm not sure whether > it's an easy solution to any other problems, but it would be a simple > solution to my subclassing problem. Could you please explain this with some (pseudo) code? I do not grab it... Frank