TextField UI Theme change issue

已回答

I have a TextFieldWithCompletionProvider in my toolwindow. When I change the theme, theme change is not reflecting for the text field. I have tried using Look and feel change listener to repaint/updateUI, still the theme change doesn't reflect. 

public void lookAndFeelChanged(@NotNull LafManager source) {
textFieldWithCompletion.updateUI();
textFieldWithCompletion.repaint();
}


I tried to get the component as well as the editor component to repaint. Please assist. What am I missing here?

0

There is no such class TextFieldWithCompletionProvider.  Please specify exact FQN of the UI component and describe how it is embedded into the tool window UI.

0

Sorry. FQN is com.intellij.util.textCompletion.TextFieldWithCompletion.
I have included it in the JPanel with gridbag layout along with few components like JBLabel.  This JPanel forms the top panel of my toolwindow's BorderLayoutPanel
 

0

This sounds strange. Could you please specify your OS and IDE version as well? Is your plugin (sources) available somewhere? Thanks.

0

请先登录再写评论。