Package javax.swing.undo

Examples of javax.swing.undo.UndoManager


        return undoManager;
    }

    private void ensureUndoManager() {
        if (isEditable() && undoManager == null) {
            undoManager = new UndoManager();
            undoManager.setLimit(UNDO_LIMIT);
        }
    }
View Full Code Here


        textArea.setForeground(Color.BLACK);
        textArea.setBackground(background);
        textArea.setCaretColor(Color.BLACK);
        textArea.setLineWrap(true);
        textArea.setWrapStyleWord(true);
        undoManager = new UndoManager();
        undoManager.setLimit(1000);
        textArea.getDocument().addUndoableEditListener(undoManager);
        textArea.addKeyListener(new KeyAdapter() {

            public void keyPressed(KeyEvent e) {
View Full Code Here

   
    m_FileChooser = new JFileChooser();
    m_FileChooser.setAcceptAllFileFilterUsed(true);
    m_FileChooser.setMultiSelectionEnabled(false);
   
    m_Undo = new UndoManager();
    m_Args = new String[0];
  }
View Full Code Here

        overlayContainer = useLayeredPane() ? new KongaLayeredPane() : null;
        savePointDistances = new Stack<Integer>();
        toolbarButtons = Lists.newArrayList();
        toolbarPopupMenuActions = Lists.newArrayList();
        includeCloseButton = true;
        undoManager = new UndoManager();
        editorPanel = new JPanel(new BorderLayout());
        waitService = new ContainerWaitService(editorPanel);
        undoService = new UndoServiceImpl(undoManager);
        editorBorder = StyleSheet.GenericEditorPanelClass.getBorder();
    }
View Full Code Here

    private InputMethodListener caretListener;

    /** Creates new form TextPanel */
    public TextPanel() {
        initComponents();
        undo = new UndoManager();
        fileName = "";
        highlight = null;
        selectionColor = Color.YELLOW;
        charset = Charset.forName("UTF-8");
        defaultFont = textArea.getFont();
View Full Code Here

    private final RedoAction redoAction;

    private final PropertiesDescriptorTable table;
   
    public PropertiesDescriptorTableTest() {
        undoManager = new UndoManager();
        undoAction = new UndoAction();
        redoAction = new RedoAction();
        table = createTable();
        PanelTestFrame frame = createFrame();
        frame.publish();
View Full Code Here

    private boolean bindOkToValidState;

    private InputPanelDialogMediator(InputPanel panel, KongaDialog dialog) {
        this.panel = panel;
        this.dialog = dialog;
        undoManager = new UndoManager();
        installKeyBindings(dialog);
        Listener listener = new Listener();
        dialog.addWindowListener(listener);
        panel.addInputChangeListener(listener);
        setDisposePanelOnDialogClose(true);
View Full Code Here

    private final UndoManager undoManager;
   
    public InputPanelOverlay(InputPanel p, String title) {
        super(getUi(p), title);
        this.panel = p;
        this.undoManager = new UndoManager();
        p.addUndoableEditListener(undoManager);
        installKeyBindings();
    }
View Full Code Here

    private final List<RedoRequestFilter> redoFilters;
   
    private boolean alwaysConsumeKeyboardTriggers;
   
    public UndoRedoControllerBase() {
        manager = new UndoManager();
        managedComponents = new ArrayList<UndoableEditSender>();
        undoAction = new UndoAction();
        redoAction = new RedoAction();
        internalEditListener = new UndoableEditListener() {
View Full Code Here

                            String title,
                            Dialog.ModalityType modality,
                            KongaDialog.ButtonMode buttonMode) {
        super(owner, title, modality);
        this.panel = panel;
        undoManager = new UndoManager();
        layoutDialog(buttonMode);
        installKeyBindings();
    }
View Full Code Here

TOP

Related Classes of javax.swing.undo.UndoManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.