Class NetworkSettingsPanel

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
net.adoptopenjdk.icedteaweb.client.controlpanel.panels.NetworkSettingsPanel
All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class NetworkSettingsPanel extends JPanel implements ActionListener
This is the pane used with creating a JDialog version. This allows changing the network configuration: Proxy
See Also:
  • Field Details

  • Constructor Details

    • NetworkSettingsPanel

      public NetworkSettingsPanel(DeploymentConfiguration config)
      Creates a new instance of the network settings panel.
      Parameters:
      config - Loaded DeploymentConfiguration file.
  • Method Details

    • addComponents

      protected void addComponents()
      This adds the components to the panel.
    • enablePanel

      private void enablePanel(JPanel panel, boolean enable)
      Enable/Disable the panel and all its children recursively.
      Parameters:
      panel - JPanel which needs to be enabled or disabled.
      enable - true if the panel and its children are to be enabled, false otherwise.
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener
    • setState

      private void setState()
      This enables and disables the appropriate panels.
    • getPortNumberDocument

      public static PlainDocument getPortNumberDocument()
      Creates a PlainDocument that only take numbers if it will create a valid port number.
      Returns:
      PlainDocument which will ensure numeric values only and is a valid port number.