forked from External/mage
GUI, preferences: improved proxy tab, removed un-used servers list
This commit is contained in:
parent
3b188340fa
commit
e3dee4eac1
4 changed files with 117 additions and 319 deletions
|
|
@ -441,4 +441,15 @@ public final class GuiDisplayUtil {
|
|||
}
|
||||
return types.trim();
|
||||
}
|
||||
|
||||
public static void setPanelEnabled(JPanel panel, Boolean isEnabled) {
|
||||
panel.setEnabled(isEnabled);
|
||||
Component[] components = panel.getComponents();
|
||||
for (Component component : components) {
|
||||
if (component instanceof JPanel) {
|
||||
setPanelEnabled((JPanel) component, isEnabled);
|
||||
}
|
||||
component.setEnabled(isEnabled);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue