Showing posts with label netbeans. Show all posts
Showing posts with label netbeans. Show all posts

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


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.

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.

Wednesday, September 23, 2009

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.