This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Disappearing Image Item on NB Startup, MVD | ||
---|---|---|---|
Product: | javame | Reporter: | shamatt <shamatt> |
Component: | Visual Designer | Assignee: | Martin Brehovsky <breh> |
Status: | VERIFIED WONTFIX | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 5.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
Hello form as it should appear--and does appear after close and reload.
Hello form as it appears on NB startup. Note the missing ImageItem even though it is listed in the Inspector pane. |
Description
shamatt
2007-04-12 23:04:00 UTC
Created attachment 40864 [details]
Hello form as it should appear--and does appear after close and reload.
Created attachment 40865 [details]
Hello form as it appears on NB startup. Note the missing ImageItem even though it is listed in the Inspector pane.
I perhaps should have mentioned that I am using NetBeans 5.5 with JDK 1.6.0 (and, later, JDK 1.6.0_01) for however that may affect things... or not. Also, if you startup NetBeans with two or more projects automatically opened, this bug only applies to the project that is on top at the time of startup. I have tried it several times in NetBeans Mobility Pack 5.5 and 6.0 Milestone 8 with JDK 5 and JDK 6 on Linux platform and it works correctly. Currently I think that it is caused by revalidation - means: the imageItem is validated with [0,0] size on the screen and therefore it is not visible. You can check it. When you are moving your mouse cursor over hypothetical place of the image item and the "blue rectangle" appears, then it is a repaint problem only. Otherwise it is the revalidation problem where the size is [0,0] and therefore you cannot point it with a mouse (but you should be able to focus it by selecting the "helloStringItem" and pressing Tab-key). Unfortunately even if I would know how to fix it, the problem is that I cannot verify that the fix works - it is kind of race condition where the issue can be affected by a small change of the code even not related to the issue. Therefore I would rather not fix this issue. Definitely not a repaint problem. There is no blue rectangle during hover or with click. In fact, if you have other items on the form they will have shifted into the ImageItems' space. To the user it actually appears that the item was deleted. Does not appear to be revalidation either. There is no method to select the item. Tabbing only takes you to the exitCommand box. Look at the screenshots closely. You will see that I attempted to select the item with the Structure Inspector but there is no [0,0] type selection on the form. Will someone running Windows XP (or any Windows) please verify? Remember, the bug only exists at NB startup. Compare the startup Open Project code with the menu Open Project code. They probably the share the same routine but somehow run it differently. Or, too early at startup before ImageItem or Item resources have had time to initialize. Also, remember the second workaround. Move some items around and it magically re-appears during the redraw. More notes after fiddling some more: Switching the MVD from Screen Design View to Source View or Flow Design View and back does not make the ImageItem reappear. Starting NB with the MVD set to open in one of the other views has no affect either. The ImageItem is still not loaded even if the first view is Source or Flow Design. Closing the MVD tab for the form and then reopening it DOES work as one more workaround. Updated workarounds: (1) close the project and reopen it; (2) close the MVD tab for the affected form and reopen it; or (3) move some items around on the form and all objects will appear. I cannot reproduce on WinXP SP2, neither with jdk 1.5.0_11 nor with 1.6. There must be something that I missed in the steps to reproduce or the issue is specific to configuration. Bugger. Thanks for checking lhasik. Perhaps it is related to my installation. I will try to test that theory in the next few weeks during or after my current project. I will install nb onto my laptop and see what happens. (Right now I'm neck deep in debugging an Oracle HTTP Server install that has my machine begging for mercy.) I do get an error at every nb startup that started after installing Nokia's Carbide.j. I installed Carbide.j pretty quickly after nb so there is no way I can know how this might relate. That is reported in Issue #77255. It could be that you have to generate an IllegalStateException during startup to get this bug. (Why the -bleep- didn't I say this sooner?) Or, not. I won't be installing Carbide.j on my laptop anytime soon. Designer 1 has been removed from NB 6.0 therefore resolving issue as WONTFIX. Designer 2 does not have this issue. setting up the target milestone. |