javax.swing
Ŭ·¡½º PopupFactory
java.lang.Object
javax.swing.PopupFactory
public class PopupFactory
- extends Object
PopupFactory
´Â
À̸§¿¡¼ ¾Ë¼ö ÀÖµíÀÌ, Popup
ÀνºÅϽº¸¦ ÃëµæÇϱâ À§Çؼ »ç¿ëÇÕ´Ï´Ù. Popup
´Â
ƯÁ¤ÀÇ Æ÷ÇÔ °ü°èÀÇ °èÃþ¿¡ Á¸ÀçÇÏ´Â ´Ù¸¥ ¸ðµç Component
À§¿¡ Component
¸¦ ¹èÄ¡Çϱâ À§Çؼ »ç¿ëÇÕ´Ï´Ù. ¹ü¿ë ±Ô¾à¿¡¼´Â PopupFactory
·Î
ºÎÅÍ Popup
¸¦ ÃëµæÇßÀ» °æ¿ì, ±× Popup
¿¡ ´ëÇØ¼ hide
¸¦ È£ÃâÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù. ÀϹÝÀûÀ¸·Î ´ÙÀ½°ú °°ÀÌ »ç¿ëÇÕ´Ï´Ù.
PopupFactory factory = PopupFactory.getSharedInstance();
Popup popup = factory.getPopup(owner, contents, x, y);
popup.show();
...
popup.hide();
- µµÀÔµÈ ¹öÀü
:
- 1.4
- °ü·Ã Ç׸ñ:
Popup
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
PopupFactory
public PopupFactory()
setSharedInstance
public static void setSharedInstance(PopupFactory factory)
Popup
¸¦ ÃëµæÇϱâ À§Çؼ »ç¿ëÇÏ´Â PopupFactory
¸¦ ¼³Á¤ÇÕ´Ï´Ù. factory
°¡ nullÀÎ °æ¿ì´Â IllegalArgumentException
À»
Throw ÇÕ´Ï´Ù.
- ÆÄ¶ó¹ÌÅÍ:
factory
- °øÀ¯ PopupFactory
- ¿¹¿Ü:
IllegalArgumentException
- factory
°¡ nullÀÎ °æ¿ì- °ü·Ã Ç׸ñ:
getPopup(java.awt.Component, java.awt.Component, int, int)
getSharedInstance
public static PopupFactory getSharedInstance()
Popup
¸¦ ÃëµæÇϱâ À§Çؼ »ç¿ëÇÒ ¼ö ÀÖ´Â °øÀ¯ PopupFactory
¸¦ ¸®ÅÏÇÕ´Ï´Ù.
- ¹Ýȯ°ª:
- °øÀ¯ PopupFactory
getPopup
public Popup getPopup(Component owner,
Component contents,
int x,
int y)
throws IllegalArgumentException
- ÄÄÆÛ³ÍÆ®
contents
¸¦ Æ÷ÇÔÇÑ ÄÄÆÛ³ÍÆ® owner
Popup
¸¦ ÀÛ¼ºÇÕ´Ï´Ù. owner
´Â
¾î´À Window
(»õ·Î¿î Popup
)°¡ Popup
ÀÛ¼ºÃ³ÀÇ Component
ºÎ¸ð°¡ µÇ´ÂÁö¸¦ ÁöÁ¤Çϱâ À§Çؼ »ç¿ëÇÕ´Ï´Ù. owner
°¡ nullÀÎ °æ¿ì, À¯È¿ÇÑ ºÎ¸ð°¡ ¾ø´Â °ÍÀ» ³ªÅ¸³À´Ï´Ù. x
¿Í
y
¿¡´Â Popup
¸¦ ÃÖÃÊ·Î ¹èÄ¡ÇÏ´Â À§Ä¡¸¦ ÁöÁ¤ÇÕ´Ï´Ù. ȸéÀÇ »çÀÌÁ ´Ù¸¥ ÆÄ¶ó¹ÌÅÍ¿¡ µû¶ó¼´Â Popup
°¡ x
¿Í
y
¿¡ Ç¥½ÃµÇÁö ¾Ê´Â °ÍÀÌ ÀÖ½À´Ï´Ù.
- ÆÄ¶ó¹ÌÅÍ:
owner
- ¸¶¿ì½ºÀÇ ÁÂÇ¥ÀÇ ±âÁØÀÌ µÇ´Â Component. nullµµ °¡´Écontents
- Popup
Contentsx
- ÃʱâÀÇ x ȸé ÁÂÇ¥y
- ÃʱâÀÇ y ȸé ÁÂÇ¥
- ¹Ýȯ°ª:
- Contents¸¦ Æ÷ÇÔÇÑ Popup
- ¿¹¿Ü:
IllegalArgumentException
- contents°¡ nullÀÎ °æ¿ì
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ
ÂüÁ¶ÇϽʽÿÀ.