Class StartupProgress

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.util.EventListener

    public final class StartupProgress
    extends java.lang.Object
    implements java.awt.event.ActionListener
    Simple log window for Startup progress (waiting for clients)
    Author:
    Clemens Katzer
    • Field Detail

      • SHOWUP_DELAY

        private static final int SHOWUP_DELAY
        The time the window takes to show itself. This is a number of milliseconds to wait before showing the window in this class is shown. This means that in local games where everyone is there straight away the window will never be visible.
        See Also:
        Constant Field Values
      • logFrame

        private KFrame logFrame
      • text

        private final java.awt.TextArea text
      • pane

        private final java.awt.Container pane
      • server

        private Server server
      • b

        private javax.swing.JButton b
      • autoCloseCheckBox

        private final javax.swing.JCheckBox autoCloseCheckBox
      • showUpTimer

        private final javax.swing.Timer showUpTimer
    • Constructor Detail

      • StartupProgress

        public StartupProgress​(Server server)
    • Method Detail

      • append

        public void append​(java.lang.String s)
      • getFrame

        public javax.swing.JFrame getFrame()
      • disableAutoClose

        public void disableAutoClose()
        Server startup calls this so that possible warning message can be noticed.
      • setCompleted

        public void setCompleted()
      • dispose

        public void dispose()
      • cleanRef

        public void cleanRef()
      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent e)
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener
      • tooOldClient

        public void tooOldClient​(java.lang.String clientName)