1. /*
  2. * @(#)Popup.java 1.3 00/02/02
  3. *
  4. * Copyright 1997-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package javax.swing;
  11. import java.awt.*;
  12. /*
  13. * The following interface describes what a popup should implement.
  14. * We do this because JPopupMenu uses popup that can be windows or
  15. * panels.
  16. */
  17. interface Popup {
  18. public void show(Component invoker);
  19. public boolean isShowing();
  20. public void hide();
  21. public Rectangle getBoundsOnScreen();
  22. public void setLocationOnScreen(int x,int y);
  23. public void setSize(int width,int height);
  24. public int getWidth();
  25. public int getHeight();
  26. public void addComponent(Component aComponent,Object constraints);
  27. public void removeComponent(Component c);
  28. public void pack();
  29. }