Class NetworkClientDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class NetworkClientDialog extends KFrame
Startup code for network Client
Author:
David Ripton
See Also:
  • Field Details

    • LOGGER

      private static final Logger LOGGER
    • mutex

      private final Object mutex
    • netclientOptions

      private final Options netclientOptions
    • stOptions

      private final Options stOptions
    • whatNextManager

      private final WhatNextManager whatNextManager
    • playerName

      private String playerName
    • hostname

      private String hostname
    • port

      private int port
    • saveWindow

      private final SaveWindow saveWindow
    • nameBox

      private final JComboBox nameBox
    • hostBox

      private final JComboBox hostBox
    • portBox

      private final JComboBox portBox
  • Constructor Details

  • Method Details

    • initServerNames

      public static String initServerNames(String wantedHost, Set<String> hostChoices, Options netclientOptions)
    • getMinimumSize

      public Dimension getMinimumSize()
      Overrides:
      getMinimumSize in class Container
    • getPreferredSize

      public Dimension getPreferredSize()
      Overrides:
      getPreferredSize in class Container
    • dispose

      public void dispose()
      Overrides:
      dispose in class KFrame
    • doRunNetClient

      private void doRunNetClient()
    • saveHostname

      private void saveHostname(Options netclientOptions)
      Put the chosen hostname as first to the LRU sorted list in NetClient cf file.