Loading delay component in Echo3

In the previous section of Echo3 tutorial you must have studied about how you can create a server-side application in the Echo3 web framework using the server side API.

Loading delay component in Echo3

In the previous section of Echo3 tutorial you must have
studied about how you can create a server-side application in the Echo3 web
framework using the server side API. Now in this example we have created an
application which will describe how to create delay component loading. To create
a delay component loading we have created two java classes DelayServlet.java
and DelayApp.java.

DelayServlet.java extends WebContainerServlet
and creates a new application instance by returning the DelayApp object.
DelayApp class extends the abstract class ApplicationInstance and it must
overrides the init() method. The method init() must return an object of type
Echo Window. Here we will be creating the object of ContentPane for adding
contents to the application window.

Button load =new Button("LOAD WINDOW");contentPane.add(load);

Above lines of code creates a Button and add it to the
ContentPane. Now on the button click we have called the action listener which
will describe that what action is to be performed when button is clicked. Here
is the code for action to be performed as given below.