How to set modal to jFrame?


<CODE>
int x= this.getX();
int y = this.getY() + 150;
Point location = new Point(x, y);

FrmSerial frmSerial = new FrmSerial();
frmSerial.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
frmSerial.setLocationByPlatform(false);
frmSerial.setLocation(location);
frmSerial.setVisible(true);
</CODE>