netbeans

NullPointerException in NetBeans 6.5 IDE itself

When I use NetBeans for almost any task (in particular, attempting to open a project), a red minus sign in the bottom right corner of the IDE starts blinking and I get the following NullPointerException error when I click it. Unfortunately I cannot reinstall NetBeans since I am using a shared computer lab account. java.lang.NullPointer...

jVi in NetBeans

Hi guys. I'm choosing what to use: Eclipse or NetBeans. NetBeans has better vim plugin - jVi, but, as I see, it doesn't work with my own ~/.vimrc file. But in eclipse and VimPlugin for it everything is perfect. So are there any ways to use my vimrc settings for NetBeans with jVi? ...

Split a complex GUI window into several files in Netbeans

After building the application GUI, I realised it was a little bit too complex and I could reuse some of the Swing components. The result is a complex class with many anidated JPanels. My question is: does Netbeans provide a way to split a JPanel and its children components into a different class? If I do it by hand, will the GUI desig...

JTree of objects?

Hello, How I can implement dynamic Jtree, which shows created instances of clases? For example, I can create new Book(name) in my app. In every book can be chapters = ArrayList of Chapter. And now How I can do a jtree from it? ...

Netbeans + Facelets + Jboss EL

I've got a problem with JBossEL in NetBeans. Jboss EL provides method execution besides java bean binding. So th code : <h:outputText value="#{welcomeController.getWelcome(request)}" /> is correct and works fine. But NetBeans shows me an error: The function getWelcome must be used with a prefix when a default namespace is not spec...

AccessControlException when trying to redeploy webapp to Tomcat using Netbeans

I'm getting the following error trying redeploy an webapp on Tomcat from within Netbeans 6.8. It has probably something to do with the new deploy on save and hot swap functionality. Any ideas how to resolve this issue? INFO: Error registering wrapper with jmx StandardEngine[Catalina].StandardHost[localhost].StandardContext[/CubeAdSaSim2...

How to do something like listener of creating instances in other module?

Hello, I have module GUI, which has JTRee. And 2nd module creates ArrayLists of my own defined objects, which have some structure. For example car = new Car(); car.addEngine(new Engine("eng")); car.getEngine("eng").addWheel(new Wheel()); How to do my JTree in GUI module listens creating of objects in 2nd module and adding it to JTree? ...

Java Swing positioning elements differently in different operating systems.

I have written a Java Desktop Application that runs in Windows, Mac OS X, Ubuntu and Open Suse. I am having issues with is positioning thing differently in Linux. I developed the application with NetBeans using the designer, it looks as I would expect in Windows and Mac OS X, but in the Linux distros certain label controls have shifted ...

Package <blah> does not exist error - NetBeans 6.8 & Windows 7

I'm using NetBeans 6.8 on Windows 7. I upgraded from WinXP and NetBeans 6.7. Now my existing java web app project is no longer able to import/find the packages I've developed - I receive a 'Package ,blah. does not exist' and yet the packages do exist, worked fine in NetBeans 6.7 and the project still compiles and runs OK. I've tried ch...

how to place a button within a table in Java ?

Hi all , In the properties windows , we come across buttons in a table cell < as in font property's row , a button can be clicked on to set font properties > . Is there a way to insert a button in a Jtable 's second column < which i've created using netbeans >.. how to do that , if it is possible ? ...

setting layout of output windows in netbeans

Hello all, Is there a way to set the location of the output windows even before running.. My project has more than two forms , and i would like to display them in a non-overlapped fashion , and set their layout beforehand. ( I'm using netbeans..) ...

How to debug if using the java.io.Console class (netbeans).

The java.io.Console class requires there to be a Console device (window). How can I debug if I am using this class? I'm using netbeans IDE. UPDATE: I figured out how to wrap Sysytem.in with a InputStreamReader and then a BufferedReader. This works even without a Console window, so I can use it instead. If anyone still answers the ...

What's ideal debugging setup? window placement etc.

I am interested in knowing Debugging setup that'll allow a programmer to be most productive. Assuming knowledge about debugging in general. I am mainly interested in knowing how and where you place different windows like the variables window, code window, the stack. Also possibly the relative size of different windows. I'd prefer if the...

How to Install Netbeans form independent zips?

I downloaded these zip files from the link http://netbeans.org/downloads/zip.html with the hope that this way I will have a fine grained control over the installation process. But I stand clueles. I can't tell how to install Netbeans from these, there is no installation guide for this. Any ideas how to install Netbeans this way. Edit:...

I would like to ask if netbeans IDE is alright to use in GUI building?

is that alright for the programming industry? when you are using the 'auto generated codes' ? ...

How to have CVS files in different directory than source files in NetBeans?

I have a project in NetBeans which haven't used CVS until now. Let's say the directory with source files is called /www/source_files and directory with project files /www/project_files. Module in repository is called differently than source files directory. When I'm trying to check out CVS, it forces me to create a directory called exact...

Using NetBeans for PHP, outputting XML rather than HTML, Netbeans sees errors

I'm using NetBeans to develop a PHP app, and it works just fine for any PHP pages which output HTML. However, some of my PHP scripts output XML and (more specifically) KML. NetBeans doesn't seem to understand this, and I get a load of "invalid content" errors in the IDE, as it expects me to be outputting proper HTML code. Is there som...

How to remove items from menu in netBeans platform?

Hello, I have module application. When I run it, the main window of that app has quite complex menu. How to remove some items from menu? ...

How to modify/add code to the initComponents() method in Java on Net Beans?

How to modify/add code to the initComponents() method in Java on Net Beans? When I try to add any line of code this area seems to be like read only and it's highlighted in gray! It's for security probably, but I suppose there is a way to disable that. ...

how to create internal frame in netbeans platform?

I created class NewProject extends JInternalFrame. Then I create New...Action named "NEW", localised in File menu. I put code NewProject p = new NewProject(); p.setVisible(true); to the ActionPerformed method of the action. But when I run the module and click "NEW" in file menu, nothing appears. Where can be problem? EDIT: I partially...