public TextPane(MainGui main, StyleServer styleServer) { super(main, styleServer); linkController.setDefaultContextMenu(new HighlightsContextMenu()); }
@Override public void actionPerformed(ActionEvent e) { for (ContextMenuListener l : getContextMenuListeners()) { l.menuItemClicked(e); } }
public HighlightsContextMenu() { addItem("clearHighlights", Language.getString("highlightedDialog.cm.clear")); }
public TextPane(MainGui main, StyleServer styleServer, boolean startAtBottom) { // Enables the "special" parameter to be able to remove old lines super(main, styleServer, true, startAtBottom); // Overriding constructor is required to set the custom context menu linkController.setDefaultContextMenu(new HighlightsContextMenu()); }