Fixing the height of JDialog
I want to know that how to fix the height of JDialog but variable width using BorderLayout.. Like setPreferedSize() that takes two arguments, height and width.... this mehtod fixes both height and width but my problem is to fix height but not width...Thanx in advance.....
[286 byte] By [
Dev@nanoa] at [2007-11-26 16:57:05]

# 1
The simple solution is:
1. You define a member in your diallog is oldHeight to keep dialog's height.
2. You register a resize event for your dialog.
3. On this event handler. You only code as below:
this.setSize(newWidth, oldHeight);
It mean you only accept new width and still keep old height.