Package javax.swing.event

Examples of javax.swing.event.CaretListener


          }
        }
      }
    });
   
    javaHomeTextField.addCaretListener(new CaretListener()
    {
      public void caretUpdate(CaretEvent e)
      {
        try
        {
View Full Code Here


          }
        }
      }
    });
   
    folderTextField.addCaretListener(new CaretListener()
    {
      public void caretUpdate(CaretEvent e)
      {
        try
        {
View Full Code Here

    this.cptEditionPane_ = cptEditionPane;
    styleTable = new CRN_StyleTableImpl(this.getStyledDocument());
    doc = this.getStyledDocument();
   
    setCaretPosition(0);
    addCaretListener( new CaretListener(){
      public void caretUpdate(CaretEvent e) {
        positionCaret = e.getDot();
        cptEditionPane_.atualizeCaretPosition(positionCaret);
      }
    });
View Full Code Here

     * Creates new form ErrorReportFrame
     */
    public ErrorReportFrame() {
        initComponents();
       
        errorText.addCaretListener(new CaretListener() {
            public void caretUpdate(CaretEvent ce) {
                String sel = errorText.getSelectedText();
                copyButton.setEnabled(sel != null);
            }
        });
View Full Code Here

      }
      {
        nameField = new JTextField();
        this.add(nameField);
        nameField.setBounds(77, 10, 128, 21);
        nameField.addCaretListener(new CaretListener(){

          @Override
          public void caretUpdate(CaretEvent e) {
            if(nameField.getText().length()>0)
              jButton1.setEnabled(true);
View Full Code Here

  }

  public void addModelchangedListener(final ActionListener l) {
    this.nameField.addActionListener(l);
    //FIXME the name field should only update the name of the new char, not the whole vis
    this.nameField.addCaretListener(new CaretListener(){

      @Override
      public void caretUpdate(CaretEvent e) {
        l.actionPerformed(new ActionEvent(e.getSource(), -1, e.toString()));
      }}
View Full Code Here

      panel.add(labelNumero,BorderLayout.WEST);
      panel.add(labelFile,BorderLayout.NORTH);
      setText();

      jta.setAutoscrolls(true);
      jta.addCaretListener(new CaretListener() {
        int prec=0;
        @Override
        public void caretUpdate(CaretEvent e) {
          int now=jta.getLineCount();
          if(now!=prec){
View Full Code Here

    mCentralPanel.setDividerLocation(0.8);
    mCentralPanel.setContinuousLayout(true);
    contentPane.add(mCentralPanel, BorderLayout.CENTER);
    mStatus = new JLabel();
    contentPane.add(mStatus, BorderLayout.SOUTH);
    mScriptTextField.addCaretListener(new CaretListener() {
      public void caretUpdate(final CaretEvent arg0) {
        final int caretPosition = mScriptTextField.getCaretPosition();
        try {
                  final int lineOfOffset = ActionUtils.getLineNumber(mScriptTextField, caretPosition);
                  mStatus.setText("Line: " + (lineOfOffset + 1) + ", Column: "
View Full Code Here

      this.textArea.setTextAntiAliasHint("VALUE_TEXT_ANTIALIAS_ON");
      this.textArea.setSyntaxEditingStyle(RSyntaxTextArea.SYNTAX_STYLE_PYTHON);

      // Start the timer when the caret is moved in the document.
      this.codeEvalTimer.setRepeats(false);
      this.textArea.addCaretListener(new CaretListener()
      {
         @Override
         public void caretUpdate(CaretEvent e)
         {
            codeEvalTimer.restart();
View Full Code Here

    statusTextField.setEditable(false);

    scrollPane = new JScrollPane();

    editorPane = new EditorPane(scrollPane.getViewport());
    editorPane.addCaretListener(new CaretListener() {
      public void caretUpdate(CaretEvent e) {
        updateStatus(getRow(e.getDot(), editorPane), getColumn(e.getDot(), editorPane));
      }
    });
View Full Code Here

TOP

Related Classes of javax.swing.event.CaretListener

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.