Wednesday, December 17, 2008
spam in gmail
Thursday, November 20, 2008
ColdFusion string operations
Thursday, November 13, 2008
Adding events to widgets
Tuesday, November 11, 2008
CardPanel
Monday, October 27, 2008
SCSNI
Friday, October 24, 2008
keyboard events listener gxt
Thursday, October 23, 2008
submitting data from formPanel gxt
Wednesday, October 22, 2008
populating the combo box EXT-GWT
- Firstly we need to define the ModelType of the data that is being extracted from the CFM file, with the root.
- Next the JSONReader has to be set to the ModelType which specifies the type of the data that has to be stored in the combo box Store.
- We then need to set up the HttpProxy for the connection to be established with the database. This proxy contains the requestbuilder which actually builds the request String with a "post" or a "get". The header for the request builder should be set which i am not pretty sure why we are doing it, but if doesnot display the output when it is not set.
- Then the loader for the combo box has to be set with the proxy which tells about the connections to the database and the JSONReader which talks about the format of the expected text.
- Finally the store is set with the loader, which is assigned to the combo box.
Wednesday, August 27, 2008
Google Web Toolkit (GWT)
Thursday, May 1, 2008
game development
Wednesday, April 30, 2008
wow!! Accepted
Tuesday, April 22, 2008
Optima- An Ontology Alignment Tool
Wednesday, April 2, 2008
jnlp and web start
- jnlp tag is used to specify that this is a jnlp file along with the version. The default version is 1.0.
- codebase within the jnlp tag contains information about the base url that forms a basis for all the hrefs used in the file. So base url forms the base directory for all the files.
- The href within the tag contains a reference to the jnlp file.
- First tag is the title tag which contains the name of the application
- Vendor tag contains the information about the vendor for the application.
- homepage refers to a home page that is related to the application or has information about the application.
- The description field is used for a brief description about the application.
- Starts with the version of java the application can start running fine.
- The next jar specification tells us about the application jar that contains the main class and is used to load and run the application. This also contains a main attributes, specifying that to true helps web start to identify that this jar contains the main class.
- All the subsequent jar contains information about the libraries that needs to be included.
Monday, March 17, 2008
JFileChooser setLocation
- Creating the class as specified in the documentation with all the required properties set to the dialog within the createDialog method.
- creating the object of this class and calling the createDialog method
- Using the showOpenDialog of JFileChooser using the syntax
Sunday, March 9, 2008
GridBag Layout
Wednesday, February 13, 2008
Generics in Java
I have been working on collections for over an year now and have no idea of what generics are. Today I was going through the release notes of tiger java and I found out about them.
Generics are the type specification included in collections to get rid of unsafe code.
Prior to generics, compiler has no idea about what kinds of objects are stored in the collections and thus a runtime error is generated instead of a compile time error.
Generics are provided so that the collections can be checked by the compiler and reports errors for any inconsistencies in the code.
Prior to the introduction of generics ArrayList are used as
ArrayList list = new ArrayList();
This makes the code unclear as what is stored in ArrayList
To access the list each time the object has to be cast to a specified type and then consumed.
Whereas from java 1.5 ArrayList can be defined as
ArrayList
This specifies that the list defined stores only values of type String. Thus making the code much more readable.Explicit casting is also not required as the compiler understands that the list contains
objects of type String.
courtesy: Generics
Help in identifying changes, corrections and violations would be greatly appreciated.