netbeans

Java Swing Scrollpane in NetBeans

I have Java application which adds JTextFields @ runtime to JPanel. Basically user clicks a button and new JTextField is added, clicks again added again... Each new JTextField is directly below the previous one. Obviously I run out of space pretty soon so I'm trying to use JScrollPane and thats where the hell begins, because it just do...

Uppercase code completion in Netbeans

Can I configure Netbeans to autocomplete code when I type the capital letters? E.g. Z displays completion list starting with the letter Z, e.g. Zend_…, then I type vh, and the list is limited to this items, which have the capital letters Z, V, H in it, e.g. Zend_View_Helper_…. Does Netbeans support this bevaviour? ...

Netbeans C/C++ JavaDoc code-completion

Hello, I am developing C++ in NetBeans 6.7.1. When I press CTRL + space for autocomplete there is shown only method's signature. I am using JavaDoc for commenting my code but NetBeans doesn't show it. I have installed Doxygen plugin but it is only for generating complete documentation. Is there any way how to force the IDE to show sign...

How do I pass an enviroment variable to a Netbeans Makefile on Ubuntu?

I'm using Netbeans on Linux (Ubuntu 9.04) to build a C project. How do I pass in an environment variable so that's it's visible to the Makefile? If I do a normal export MYVAR="xyz" and then run make from the command line this works fine of course. But Netbeans doesn't seems to use the .bashrc environment, so if I click "build" in Netb...

How can I use an external jar in an Android project in NetBeans?

I need to create an Android library which I can include as a jar in any Android application. I use NetBeans 6.8, the nbandroid plugin, and the Android SDK. The steps I took so far are: 1) Create the library project, with android.jar included to have access to Android classes (the library uses android.util.Log and other Android classes)...

Netbeans 6.8 - Alternative compile and runtime jdks/jre versions

Hey, Have a scenario where i need to compile my project with jdk 1.5 but run it with jre 1.6. I can't find a way to switch the jre that is used when running my program. I read something about execution profiles in an earlier version of netbeans, but 6.8 doesn't seem to support this. Any ideas? Seems easy to do in eclipse. ...

NetBeans IDE under Oracle

Hello lads and ladies, I'm a bit freaked about what I just read. I did some research, as I want to start programming in Java, and I came to the conclusion that NetBeans is the best IDE for me because of its capable Swing GUI Designer and powerful reporting with Jasper Reports (iReport). Yet Oracle (who will soon buy Sun) doesn't seem ...

first servlet/jsp application, just need some clarifications

I first tried the spring mvc tutorial using eclipse, but got a bit frustration and just did the first few steps using netbeans. Netbeans, using a java web template, creates folders like: /webpages /webpages/meta-inf/ /webpages/web-inf/ /webpages/*.jsp /source packages /source packages/xxxx/xxx.java /test packages/ /libraries /configura...

install jee6 doc on netbeans

netbeans 6.8 ubuntu 9.10 i am able to build the sample applications, but the doc in the code assistant popup is missing (when type Ctrl + Space) how to fix this? ...

ServicesSearch an error comes in java as symbol not defined in netbeans

package com.intel.bluetooth.javadoc.ServicesSearch; import java.io.IOException; import java.io.OutputStream; import javax.microedition.io.Connector; import javax.obex.*; //import java.util.Vector; public class ObexPutClient { public static void main(String[] args) throws IOException, InterruptedException { String serverURL = null;...

How to use NetBeans to debug C++ libraries not compiled with NetBeans?

Hello, I am using NetBeans 6.8 on Redhat Linux. Does anyone know how to configure NetBeans to debug (step into) libraries not compiled with NetBeans? In my particular case, I'm trying to debug the VTK library which is built using cmake with the Debug flag set. I've written a C++ application that uses the shared libraries from VTK. A...

Ogre3D Basic Framework issue on Ubuntu

I have been trying to learn to use Ogre3D and have gotten to the stage where I want to start something more serious than the examples it comes with so I found and copied the Basic Ogre Framework I am using Ubuntu 9.10, but have compiled Ogre 1.7 from the Ogre3D website, I am using the Netbeans 6.8 IDE with the c++ plugin. The Basic Ogr...

Does the NetBeans CPU Profiler use Wall Clock Time or CPU Time?

Does the NetBeans CPU Profiler use Wall Clock Time or CPU Time? This is important to know, for example, when thinking about how I/O will be reflected in your profiling results. ...

Debugging PHP on NetBeans 6.8 without Apache

Hi all. Is it possible to debug PHP projects on Glashfish with NetBeans 6.8 without installing Apache server? After I press CTRL+F5 im getting 404 not found error. As ASP.NET developer I have (I think) similiar developer server bundled with Visual Studio, so there is no need to install any other server like IIS. Am I right that Glassfi...

NetBeans - Programatically Remove NotificationDisplayer Notifications

The NetBeans API provides the org.openide.awt.NotificationDisplayer class to create and show clickable notifications in the main status line. For example, NotificationDisplayer.notify(title, icon, detailsText, detailsAction); The user can dismiss a notification by clicking on the X; however, I would like to programatically clear the n...

if I open my spring app in eclipse and netbeans, will they both create their own files?

If I open my application in both eclipse and netbeans (having created the file layout using maven), will both eclipse and netbeans create their own project file? I know netbeans has an option of opening an existing project, but not sure if it will add files to my project? ...

Properties file isn't included in jar file when package Java application

I have developed Java desktop application using Netbeans. In my application, I used some properties files and I placed it under the Project folder so that I can access it by using code like that Properties props = new Properties(); props.load(new FileInputStream("config.properties")); But when I deploy and package my application to ...

org.jdesktop.application package doesn't exist

I was building a java desktop application from few days and all was going well. But today, when I opened the Netbeans and compiled a file, the following compilation error occrured: Compiling 9 source files to C:\Documents and Settings\Administrator\Desktop\EMS\build\classes C:\Documents and Settings\Administrator\Desktop\EMS\src\ems\EM...

Refactor Exception Handling

Ok i have sinned, i wrote too much code like this try { // my code } catch (Exception ex) { // doesn't matter } Now i'm going to cleanup/refactor this. I'm using NB 6.7 and code completion works fine on first writing, adding all Exception types, etc. Once i have done the above code NB do not give more help. Do you know a way t...

Can i use/import eclipse formatter in netbeans ?

We are using eclipse since long time. We have formater for each of our project. Now, some of us are moving to netbeans. Is it possible to migrate / sync / import eclipse formater to netbeans ? I tried importing eclipse project in netbeans. It does not import formater we used. ...