Java Reference
In-Depth Information
Figure 15.3
The client interface allows the user to initiate a connection with the
server at the host address given in a text field. A user name is given to the server in a
log in procedure. The data obtained from the server is displayed in two histograms.
The top one shows the values in each data channel for a reading of a set of data. The
lower histograms displays the distribution of values over a number of data set
readings for a channel selected by the user via the text field labeled “Channel”.
...
Skip GUI setup in the
DataClient . . .
public void actionPerformed (ActionEvent e)
{
Object source
=
e.getSource ();
if (source
==
fStartButton)
{
if (fStartButton.getText ().equals (
"
Start
"
))
start ();
else
stop ();
}
Search WWH ::
Custom Search