netbeans

Type casting of class variables in PHP/Symfony/Netbeans

Hello! Whenever I need to use the intelligence of Netbeans to show properties/methods, I explicitly declare a new object and then re-reference it. Something like.. $moo = new Cow(); $moo = Cow::getById(1); $hasMilk = $moo->hasMilk(); Is there a way I can avoid this by type-casting the variable when getting it? Or atleast a...

NetBeans- Java Fx(mobile) could'n buld the projecjt..

I have an error in NetBeans(mobile business application) I have installed JDK (latest version jdk1.6.0_21) After this I had an error: Cannot run program "C:\Program Files (x86)\Java\jre6\bin\javac.exe": CreateProcess error=2, The system cannot find the file specified BUILD FAILED (total time: 1 second) Then in "Advanced system setting...

Breaking up Java Swing classes in Netbeans palette

Hello, I would like to know the best method of breaking up large Java Swing classes. Some of mine are quite large and I would like to begin the process of properly modularizing my code. I saw that I could add my classes to Netbeans' palette but the problem is they are not showing me a graphical representation of what it will look like...

Is there a call tree view available for jvisualvm or NetBeans profiler?

JProfiler offers a live call-tree view so you can see what's using CPU in real-time and drill down for the details. Reset the counts to zero at any time, rinse, repeat. I'm currently without that tool, and trying to get by with free/open alternatives. jvisualvm and the NetBeans profiler have a static snapshot call-tree and a live flat v...

Which java compiler is used by NetBeans?

If I tell NetBeans (6.9) to compile on save, NetBeans warns me the compiled classes are not identical to classes compiled with JDK's compiler. The Java platform is set to "JDK 1.6" in the same dialog. Which compiler is used by NetBeans? Why doesn't NetBeans use the JDK compiler? ...

C++ Netbeans cout error

Hi! I never had these errors in dev C++. When i use cout in Netbeans its giving me no match for operator error. This is my program #include <cstdlib> #include <fstream> #include <iostream> using namespace std; int main() { //read file fstream fileStream; string tempStr; string strText; fileStream.open("fincode.htm", i...

Deploying minified versions JS/CSS using Netbeans

I'm a kind of big rookie, using Netbeans 6.9 as a PHP dev tool. Currently I do develop and test locally on my PC using XAMPP/Apache/MySQL and once done, use Netbeans "upload" facility to the production server on the web. I was wondering if there's a Netbeans tool capable of minifying js/CSS files on upload, or a tool to minify the whol...

Arrays.asList compilation problem

I've used Arrays.asList dozens if not hundreds of times without problem. All of a sudden previously compiling code is failing to compile after switching to NetBeans 6.9 from 6.8. Here's a few lines in question: Node n = new NickNode(4,5); Node m = new NonLocatableNode(); Node subclass = new NickSubclassNode(); List<Node> nodes = Arra...

NetBean 6.9 GUI Designer Source File

I changed a JLabel's text to be "Your Name:" through the Property window. I want to know where this "Your Name: " is stored? Also in the Property window, I changed this JLabel's name to be "lblName" but in the FrameView.java file it is still JLabel1. So weired. ...

What does it mean to "Mavenize" a project?

I've recently been asked to mavenize an existing project, and I don't know exactly what that means. On the maven website it outlines how to create a maven project from scratch, but what if I've already got a substantial amount of code? I'm comfortable working on the command line or in Eclipse/Netbeans. I know there are a lot of plugins...

How to package Java Agent as Visual VM plugin

I have written a Java Agent along with an SWT GUI for controlling the agent. http://wiki.github.com/mchr3k/org.intrace/ I want to package this library into a plugin for VisualVM to allow the agent to be attached to a JVM using VisualVM. I have written a Netbeans module to do this right here: http://github.com/mchr3k/org.intrace/t...

Netbeans code completion spanning class files

I'm trying to get NetBeans 6.8 code completion to work for this. It doesn't seem to do it by itself, but I'm wondering if there's some phpdoc magic or something that may help, since it seems pretty darn good at using that. Take the following two classes: class A { public $B; public function __construct() { $this->B = n...

Best way to manage multi-module projects?

I have a medium size project split into 3 modules: Core, plugins (in short its an interpretation layer), and implementation. There are a few global dependencies, and module specific dependencies. There is a custom ant target for generating javadoc excluding the implementation (for obvious reasons). This is stored in an public online SVN ...

Netbeans GUI builder and jtable stateChanged fired when add custom java bean to gui

Hi all, i make some custom java beans components to add at my GUI. This componenent contains a jtable with a stateChangeListener, the problem is when i add this component to my GUI stateChaged is fired (and fire an exception). How can i resolve this? ...

dump JDBC Derby database to a SQL script

Hello, I think this task should be obvious but I couldn't find how to do it. I am going to create a Java DB database (Derby) that will later be copied from my computer to another computer through a SQL script. Can I create it using Netbeans' GUI and then export it (and if yes, how), or do I have to write the script myself? Thanks. ...

GLCanvas and other JOGL classes missing from NetBeans OpenGL Pack?

Hey, I'm have horrendous problems trying to get a JOGL program compiling using Netbeans 6.9. I can't seem to find an up to date explanation as to how to do this. When I install the NetBeans OpenGL pack I can't compile the examples. I get a compile error stating it can't find some methods such as GLCanvas(). When I go to the library to s...

rackup in Netbeans project

Hi How can I configure a Netbeans Ruby project so that it does not run a Ruby interpreter (a Ruby "platform"), but starts up rackup? Thanks ...

Error: Symbian SDK Error - Failed to initialize session

I've tried to deal with this before, about 8 months ago, I didn't find a solution for this then, and also now there is no real solution for it. I downloaded the Nokia Symbian-3 SDK 0.8 - the newest today, I have Java 1.6.0.13, Eclipse 3.5 and winXP sp3, and when I try to run the emulator from the IDE, on the "Connect to agent" step, the...

Netbeans 6.9 support for HAML and SASS?

It doesn't seem to be any HAML and SASS support in Netbeans 6.9. Is there a way to add this support? Thanks ...

Are there any WYSIWYG plugins for Netbeans Editor?

I love this IDE but I need a WYSIWYG for some HTML/CSS design projects. Are there any WYSIWYG extensions for Netbeans? ...