/[classpath]/classpath/javax/swing/JPopupMenu.java
ViewVC logotype

Diff of /classpath/javax/swing/JPopupMenu.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.24 by langel, Thu Sep 22 19:06:14 2005 UTC revision 1.25 by langel, Wed Sep 28 13:59:14 2005 UTC
# Line 102  public class JPopupMenu extends JCompone Line 102  public class JPopupMenu extends JCompone
102    
103       1. if DefaultLightWeightPopupEnabled true       1. if DefaultLightWeightPopupEnabled true
104           (i)  use lightweight container if popup feets inside top-level window           (i)  use lightweight container if popup feets inside top-level window
105           (ii) only use heavyweight container (JWindow) if popup doesn't fit.           (ii) only use heavyweight container (JDialog) if popup doesn't fit.
106    
107       2. if DefaultLightWeightPopupEnabled false       2. if DefaultLightWeightPopupEnabled false
108           (i) if popup fits, use awt.Panel (mediumWeight)           (i) if popup fits, use awt.Panel (mediumWeight)
109           (ii) if popup doesn't fit, use JWindow (heavyWeight)           (ii) if popup doesn't fit, use JDialog (heavyWeight)
110    */    */
111    private static boolean DefaultLightWeightPopupEnabled = true;    private static boolean DefaultLightWeightPopupEnabled = true;
112    
# Line 1015  public class JPopupMenu extends JCompone Line 1015  public class JPopupMenu extends JCompone
1015    }    }
1016    
1017    /**    /**
1018     * HeavyWeightPopup is JWindow that is used to display JPopupMenu menu item's     * HeavyWeightPopup is JDialog that is used to display JPopupMenu menu item's
1019     * on the screen     * on the screen
1020     */     */
1021    private class HeavyWeightPopup extends JDialog implements Popup    private class HeavyWeightPopup extends JDialog implements Popup
# Line 1033  public class JPopupMenu extends JCompone Line 1033  public class JPopupMenu extends JCompone
1033      }      }
1034    
1035      /**      /**
1036       * Displays JWindow container JPopupMenu's menu items to the screen       * Displays JDialog container JPopupMenu's menu items to the screen
1037       *       *
1038       * @param x x-coordinate of JWindow containing menu items       * @param x x-coordinate of JDialog containing menu items
1039       * @param y y-coordinate of JWindow containing menu items       * @param y y-coordinate of JDialog containing menu items
1040       * @param width width of the JWindow       * @param width width of the JDialog
1041       * @param height height of the JWindow       * @param height height of the JDialog
1042       */       */
1043      public void show(int x, int y, int width, int height)      public void show(int x, int y, int width, int height)
1044      {      {

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26