Tuesday, December 29, 2009

Netbeans Subversion plug-in update

Netbeans integrated subversion client for Netbeans 6.5 works along with TortoiseSVN 1.5.9.
After upgrading to TortoiseSVN 1.6.0 and above this issue will come up :
Netbeans integrated subversion client (being a unsupported client version for TortoiseSVN 1.6.0 and above) will fail to recognize files from the repository as a result of which committing, updating, checking out of files / folders wont be possible.

To solve the issue follow either of the two steps mentioned below:
  1. Downgrade TortoiseSVN 1.6.0 to TortoiseSVN 1.5.9
  2. Upgrade Netbeans integrated subversion client
To Upgrade Netbeans integrated subversion client follow the below steps :
  • Go to Tools -> Plugins -> Installed -> Select Subversion 1.5 for Windows (Category - Bridges) -> Click on Uninstall.
  • Download latest zip file for TortoiseSVN.
  • Unzip the downloaded file.
  • Go to Tools -> Options ->Miscellaneous -> Versioning -> Select subversion -> Copy the bin folder's path found in the unzipped file -> Paste that in "Path to the SVN executable File:" -> Ok -> Restart Netbeans


20 Biggest IT employers in India in 2009 (29 Dec 2009)

  1. Tata Consultancy Services
  2. Infosys Technologies
  3. Wipro Ltd
  4. Cognizant Technology Solutions India
  5. HCL Technologies
  6. Hewlett-Packard India
  7. MphasiS Ltd
  8. Intelenet Global Services Ltd
  9. IBM-Daksh
  10. Genpact India Pvt Ltd
  11. Tech Mahindra
  12. Aegis Ltd
  13. WNS Global Services (P) Ltd
  14. Firstsource Solutions Ltd
  15. CSC India Pvt Ltd
  16. Patni Computer
  17. Larsen & Toubro Infotech Ltd
  18. Hinduja Global Solutions Pvt Ltd
  19. Oracle Financial Services Software Ltd
  20. Convergys India Services

Friday, December 18, 2009

JTabbedPane for Netbeans Desktop Application

If any desktop application created in netbeans is using several tabs. Then each time the application is started, it will show the last selected tab. Even , by initially calling setSelectedIndex(int index) methodof JTabbedPane wont work. To resolve this issue following steps needs to be followed :Go to the class which extends SingleFrameApplication (,i.e,having public static void main).Update the overridden method shutdown() by selecting the default tab before super.shutdown() is called.

Writing resource file (I18N)

  • "\\" stands for "\"
  • "\n" stands for the newline character, U+000A
  • "\t" stands for the horizontal tab character, U+0009
  • "\ " stands for the space character, U+0020
  • Lines whose first non-whitespace character is "#" are comment lines and are ignored.
  • "\#" stands for the number sign character, U+0023.
  • This is only needed if a line within a heredoc string starts with this character.
  • Lines that contain only whitespace characters and are not part of a heredoc string are ignored
  • Leading and trailing whitespace is trimmed from both key and value
Source

setResizable for Netbeans Desktop Application

  • Go to the class which extends SingleFrameApplication (,i.e,having public static void main)
  • Update the overridden method startup() by calling this.getMainFrame().setResizable(boolean resizable) after show(View view) is called.

Tuesday, November 24, 2009

ClassFormatError

ALERT: java/lang/ClassFormatError: Bad version information.
If when launching a Midlet in netbeans emulator the above errors, then check if any jar file is being used which is created using Java 1.5 and above.

Wednesday, November 11, 2009

Null Pointer Exception in Java

Item array in J2ME : While initializing a Form object in J2ME application the corresponding label as well as items array might not be null. But this can throw NullPointerException if any one element of items array is null.

Hashtable : If Hashtable is used in our application ,then any manipulation of its reference prior creating the object will throw NullPointerException.

String array : If String array is initialized at the beginning, but , if at a later point , if that String array calls a function which returns null, then , trying to get the length of that String array will throw NullPointerException