TransJam Collaboration Server
TransJam Client Programming Tutorial
We then ask the ClientHelper to login(). This puts up a dialog asking the user for their name. The start() method can then return. The user will not actually be logged in until they finish the dialog.
// Create a panel for chatting with others. setLayout( new BorderLayout() ); add( "Center", chatPanel = new ChatPanel( client, 10, 70, true ) ); chatPanel.start(); // Login to the server using a popup Dialog. helper.login(); } // Make the GUI visible. getParent().validate(); getToolkit().sync(); }Note the odd code at the end. This is needed because some browsers do not display the components of an Applet until you validate the parent and flush all the graphics commands. If the AWT components in your Applet don't show up until you resize the window, then try this little trick.
(C) 2002 SoftSynth.com