JavaTM 2
Platform
Std.  Ed.  v1. 4.0

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

»ý¼ºÀÚÀÇ °³¿ä
PopupFactory ()
           
 
¸Þ¼ÒµåÀÇ °³¿ä
 Popup getPopup (Component  owner, Component  contents, int x, int y)
          ÄÄÆÛ³ÍÆ® contents ¸¦ Æ÷ÇÔÇÑ ÄÄÆÛ³ÍÆ® owner ÀÇ Popup ¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
static PopupFactory getSharedInstance ()
          Popup ¸¦ ÃëµæÇϱâ À§Çؼ­ »ç¿ëÇÒ ¼ö ÀÖ´Â °øÀ¯ PopupFactory ¸¦ µ¹·ÁÁÝ´Ï´Ù.
static void setSharedInstance (PopupFactory  factory)
          AppContext °íÀ¯ÀÇ PopupFactory ¸¦ ¼³Á¤ÇÕ´Ï´Ù.
 
Ŭ·¡½º java.lang. Object ¿¡¼­ »ó¼Ó¹ÞÀº ¸Þ¼Òµå
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
 

»ý¼ºÀÚÀÇ »ó¼¼

PopupFactory

public PopupFactory()
¸Þ¼ÒµåÀÇ »ó¼¼

setSharedInstance

public static void setSharedInstance(PopupFactory  factory)
AppContext °íÀ¯ÀÇ PopupFactory ¸¦ ¼³Á¤ÇÕ´Ï´Ù. factory °¡ null ÀÇ °æ¿ì,IllegalArgumentException ¸¦ ½½·Î¿ì ÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
factory - °øÀ¯ PopupFactory
¿¹¿Ü:
IllegalArgumentException - factory °¡ null ÀÇ °æ¿ì

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 ÀÇ Contents
x - ÃʱâÀÇ x È­¸é ÁÂÇ¥
y - ÃʱâÀÇ y È­¸é ÁÂÇ¥
¹Ýȯ°ª:
Contents ¸¦ Æ÷ÇÔÇÑ Popup
¿¹¿Ü:
IllegalArgumentException - contents °¡ null ÀÇ °æ¿ì

JavaTM 2
Platform
Std.  Ed.  v1. 4.0

¹ö±×ÀÇ º¸°í¿Í ±â´ÉÀÇ ¸®Äù½ºÆ®
ÀÌ¿ÜÀÇ API ·¹ÆÛ·±½º ¹× °³¹ßÀÚ¿ë ¹®¼­¿¡ ´ëÇØ¼­´Â Java 2 SDK SE °³¹ßÀÚ¿ë ¹®¼­¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä. °³¹ßÀÚÀü¿ëÀÇ »ó¼¼ÇÑ ÇØ¼³, °³³äÀÇ °³¿ä, ¿ë¾îÀÇ Á¤ÀÇ, ¹ö±×ÀÇ È¸ÇÇÃ¥, ¹× ÄÚµå ½Ç·Ê°¡ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù.

Java, Java 2 D, ¹× JDBC ´Â ¹Ì±¹ ¹× ±× ¿ÜÀÇ ³ª¶ó¿¡ À־ÀÇ ¹Ì±¹ Sun Microsystems, Inc. ÀÇ »óÇ¥ ȤÀº µî·Ï»óÇ¥ÀÔ´Ï´Ù.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.