Hello,
In my strategy I create panel with few SWING components, so I do something like this:
public void onStart(final IContext context) throws JFException {
this.context = context;
final JPanel panelMain = context.getUserInterface().getBottomTab(tabName);
panelMain.setLayout(new GridBagLayout());
GridBagConstraints c = new GridBagConstraints();
c.ipadx = 2; c.ipady = 2; c.insets = new Insets(2, 2, 2, 2);
c.fill = GridBagConstraints.BOTH;
btnRefresh = new JButton("Refresh");
c.gridx = 1; c.gridy = 1; panelMain.add(btnRefresh, c);
}
Unfortunately all SWING components I add have colors from light theme. How to make them have colors from dark theme?
Regards,
FXer