javax.swing.JTextArea.selectAll()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(3.9k)|赞(0)|评价(0)|浏览(322)

本文整理了Java中javax.swing.JTextArea.selectAll()方法的一些代码示例,展示了JTextArea.selectAll()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTextArea.selectAll()方法的具体详情如下:
包路径:javax.swing.JTextArea
类名称:JTextArea
方法名:selectAll

JTextArea.selectAll介绍

暂无

代码示例

代码示例来源:origin: ron190/jsql-injection

((JTextArea) ((JScrollPane) MediatorGui.tabResults().getSelectedComponent()).getViewport().getView()).selectAll();

代码示例来源:origin: org.owasp.jbrofuzz/jbrofuzz

public void actionPerformed(final ActionEvent e) {
    area.selectAll();
  }
});

代码示例来源:origin: it.unibo.alchemist/alchemist-swingui

@Override
  public void mouseClicked(final MouseEvent e) {
    molecule.selectAll();
  }
});

代码示例来源:origin: freeplane/freeplane

@Override
  public void setValue(final String value) {
    mTextArea.setText(value);
    mTextArea.selectAll();
  }
}

代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable

@Override
 public void mouseClicked(MouseEvent e) {
  if ((e.getModifiers() & InputEvent.BUTTON1_MASK) != InputEvent.BUTTON1_MASK) {
   m_OutText.selectAll();
  }
 }
});

代码示例来源:origin: Waikato/weka-trunk

@Override
 public void mouseClicked(MouseEvent e) {
  if ((e.getModifiers() & InputEvent.BUTTON1_MASK) != InputEvent.BUTTON1_MASK) {
   m_OutText.selectAll();
  }
 }
});

代码示例来源:origin: Waikato/weka-trunk

@Override
 public void mouseClicked(MouseEvent e) {
  if ((e.getModifiers() & InputEvent.BUTTON1_MASK) != InputEvent.BUTTON1_MASK) {
   m_OutText.selectAll();
  }
 }
});

代码示例来源:origin: org.apache.airavata/airavata-messenger-client

public void addWholeMessage(String message) {
  jTextAreaWhole.append(message + "\n");
  jTextAreaWhole.selectAll();
}

代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable

@Override
 public void mouseClicked(MouseEvent e) {
  if ((e.getModifiers() & InputEvent.BUTTON1_MASK) != InputEvent.BUTTON1_MASK) {
   m_OutText.selectAll();
  }
 }
});

代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable

@Override
 public void mouseClicked(MouseEvent e) {
  if ((e.getModifiers() & InputEvent.BUTTON1_MASK) != InputEvent.BUTTON1_MASK) {
   m_OutText.selectAll();
  }
 }
});

代码示例来源:origin: org.apache.airavata/messenger-client

public void addWholeMessage(String message) {
  jTextAreaWhole.append(message + "\n");
  jTextAreaWhole.selectAll();
}

代码示例来源:origin: Waikato/weka-trunk

@Override
 public void mouseClicked(MouseEvent e) {
  if ((e.getModifiers() & InputEvent.BUTTON1_MASK) != InputEvent.BUTTON1_MASK) {
   m_OutText.selectAll();
  }
 }
});

代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable

@Override
 public void mouseClicked(MouseEvent e) {
  if ((e.getModifiers() & InputEvent.BUTTON1_MASK) != InputEvent.BUTTON1_MASK) {
   m_OutText.selectAll();
  }
 }
});

代码示例来源:origin: bcdev/beam

@Override
  public void actionPerformed(final ActionEvent e) {
    textArea.selectAll();
    textArea.requestFocus();
  }
});

代码示例来源:origin: Waikato/weka-trunk

@Override
public void setObject(Object ob) {
 // TODO Auto-generated method stub
 m_note = (Note)ob;
 m_textArea.setText(m_note.getNoteText());
 m_textArea.selectAll();
}

代码示例来源:origin: locationtech/jts

void btnSelect_actionPerformed(ActionEvent e) {
  txtGeomView.selectAll();
  txtGeomView.copy();
}

代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable

@Override
public void setObject(Object ob) {
 // TODO Auto-generated method stub
 m_note = (Note)ob;
 m_textArea.setText(m_note.getNoteText());
 m_textArea.selectAll();
}

代码示例来源:origin: org.owasp.jbrofuzz/jbrofuzz

@Override
public void actionPerformed(final ActionEvent cpEvent) {
  final String stringFile = 
    getFileFromPath(FileSystemTree.this.getSelectionPath());
  if(stringFile.startsWith(GR_PANEL)) {
    
    // An error occured
    Logger.log(stringFile, 4);
    
  } else {
    final JTextArea myTempArea = new JTextArea(stringFile);
    myTempArea.selectAll();
    myTempArea.copy();
  }
} // actionPerformed

代码示例来源:origin: UNIVALI-LITE/Portugol-Studio

@Override
  public void actionPerformed(ActionEvent e)
  {
    console.selectAll();
    console.copy();
    console.select(0, 0);
  }
};

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-mercurial

public void addNotify() {
  super.addNotify();
  HgModuleConfig.getDefault().getPreferences().addPreferenceChangeListener(this);        
  propertiesTable.getTableModel().addTableModelListener(this);
  listenerSupport.fireVersioningEvent(EVENT_SETTINGS_CHANGED);
  txtAreaValue.selectAll();
}

相关文章

JTextArea类方法