Up | Previous | Next |
The first that changes (slightly) is the client:
For all we should want to point out at this stage a client is a frame, hence a separate thread.
import java.awt.*; import javax.swing.*; public class Client extends JFrame { public Client() { this.setTitle("iceblox: client frame"); this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); this.setSize(300, 200); this.setVisible(true); } public void registerWith(ServerInterface server) { System.out.println("Registering with the server now..."); } }
Up | Previous | Next |