[codenameone-discussions] Re: Form title is written twice
Did you take the time to read my message? Apparently not as you *completely* *ignored* the question. On Saturday, September 24, 2016 at 9:22:46 PM UTC-7, Shai Almog wrote: > > The developer guide is a wiki, it helps being proactive and actually > fixing stuff: > > https://www.codenameone.com/blog/wiki-parparvm-performance-actionevent-type.html > http://github.com/codenameone/CodenameOne/wiki > -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/c68ff2d0-c404-45c3-b1a0-3d9c414f5a81%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: Form title is written twice
I have read the developer guide, more times than I'd like to admit, although I must admit I haven't made it past miscellaneous functions. In fact I can tell you that you have so far 26 navigation errors in your document and numerous typos as well as outdated code and samples that no longer work. Dont believe me that's ok, here's the list of navigation errors: https://www.codenameone.com/manual/basics.html#_component/container_hierarchy https://www.codenameone.com/manual/basics.html#_layout_managers https://www.codenameone.com/manual/advanced-theming.html#_theme_constants https://www.codenameone.com/manual/advanced-theming.html#_how_does_a_theme_work? https://www.codenameone.com/manual/advanced-theming.html#_understanding_images_multi-images https://www.codenameone.com/manual/advanced-theming.html#_use_millimeters_for_padding/margin_font_sizes https://www.codenameone.com/manual/components.html#_label https://www.codenameone.com/manual/components.html#_button https://www.codenameone.com/manual/components.html#_checkbox/radiobutton https://www.codenameone.com/manual/components.html#_spanlabel https://www.codenameone.com/manual/components.html#_list,_multilist,_renderers_models https://www.codenameone.com/manual/components.html#_table https://www.codenameone.com/manual/components.html#_tree https://www.codenameone.com/manual/components.html#_sharebutton https://www.codenameone.com/manual/components.html#_mediamanager_mediaplayer https://www.codenameone.com/manual/components.html#_picker https://www.codenameone.com/manual/animations.html#_layout_animations https://www.codenameone.com/manual/edt.html#_call_serially_(and_wait) https://www.codenameone.com/manual/edt.html#_invoke_and_block https://www.codenameone.com/manual/graphics.html#_images https://www.codenameone.com/manual/misc-features.html#_localization_internationalization_(l10n_i18n) https://www.codenameone.com/manual/misc-features.html#_location_-_gps https://www.codenameone.com/manual/misc-features.html#_capture_-_photos,_video,_audio https://www.codenameone.com/manual/misc-features.html#_google_login https://www.codenameone.com/manual/misc-features.html#_lead_component https://www.codenameone.com/manual/misc-features.html#_running_3rd_party_apps_using_display's_execute Now getting back to getting some technical support. I am mostly positive this is *NOT* and EDT problem. For some reason you remove the center component from the title bar and never replace it. This happens during the out animation of the toastbar. stack: Thread [EDT] (Suspended (breakpoint at line 202 in BorderLayout)) BorderLayout.removeLayoutComponent(Component) line: 202 Toolbar(Container).removeComponentImplNoAnimationSafety(Component) line: 929 Container$3.updateState() line: 913 Container$3(ComponentAnimation).updateAnimationState() line: 80 AnimationManager.updateAnimations() line: 69 FrmMain(Form).repaintAnimations() line: 1350 Display.edtLoopImpl() line: 1078 Display.invokeAndBlock(Runnable, boolean) line: 1204 Display.invokeAndBlock(Runnable) line: 1242 AnimationManager.addAnimationAndBlock(ComponentAnimation) line: 105 Container.animateHierarchy(int, boolean, int) line: 2476 Container.animateHierarchyAndWait(int) line: 2196 ToastBar.setVisible(boolean) line: 724 ToastBar.updateStatus() line: 468 ToastBar.removeStatus(ToastBar$Status) line: 680 ToastBar.access$700(ToastBar, ToastBar$Status) line: 76 ToastBar$Status.clear() line: 348 FrmMain.refresh() line: 73 FrmMain.onClick() line: 64 FrmMain$2.actionPerformed(ActionEvent) line: 52 EventDispatcher.fireActionEvent(ActionEvent) line: 349 Button.fireActionEvent(int, int) line: 403 Button.released(int, int) line: 442 Button.pointerReleased(int, int) line: 530 FrmMain(Form).pointerReleased(int, int) line: 2599 FrmMain(Form).pointerReleased(int, int) line: 2563 FrmMain(Component).pointerReleased(int[], int[]) line: 3154 Display.handleEvent(int) line: 2024 Display.edtLoopImpl() line: 1066 Display.mainEDTLoop() line: 995 RunnableWrapper.run() line: 120 CodenameOneThread.run() line: 176 Then when setTitle is called, the center component is null and a new component is created: public void setTitle(String title) { checkIfInitialized(); Component center = ((BorderLayout) getLayout()).getCenter(); if (center instanceof Label) { ((Label) center).setText(title); } else { titleComponent = new Label(title); titleComponent.setUIID("Title"); if (center != null) { replace(center, titleComponent, null); } else { addComponent(BorderLayout.CENTER, titleComponent); } } } Using callSeriallyandWait on setTitle results in an error because we are already on the EDT. Here is a full test sample. It is not complicated. and has only the minimum required. package com.mycompany.myapp; import
[codenameone-discussions] Re: Form title is written twice
No. I suggest re-reading the developer guide chapter on the EDT. And understanding *exactly* what invoke and block does. We have bugs, this isn't one of them. -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/b6840fde-9ac9-4b0b-a9c7-9fd3210f9d07%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: Form title is written twice
*obviously I have more going on?* I would say obviously your framework has a bug. I would say my use scenario is not that unusual...*obviously* Displaying a dialog, and then when that dialog is disposed displaying a progress indication (toastbar) and then updating an element on the form is *NOT* unusual. Fix it or dont fix it, I dont care. Having bugs that programmers have to work around only hurts your product's reputation. Peter On Thursday, September 22, 2016 at 11:00:47 PM UTC-7, Shai Almog wrote: > > Not practical. You have a chain of calls that you implicitly rely on, we > try to hide some of that complexity but obviously you have more going on. > -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/fd472ac3-92da-4bb5-8d2c-313044f7495a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: Form title is written twice
Not practical. You have a chain of calls that you implicitly rely on, we try to hide some of that complexity but obviously you have more going on. -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/197f3ec8-f186-4467-8348-3a8c67d95064%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: Form title is written twice
The title is displayed correctly when I dont show the dialog, *obviously* this is not a solution The title is also correct when I show the dialog modeless. This is a *possible* solution but requires now that I implement some form of a callback to inform the calling form that the dialog is disposed of. The *ideal* solution would be to fix the bug that is causing the title to be displayed twice when the dialog is shown modal. On Wednesday, September 21, 2016 at 8:48:03 PM UTC-7, Shai Almog wrote: > > Try it without the dialog. > Try showing the dialog as modless. > -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/c89e4fbe-6ba0-490f-9ba7-37ee0ebf305f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: Form title is written twice
Try it without the dialog. Try showing the dialog as modless. -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/12cf8788-a243-4474-b413-68a18dfb9c39%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: Form title is written twice
I'm guessing this relates to dlgFilter blocking the EDT and disrupting the event processing. -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/6e700f7e-c8b5-42f0-81bd-7859f1125e50%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.