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.

Bug 109981 - Converted midlet is improperly laid out
Summary: Converted midlet is improperly laid out
Status: VERIFIED FIXED
Alias: None
Product: javame
Classification: Unclassified
Component: Visual Designer (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: David Kaspar
URL:
Keywords:
Depends on:
Blocks: 111624
  Show dependency tree
 
Reported: 2007-07-17 11:45 UTC by _ tboudreau
Modified: 2007-10-31 15:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2007-07-17 11:45:11 UTC
After converting a web service midlet generated by 5.5, all elements in the converted midlet are laid out on top of each other in the visual designer
Comment 1 Lukas Hasik 2007-07-17 12:39:05 UTC
Tim was faster then me ;) 
David, I agree that it's more likely bug than enhancement (as you proposed yesterday).

this issue is noted in the warning dialog that comes up before the conversion start but who would reads it?
Comment 2 David Kaspar 2007-07-17 12:44:25 UTC
For now this is "as designed". See the notes in the dialog after the conversion. Changing to enhancement and leaving as
opened since this issue is hypothetically possible to resolve even through the design uses completely different
UI/layout of Flow Design.
Comment 3 David Kaspar 2007-07-17 13:05:43 UTC
Users will :-).

Oki - I agree that this is annoying. The issue is that for implementing automatic layout/deserialization would not be
simple.

I've changed the issue back to defect but target milestone is set to the "future" still.
Comment 4 David Kaspar 2007-07-17 16:05:58 UTC
FlowDesign node locations are recognized and converted. Anyway still the deseerialized locations does not fit to the
look&feel of the new Designer. Therefore an user has to press Layout button manually anyway.
Comment 5 _ tboudreau 2007-07-17 19:47:07 UTC
That's silly.  So throw away the old layout (if it won't fit, what good is it?) and invoke the layout button programmatically.
Comment 6 David Kaspar 2007-07-18 08:22:04 UTC
It is not that easy since the visual library used by Flow Designer requires to have the scene visible on a screen to
process the layout.
The other problem that we do not have a nice layout algorithm that could be applied - for now I am using simple grid-layout.

Because the current conversion is not producing a nice flow layout, I am going to change the converter to remove all
flow-data from the converted file. Together with that I will add a loading hook into the flow-designe that in case that
there are no serialized flow-data, it should automatically invoke the layout.

Reopening the issue.
Comment 7 David Kaspar 2007-07-18 09:09:12 UTC
Fixed in main trunk as described above.
Comment 8 Fabiola Rios 2007-10-31 15:33:12 UTC
Verified B2