Title:Java Right Mouse Button Menu

A java GUI API, which can easily add Right Mouse Button Menu to components of JEditorPane, JTextArea or JTextField. It includes following menu items: copy, paste, cut, redo, undo. One instance of RightMouseMenu can apply to more components of JEditorPane, JTextArea and JTextField. Local and international development supported.

Example of usage:

rightMouseMenu = new RightMouseMenu();
field = new JTextField();
textArea = new JTextArea();
editPane = new JEditPane();
rightMouseMenu.applyTo(field);
rightMouseMenu.applyTo(textArea);
rightMouseMenu.applyTo(editPane);


Copyright: Copyright (c) 2006

Company:

Constructor Detail

RightMouseMenu

public RightMouseMenu()
Constructs a new instance by using default menuItem Strings: Copy, Paste, Cut, Undo, Redo.


RightMouseMenu

public RightMouseMenu(java.util.ResourceBundle res)
Constructs a new instance by using specifically menuItem Strings that are specified by parameter res. You should use this constructor in international development. Parameter res must include following keys: copyText, pasteText, cutText, undoText, redoText

Parameters:
res - ResourceBundle must include following keys: copyText, pasteText, cutText, undoText, redoText

RightMouseMenu

public RightMouseMenu(java.lang.String copyText,
                      java.lang.String pasteText,
                      java.lang.String cutText,
                      java.lang.String undoText,
                      java.lang.String redoText)
Constructs a new instance by using specifically menuItem Strings that are specified in parameters. This constructor equals to default constructor when use following parameter: new RightMouseMenu("Copy","Paste","Cut","Undo","Redo").

Parameters:
copyText - String
pasteText - String
cutText - String
undoText - String
redoText - String