
I see no reason why I shouldn't be able to reference the project or reference the jar file where it is compiled, but neither work. I don't like this solution though, I'd much rather it link to my project the way it's meant to, so that when I make changes they'll apply without me having to copy the file over. jar file and loaded it into the project from within the classes folder of that project, i can now drag components from there, onto my form with no hassles. All this talk of classpaths in netbeans got me worried, especially since the classpaths of the form seem to be readonly? so i copied my. Telling you my workaround may help you figure out what's wrong. I've found a workaround, but still looking for a better way.
#NETBEANS GUI HOW TO#
A) how to let me edit the incorrect grayed out code, or B) how to make the GUI recognise these classes like the rest of the code does. I am pretty new with netbeans, but no gui should be behaving this way, i've never had this much trouble for such a simple thing.
#NETBEANS GUI PC#
worse yet, when I first set this up, nothing even went wrong, compiled n run no problem, this has happened since i restarted my pc and tried again. but as soon as the netbeans GUI tries to use those types, chucks a spastic and replaces the types with 'invalidtype'. function perfectly, no problem with the import or anything. worse still, all the code within those forms, that use the very same types. I know what you're thinking, no reference right? wrong, I added the library to the app project, oh so many times ive deleted and re-added it. components on my forms now dont display and netbeans gives the error that it couldnt find the types ive used. I recently split my projeect into class library / application. The thign is, netbeans seems to have lost its mind, here's my problem. I really need to edit the gray area (OR can someone help me fix the actual problem). I'm having the same beef with netbeans right now.

If you ever feel that u want to edit this code, think again, there is something that u are not doing right.Īnd which version of netbeans are we talking about? I had to reinstall netbeans and when I opened the project with the new install, everything went fine.īut I don't think thats the problem u are having because you are getting some response.įinally, you can never edit the grayed out code, netbeans enforces this and it should never be a problem.

I have encountered a situation where I couldn't delete buttons from a panel, I think it was a bug because when I hit delete, nothing happened, no message no expected results.

If u delete a panel, all components it contains + all event handlers go. You have the option to do a safe delete or not. If you want to delete a panel that you put on a JFrame, just go to the inspector window, find the panel open the context menu and hit delete. You remove them via the properties window of the concerned UI object. I will give it a blind shot nonetheless, if you have some event handlers generated by the ide, you cannot delete them via the navigator.

The panel will be visible in the inspector window so I have no idea whether you made a mistake mentioning the navigator window or it's actually where you are. But you are saying that u want to delete the panel. Will need to explain your question better, you mention the navigator window which shows the methods and variables in a particular file.
