Strange NullPointerException
[email protected] Fri, 27 May 2005 11:58:33 +0300
| Newsgroups | gmane.comp.embedded.carlsbad-cubes |
|---|---|
| Message-ID | <[email protected]> |
Hi, I think this is quite a serious design restriction that swixml requires client's fields to be public. This make them unnecessarily accessible from other parts of application so they can be unintentionally modified. Though this is very easy to fix. SwingEngine.mapMembers method has to be modified something like this -Field[] flds = obj.getClass().getFields(); +Field[] flds = obj.getClass().getDeclaredFields(); +AccessibleObject.setAccessible(flds, true); Thanks, Vitali. Sorry if this message appears twice. The original message was not posted somehow. >Hey Frank, > >I have solved the problem. It occured because I declared my Swing >Components >'private' and therefore the automatic initialization by the >SwixEngine did >not work. I accidentally realized this, when looking through some of >the >examples. > >I think this should be put in the documentation somewhere. > >Thanks so far. :) > >Sebastian > ><[email protected]> schrieb im Newsbeitrag >news:[email protected]... >> [email protected] wrote: >>> I cannot understand this, because the documention says, that the gui >>> components are initialized automatically. >> >> Sebastian, >> >> please post your xml code to allow any diagnosis... >> >> Frank > > > > >_______________________________________________ >Forum mailing list >[email protected] >http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com --- Автоцентр MAZDA и Музей современного изобразительного искусства приглашают посетить уникальную экспозицию "MAZDA-шедевр" http://www.mazda.by/know/news/~id=13~page=1