except that hitting apply disposes the dialog and should release the edt. 
 (I forgot to include DlgFilter, here it is)

package com.mycompany.myapp;


import com.codename1.ui.Button;
import com.codename1.ui.Component;
import com.codename1.ui.Container;
import com.codename1.ui.Dialog;
import com.codename1.ui.FontImage;
import com.codename1.ui.Label;
import com.codename1.ui.plaf.UIManager;
import com.codename1.ui.table.TableLayout;


public class DlgClientFilter extends Dialog {
 public boolean Cancelled = false;
 protected TableLayout layout = new TableLayout(10,3);
 protected Button btnApply = new Button(FontImage.createMaterial(FontImage.
MATERIAL_DONE, UIManager.getInstance().getComponentStyle("Command"), 5));
 protected Button btnClose = new Button(FontImage.createMaterial(FontImage.
MATERIAL_CLEAR, UIManager.getInstance().getComponentStyle("Command"), 5));


 public DlgClientFilter() {
        initManualComponents();
    }
    
    protected void initManualComponents() {
    this.setLayout(layout);
    this.setUIID("Form");
    this.setDialogUIID("Form");
        this.getStyle().setBgTransparency(255);
        this.getDialogStyle().setBgTransparency(255);
    add(layout.createConstraint().widthPercentage(30), new Label(""));
    add(layout.createConstraint().widthPercentage(55), new Label(""));
    add(layout.createConstraint().widthPercentage(15), new Label(""));
    Container cnt2 = new Container();
    cnt2.add(btnApply);
    cnt2.add(btnClose);
    btnApply.addActionListener(evt -> onApply());
    btnClose.addActionListener(evt -> onClose());
    add(layout.createConstraint().horizontalSpan(3).horizontalAlign(
Component.RIGHT), cnt2);
    
    add(layout.createConstraint().horizontalSpan(3), new Label("Client Info"
));
    }
    
    protected void onApply() {
    Cancelled = false;
      dispose();
    }
    
    protected void onClose() {
    Cancelled = true;
    dispose();
    }


}


On Tuesday, September 20, 2016 at 9:51:46 PM UTC-7, Shai Almog wrote:
>
> 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 [email protected].
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/3bfafa67-48a0-4de3-b156-d64954ea653d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to