jonaumann wrote:Sometimes the code parsing stops working when working with inheritence and no inherited components are shown on the child-class Panel.
jonaumann wrote:Is there a way to force swing designer to parse a class hierarchy again by deleting some files where this information is stored?
jonaumann wrote:What I mean by "deleting information" is that I saw that when that error ocurred Designer spend no time to parse any changes I made in the father-class that should be reflected in the child-class - but usually it takes a while for Designer to parse these informations, so I thought that maybe Designer stores layout-information in a cache or something that is not correctly updated.
jonaumann wrote:The steps I took were:
1. Created a new rather complex JPanel (lets call it father-class)
2. Created a new JPanel that inherits from that father class. (lets call it child class)
3. changed layout related stuff in the father-class.
4. switched to child class, Designer spend no time to reparse anything, no errors in the log, just did not display any inherited component.
jonaumann wrote:It would be hard to provide a test case, because of the nature of the problem. If I send you the code, it will work, because for your Designer it will be the first time you open this class.
Users browsing this forum: No registered users and 1 guest