Grid is a two-dimensional structure on which the designers and developers can organize their components in a well and easy to understand manner. Grid class in the server-side API of Echo3 is having the same meaning as in other technologies. In Echo3 it has been provided in nextapp.echo.app package. Grid class is having two constructors to create grid component:
In this example we have created a Grid with the default size of 2 and have added two labels into them. We have created one GridServlet which extends the WebContainerServlet and invokes the GridApp by creating a new application instance of it. Here is the full example code of the application as given below:
GridServlet.java
package grid;
|
GridApp.java
package grid;
|
Output:

When user clicks on the button "Add a default grid of 2" it will invoke a new WindowPane and will add the default grid into it.

|
Recommend the tutorial |
Ask Questions? Discuss: Grid in Echo3
Post your Comment