-
Dialog without close icon (X)
Dialog without close icon (X)
Hi,
How do you get rid of the close icon (X) on the top right corner in a dialog?
Here is my code:
public class Login extends Dialog
{
private TextField<String> userName;
private TextField<String> password;
public Login()
{
makeGui();
}
private void makeGui()
{
makeForm();
makeUserName();
makePassword();
}
private void makePassword()
{
password = new TextField<String>();
password.setFieldLabel("Password");
password.setAllowBlank(false);
add(password);
}
private void makeUserName()
{
userName = new TextField<String>();
userName.setFieldLabel("Username");
userName.setAllowBlank(false);
add(userName);
}
private void makeForm()
{
FormLayout layout = new FormLayout();
layout.setLabelWidth(90);
layout.setDefaultWidth(155);
setLayout(layout);
setHeading("Login");
setButtons("");
setResizable(false);
}
}
Thanks.
-
Got it. Need to call setClosable(false) on the dialog. Thanks.
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us