Skip to content

Commit

Permalink
Merge pull request #17 from thinkAmi-sandbox/feature/replace_to_Searc…
Browse files Browse the repository at this point in the history
…hTextField

replace to SearchTextField
  • Loading branch information
thinkAmi committed Mar 14, 2024
2 parents af677d6 + 5db441b commit c638f30
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -2,7 +2,7 @@ package com.github.thinkami.hellojetbrainsplugin.ui

import com.github.thinkami.hellojetbrainsplugin.actions.SettingsAction
import com.intellij.openapi.ui.DialogPanel
import com.intellij.ui.components.JBTextField
import com.intellij.ui.SearchTextField
import com.intellij.ui.dsl.builder.Cell
import com.intellij.ui.dsl.builder.panel
import com.intellij.ui.table.JBTable
Expand All @@ -12,7 +12,7 @@ import javax.swing.event.DocumentListener
class AppleTableContent {
var contentPanel : DialogPanel
lateinit var myTableModel: Cell<JBTable>
lateinit var searchText: Cell<JBTextField>
lateinit var searchText: Cell<SearchTextField>
val appleTableModel: AppleTableModel

init {
Expand All @@ -24,8 +24,8 @@ class AppleTableContent {
}
row {
label("Search text")
searchText = textField()
searchText.component.document.addDocumentListener(object: DocumentListener {
searchText = cell(SearchTextField())
searchText.component.addDocumentListener(object: DocumentListener {
override fun insertUpdate(e: DocumentEvent?) {
handleChange()
}
Expand Down

0 comments on commit c638f30

Please sign in to comment.