mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-10 10:20:44 -07:00
Remove RC menu from uninstalled plugins
This commit is contained in:
parent
c74e5f2a4d
commit
5dd299ecdd
2 changed files with 33 additions and 11 deletions
|
|
@ -32,6 +32,19 @@ class CustomSearchField(private val parentPanel: JPanel, private val onSearch: (
|
|||
}
|
||||
}
|
||||
|
||||
// Method to set the text programmatically
|
||||
fun setText(newText: String) {
|
||||
text = newText
|
||||
SwingUtilities.invokeLater {
|
||||
repaint()
|
||||
}
|
||||
}
|
||||
|
||||
// Method to get the current text
|
||||
fun getText(): String {
|
||||
return text
|
||||
}
|
||||
|
||||
init {
|
||||
preferredSize = Dimension(230, 30) // SEARCH_FIELD_DIMENSION
|
||||
background = WIDGET_COLOR // COLOR_BACKGROUND_DARK
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue