Pages

Thursday, April 24, 2008

Netbeans - Revert Deleted

Im editing and cleaning-up some of unused classes im my project using netbeans IDE, I accidentally delete some used classes. I was stand, it was a mistake(huh!). I go to Edit menu and click Undo but it wont work i cant still find the deleted class(HUH!). I RightClick the package where the deleted class reside, and i find Local History and REVERT DELETED.



Wheeewww..! Thanks for the feature of netbeans Local History , It is very usefull indeed.

Wednesday, April 23, 2008

Java SE 6 Platform: Top 10 Features

1. Web Services - Easy to use Web Service API's

2. Scripting - Ability to mix JavaScript Technology with Java

3. Database - Updated JDBC API's, all-Java Database JDK

4. More Desktop APIs - Swingworker, JTable sorting and Filtering, GroupLayout and more.

5. Monitoring and Management - Attach on demand

6. Compiler Access - API's to control the compiler

7. Pluggable Annotations - Define your own annotations

8. Desktop Deployment - Better Swing fidelity, tuned for Vista

9. Security - integration with native services

10. The Ilities: Quality, Compatability, Stablility - Faster more reliable and backwards compatible

Java Reference

Just to update something(hehehe...)

Java Extension Packages
import

Packages
package package_path.package_name

Common Extensions
java.awt, java.io, java.lang, java.util, javax.swing

Data Types
boolean, char, byte, short, int, long, float, double, String

Comments
//Single line Comment
/*Multiple line Comment*/


Arithmetic Operation
+(Addition), -(Subtraction), *(Multiplication), /(Division), %(Modulus)

Equality Operators
== (Equal To), != (Not Equal)

Relational Operators
> (Greater Than), < (Less Than), >= (Greater Than or Equal To), <=(Less Than or Equal To)

In-/Decremental Operators
++x(PreIncrement), x++(PostIncrement), --x(PostIncrement)

Logical Operators
&&(PreIncrement), X++(PostIncrement), --x(PreDecrement), x--(PostDecrement)

Escape Sequence
\n (newline)
\t (horizontal tab)
\r (carraige return)
\\ (backslash)
\" (double quote)

Other
?: (Conditional)
= (Assignment)

If Else
if(){
;
}
else{
;
}

Switch Case
switch(){
case