Wednesday, September 23, 2009

DOJO include when Stores and I18N are used

<script type="text/javascript" src="dojo.js" djconfig="isDebug: false, parseOnLoad: true, usePlainJson: true, extraLocale: ['en-us', 'ja-jp', 'es-es', 'zh-cn', 'fr-fr', 'de-de']"></script>

Window events using DOJO

dojo.connect(window, 'resize', function() { //code})
dojo.connect(window, 'onload', function() { //code})

Viewing javadocs in netbeans with minimal key press

First Way:
  • Mouseover any member in the navigator window.
  • Press ctrl+F1 when javadocs is shown in a small popup.
  • Separate window is opened for javadocs.
  • Then while scrolling, appropriate documentations are shown as and when the cursor is in any member.
Second Way:
  • Windows --> Others --> Javadoc.
  • Separate window is opened for javadocs.
  • Then while scrolling, appropriate documentations are shown as and when the cursor is in any member.

Monday, September 7, 2009

J2ME InvalidJadException 36 while run

Exception:
com.sun.kvem.midletsuite.InvalidJadException: Reason = 36 Error in opening jar file:
Troubleshooting:
Right click on project - Application Descriptor - Attributes
Check if extra attributes other than following are there :
MIDlet-Name
MIDlet-Vendor
MIDlet-Version
If they are present remove those and again build and run.
If problem persists search in forums and add the solutions as a comment in this blog.

Opening editor in a new window from netbeans

Press "Alt+Shift+D " from current file
Repeat the process to restore the file to netbeans editor.