Generated by
JDiff

Class javax.swing.JPopupMenu

Documentation changed from old to new.

Changed Constructors
JPopupMenu(String) Documentation changed from old to new.
Constructs a JPopupMenu with the specified title.
JPopupMenu(void) Documentation changed from old to new.
Constructs a JPopupMenu without an "invoker".
 

Removed Methods
void processKeyEvent(KeyEvent, MenuElement[], MenuSelectionManager)  
void remove(Component) Removes the specified component from this popup menu.
 

Added Methods
JMenuItem createActionComponent(Action) Factory method which creates the JMenuItem for Actions added to the JPopupMenu.
boolean isPopupTrigger(MouseEvent) Returns true if the MouseEvent is considered a popup trigger by the JPopupMenu's currently installed UI.
void processKeyEvent(KeyEvent) Processes key stroke events such as mnemonics and accelerators.
void processKeyEvent(KeyEvent, MenuElement[], MenuSelectionManager) This method is required to conform to the MenuElement interface but it not implemented.
 

Changed Methods
void addPopupMenuListener(PopupMenuListener) Documentation changed from old to new.
Adds a PopupMenu listener.
PropertyChangeListener createActionChangeListener(JMenuItem) Documentation changed from old to new.
Returns a properly configured PropertyChangeListener which updates the control as changes to the Action occur.
void firePopupMenuCanceled() Documentation changed from old to new.
Notifies PopupMenuListeners that this popup menu is cancelled.
void firePopupMenuWillBecomeInvisible() Documentation changed from old to new.
Notifies PopupMenuListeners that this popup menu will become invisible.
void firePopupMenuWillBecomeVisible() Documentation changed from old to new.
Notifies PopupMenuListeners that this popup menu will become visible.
AccessibleContext getAccessibleContext() Documentation changed from old to new.
Gets the AccessibleContext associated with this JPopupMenu.
Component getComponentAtIndex(int) Documentation changed from old to new.
Now deprecated.
replaced by getComponent(int i)
int getComponentIndex(Component) Documentation changed from old to new.
Returns the index of the specified component.
boolean getDefaultLightWeightPopupEnabled() Documentation changed from old to new.
Returns true if this is a light weight popup component false otherwise.
Component getInvoker() Documentation changed from old to new.
Returns the component which is the 'invoker' of this popup menu.
String getLabel() Documentation changed from old to new.
Returns the popup menu's label
Insets getMargin() Documentation changed from old to new.
Returns the margin in pixels between the popup menu's border and its containees.
SingleSelectionModel getSelectionModel() Documentation changed from old to new.
Returns the model object that handles single selections.
MenuElement[] getSubElements() Documentation changed from old to new.
Returns an array of MenuElements containing the submenu for this menu component.
PopupMenuUI getUI() Documentation changed from old to new.
Returns the look and feel (L&F) object that renders this component.
String getUIClassID() Documentation changed from old to new.
Returns the name of the L&F class that renders this component.
boolean isBorderPainted() Documentation changed from old to new.
Checks whether the border should be painted.
boolean isLightWeightPopupEnabled() Documentation changed from old to new.
Returns true if light weight (all-Java) popups are in use or false if heavy weight (native peer) popups are being used.
boolean isVisible() Documentation changed from old to new.
Returns true if the popup menu is visible (currently being displayed).
void menuSelectionChanged(boolean) Documentation changed from old to new.
Messaged when the menubar selection changes to activate or deactivate this menu.
void pack() Documentation changed from old to new.
Lays out the container so that it uses the minimum space needed to display its contents.
void paintBorder(Graphics) Documentation changed from old to new.
Paints the popup menu's border if BorderPainted property is true.
String paramString() Documentation changed from old to new.
Returns a string representation of this JPopupMenu.
void removePopupMenuListener(PopupMenuListener) Documentation changed from old to new.
Removes a PopupMenu listener.
void setDefaultLightWeightPopupEnabled(boolean) Documentation changed from old to new.
Sets the default value for the lightWeightPopupEnabled property.
void setInvoker(Component) Documentation changed from old to new.
Sets the invoker of this popup menu -- the component in which the popup menu menu is to be displayed.
void setLabel(String) Documentation changed from old to new.
Sets the popup menu's label.
void setLightWeightPopupEnabled(boolean) Documentation changed from old to new.
When displaying the popup JPopupMenu chooses to use a light weight popup if it fits.
void setSelected(Component) Documentation changed from old to new.
Sets the currently selected component This will result in a change to the selection model.
void setSelectionModel(SingleSelectionModel) Documentation changed from old to new.
Sets the model object to handle single selections.
void setVisible(boolean) Documentation changed from old to new.
Sets the visibility of the popup menu.
void updateUI() Documentation changed from old to new.
Resets the UI property to a value from the current look and feel.
JMenuItem add(String) Documentation changed from old to new.
Creates a new menu item with the specified text and appends it to the end of this menu.
JMenuItem add(Action) Documentation changed from old to new.
Appends a new menu item to the end of the menu which dispatches the specified Action object.
JMenuItem add(JMenuItem) Documentation changed from old to new.
Appends the specified menu item to the end of this menu.
Component getComponent() Documentation changed from old to new.
Returns this JPopupMenu component.
void insert(Component, int) Documentation changed from old to new.
Inserts the specified component into the menu at a given position.
void insert(Action, int) Documentation changed from old to new.
Inserts a menu item for the specified Action object at a given position.
void processMouseEvent(MouseEvent, MenuElement[], MenuSelectionManager) Documentation changed from old to new.
This method is required to conform to the MenuElement interface but it not implemented.
void remove(int) Documentation changed from old to new.
Removes the component at the specified index from this popup menu.
void setLocation(int, int) Documentation changed from old to new.
Sets the location of the upper left corner of the popup menu using x y coordinates.
void setPopupSize(int, int) Documentation changed from old to new.
Sets the size of the Popup window to the specified width and height.
void setPopupSize(Dimension) Documentation changed from old to new.
Sets the size of the Popup window using a Dimension object.
void setUI(PopupMenuUI) Documentation changed from old to new.
Sets the L&F object that renders this component.
void show(Component, int, int) Documentation changed from old to new.
Displays the popup menu at the position x y in the coordinate space of the component invoker.