| Summary: | Live image creation internal error | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Larry Mello <nicc0lo1966> | ||||
| Component: | WindowBuilder | Assignee: | Alexander Mitin <Alexander.Mitin> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | clayberg | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Larry Mello
Created attachment 207942 [details]
This report contains log files, Java files, etc.
I cut the code from another class that successfully showed the nested class. I pasted into another class on the Source tab. When I clicked the Design tab for the class, the nested class showed up fine. So it appears that the problem is with using the palette to place a nested class. If you enter a nested class on the Source tab then click the Design tab, it seems to work fine. I also downgraded this problem's importance to "normal". In general, WB does not support components that are nested/inner classes within other classes. All custom components should be represented as top-level Java classes. All custom Swing components should follow normal JavaBean conventions and be public, top-level classes. (In reply to comment #3) > In general, WB does not support components that are nested/inner classes within > other classes. All custom components should be represented as top-level Java > classes. All custom Swing components should follow normal JavaBean conventions > and be public, top-level classes. If I mis-spoke, I'm sorry - let me clarify. When I use the term "nested", all I am talking about it a "uses" type of relationship. Example: class A and class B are both top-level custom classes that are both descendants of JPanel. Class A has no widgets. Class B has a button. Neither class A nor B has inner classes. The desire is to visually drop class B onto class A so that the developer will see a button on the Design tab when in WB for class A. I can do this by modifying the source for class A (on the Source tab for class A by including code that instantiates class B) then clicking the Design tab. However, if I try to visually place class B as a component onto class A (via the Palette's "Choose Component"), I get "Live image creation internal error". GroupLayout support issue, fixed in trunk. Fixed |