|
-
Feb 1st, 2010, 09:20 AM
#1
Thread Starter
Fanatic Member
How to set modal to jFrame?
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>
-
Feb 12th, 2010, 05:57 AM
#2
Re: How to set modal to jFrame?
Use a JDialog instead of a JFrame. JFrames don't support modal mode
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|