Tabnine Logo
JBTextField.getDocument
Code IndexAdd Tabnine to your IDE (free)

How to use
getDocument
method
in
com.intellij.ui.components.JBTextField

Best Java code snippets using com.intellij.ui.components.JBTextField.getDocument (Showing top 2 results out of 315)

origin: GoogleCloudPlatform/google-cloud-intellij

public Document getDocument() {
 return getTextField().getDocument();
}
origin: SonarSource/sonarlint-intellij

public AddEditExclusionDialog(Project project) {
 super(project, false);
 this.project = project;
 setTitle("Add SonarLint File Exclusion");
 init();
 FileChooserDescriptor fileChooser = new FileChooserDescriptor(true, false, false,
  true, false, false);
 fileChooser.setRoots(project.getBaseDir());
 fileTextField.addBrowseFolderListener("Select File to Exclude",
  "Select the file which will be excluded from SonarLint analysis",
  project, fileChooser);
 FileChooserDescriptor directoryChooser = FileChooserDescriptorFactory.createSingleFolderDescriptor();
 directoryChooser.setRoots(project.getBaseDir());
 directoryTextField.addBrowseFolderListener("Select Directory to Exclude",
  "Select the directory which will be excluded from SonarLint analysis",
  project, directoryChooser);
 DocumentListener docListener = new DocumentAdapter() {
  protected void textChanged(final DocumentEvent e) {
   updateOk();
  }
 };
 fileTextField.getTextField().getDocument().addDocumentListener(docListener);
 directoryTextField.getTextField().getDocument().addDocumentListener(docListener);
 globTextField.getDocument().addDocumentListener(docListener);
 ActionListener listener = e -> updateControls();
 directoryRadioButton.addActionListener(listener);
 globRadioButton.addActionListener(listener);
 fileRadioButton.addActionListener(listener);
 updateControls();
}
com.intellij.ui.componentsJBTextFieldgetDocument

Popular methods of JBTextField

  • getText
  • setText
  • getEmptyText
  • <init>
  • addFocusListener
  • selectAll
  • setEnabled
  • addMouseListener
  • getSize
  • getWidth
  • grabFocus
  • isFocusOwner
  • grabFocus,
  • isFocusOwner,
  • setBorder,
  • setCursor,
  • setEditable,
  • setPreferredSize

Popular in Java

  • Making http requests using okhttp
  • getApplicationContext (Context)
  • setScale (BigDecimal)
  • putExtra (Intent)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now