| | |
| | | |
| | | public static void setComponentsColor(Container container) { |
| | | if(container instanceof JPanel) { |
| | | ((JPanel) container).setBackground(new Color(112, 181, 208)); |
| | | //((JPanel) container).setBackground(new Color(112, 181, 208)); |
| | | ((JPanel) container).setBackground(new Color(0,254,254)); |
| | | } |
| | | for (Component component : container.getComponents()) { |
| | | if (component instanceof JPanel) { |
| | | ((JPanel) component).setBackground(new Color(112, 181, 208)); |
| | | ((JPanel) component).setBackground(new Color(0,254,254)); |
| | | setComponentsColor((Container)component); |
| | | }else if(component instanceof JTabbedPane) { |
| | | ((JTabbedPane) component).setBackground(new Color(112, 181, 208)); |
| | | ((JTabbedPane) component).setBackground(new Color(0,254,254)); |
| | | setComponentsColor((Container)component); |
| | | } |
| | | } |