Home » Enterprise Java » Page 117

Enterprise Java

Dynamic FlexTable Example

With this example we are going to demonstrate how to create a Dynamic FlexTable example using the Google Web Toolkit, that is an open source set of tools that allows web developers to create and maintain complex JavaScript front-end applications in Java. To create a FlexTable example one should perform the following steps: The DynamicFlexTable class implements the com.google.gwt.core.client.EntryPoint interface to ...

Read More »

Create MenuBar Example

This is an example of how to create a MenuBar using the Google Web Toolkit, that is an open source set of tools that allows web developers to create and maintain complex JavaScript front-end applications in Java. Creating a MenuBar implies that you should: The MenuExample class implements the com.google.gwt.core.client.EntryPoint interface to allow the class to act as a module ...

Read More »

Metro Web Service Example

package com.wordpress.jdevel.ws; import java.io.File; import java.io.FileFilter; import java.io.FilenameFilter; import java.util.ArrayList; import java.util.List; import javax.jws.WebService; import javax.jws.WebMethod; import javax.jws.WebParam; @WebService(serviceName = "Music") public class Music { private static final File FOLDER = new File("D:/TEMP/SONGS"); @WebMethod(operationName = "listSongs") public Song[] listSongs(@WebParam(name = "artist") String artist) { List<Song> songs = new ArrayList<Song>(); System.out.println("ARTIST: " + artist); if (artist != null) { File folder ...

Read More »