Posts

Showing posts with the label GWT

How to make web based a wordpad using gwt

Image
gwt is one of the best ways to develop user frendly web applications this is my first project done using gwt i want be able to put the complete code because its too long but i'll put a few useful codes Creating a menuBar(this goes in the class that extends EntryPoint) MenuBar menu = new MenuBar(); menu.setAutoOpen(true); menu.setWidth("500px"); menu.setAnimationEnabled(true); // Create the file menu MenuBar fileMenu = new MenuBar(true); fileMenu.setAnimationEnabled(true); menu.addItem(new MenuItem(constants.cwMenuBarFileCategory(), fileMenu)); String[] fileOptions = {"New","Open","Save","Save As","Print","Print Preview","Exit"}; for (int i = 0; i <fileOptions.length; i++) { fileMenu.addItem(fileOptions[i], menuCommand); fileMenu.addSeparator(); } // Create the edit menu MenuBar editMenu = new MenuBar(true); menu.addItem(new MenuItem(constants.cwMenuBarEditCategory(), editMenu)); String[] edi...