setting a minimum frame size


[ ´ÙÀ½ ±Ûµé ] [ À̾ ±Û¿Ã¸®±â(´äÇϱâ) ] [ ÀÚ¹Ù ¹¯°í ´äÇϱâ ]

±Û¾´ÀÌ :Sung Yi 2000³â 2¿ù 05ÀÏ 05:35:23

In Reply to: JFrame¿¡¼­´Â setMinimumSize() ¾ÈµÊ posted by ¹ÚÇöÁ¦ on 2000³â 2¿ù 01ÀÏ 10:34:23:

No easy way out. It is ironic that the JFrame has method called the getMinimumSize() but does not implement the setMimimumSize(). But it is easy get around the deficiency.


At the beginning of your program,
java.awt.Rectangle orgRect = myFrame.getBounds();


In the componentresized event,
myFrame().setBounds(orgRect);



´ÙÀ½ ±Ûµé:



À̾ ±Û¿Ã¸®±â(´äÇϱâ)

À̸§:
E-Mail:
Á¦¸ñ:
³»¿ë:
HTML ÅÂ±× Æ÷ÇÔ ¿©ºÎ: HTML ¹®¼­ÀÏ °æ¿ì üũ
°ü·Ã URL(¼±ÅÃ):
URL Á¦¸ñ(¼±ÅÃ):
°ü·Ã À̹ÌÁö URL:


[ ´ÙÀ½ ±Ûµé ] [ À̾ ±Û¿Ã¸®±â(´äÇϱâ) ] [ ÀÚ¹Ù ¹¯°í ´äÇϱâ ]