Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Why can't setResizeble() work?

 
Qunfeng Wang
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I construct a dialog like this:
public FvsChangePwdDialog(JFrame owner, String uName)
{
super(owner, true);
chgPwdForm = new FvsChangePwdForm(this, false);
chgPwdForm.setUserName(uName);

getContentPane().add(chgPwdForm, BorderLayout.CENTER);

setSize(new Dimension(400, 200));

//added by Louis Wang.Set resizeble to false, modal to true.
//owner.setResizable(false);
//this.setResizable(false);
//this.setModal(false);
//super.setResizable(false);
//super.setModal(true);

setTitle(DIALOG_TITLE);
FvsClientUtil.centerWindow(this,owner);
setVisible(true);
}


//owner.setResizable(false);
//this.setResizable(false);
//this.setModal(false);
//super.setResizable(false);
//super.setModal(true);
They all can't work!What's the problem? Am I use this constructor incorrectly?
Thanks.
[ April 20, 2005: Message edited by: Loius Wan ]
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) before posting your code, click on the 'CODE' button (appears underneath the message window) like so

[ CODE] [ /CODE]

post your code in between the 2 tags

2) can you post a small compilable, free-running program (for people here to copy/paste/compile/run)
and explain what it is you are getting, and what it is you want
[ April 20, 2005: Message edited by: Michael Dunn ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!