Class Command

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, Scrollable, SwingConstants

public class Command extends JTextField
A text-field component for entering and executing console-style commands within the CommuniDirect application.

Supported commands:

  • port --changedefault <value> — change and save the default port
  • port --changecurrent <value> — change the port and restart the server
  • send <ip> <port> <message> — send a message to a remote server
  • quit — exit the application
See Also:
  • Constructor Details

    • Command

      public Command(CommuniDirect communiDirect)
      Creates a command input field wired to the given application.
      Parameters:
      communiDirect - the main application instance