I made a Setting panel, in which I am setting color for Main table cell by pressing set button in setting window. There are two combo box button greater and less. The value greater than the value in combo box will be colored in a particular color and less than in same way. But the colors are not rendered after pressing SET, but it is rendered after minimizing and then maximizing the main window.
Below is actionPerformed() method:
public void actionPerformed(ActionEvent e) {
if(e.getSource()==btnCancel)
{
MainUI1.isShowModel=true;
//mf.setVisible(true);
this.dispose();
}
if(e.getSource()==btnset)
{
// MainUI1.isShowModel=true;
ColorSettings.setColor();
validate();
}