I'm trying to create a simple module in netbeans that can check in and check out files in netbeans. However I don't understand how I can create menu item in the project and files popup menus like subversion does. can anyone please help.
Regards,
Sunil
Have a Look at the Actions: How to add things to Files, Folders, Menus, Toolbars and more section of the NetBeans Developer FAQ that should point you in the right direction.
Related
I am using the Lynda.com tutorial Gradle for Java Developers to learn Gradle. In the tutorial, he opens a new project with no template and copies a folder from the exercise files into the new project (I'm not sure if this is relevant to my problem). Without altering the Java class found in said folder, he right-clicks it from the sidebar and clicks "run" from the drop-down menu.
When I right-click it the class, "run" does not appear. Additionally, there is a message at the top of the text editor that says something along the lines of needing to configure an SDK. When I click on it, a pop-up saying something about "1.8" appears, as well as an "OK" button. When I choose run from the top menu, it simply brings up an "edit configuration" pop-up.
Can anyone explain to me why my layout is so different from the tutor's?
Edit: Now I see where my issue came from. The tutor was misleading with his "how to use the exercise files" video. He showed it to be as simple as clicking "open" on Intellij and opening the folder or dragging the folder to the intellij icon, without configuring an SDK. But in the tutorial video I was watching, he did something completely different by creating a new project and pasting a folder within the folder for the video, which actually ended up looking different from the template he used (His project was called GradleLab and he copied the exercise files within it, while all the other exercise files include the GradleLab folder
I have tried going to the plugin download center and I refreshed over 50 times over the course of a week and still i cannot see the LWUIT plugin for Java ME.
Is there a way for me to manually install this plugin without using the plugin download center?
I found out how to do it after a few hours...
go to this link http://www.java2s.com/Code/JarDownload/LWUIT/LWUIT_old.jar.zip , then open the NetBeans IDE and create a new MIDlet project. In the project side bar, go to resources and right-click. On the menu that shows up, click add library. Click edit. Click on add JAR/folder and point to where you extracted the jar file.
In Eclipse IDE there are icons to display the project type, but I can't find a text description. I would expect right click -> properties to show this info but according to this all projects are of type "project" (even if they are a java project, or maven project etc.)
Does anyone know?
Thanks!
According to this, you won't find the text description in Eclipse GUI.
One way is to go to the root folder of your project, open the file named .project and check the elements in the tag <natures></natures>.
But don't worry about that, these icons are often explicit.
I started to learn swing and downloaded netbeans to work through the tutorials. Unfortunately, when I create a JFrame design view hangs instead of loading and the Navigator and Inspector panes just show up empty.
System details:
Linux Mint Maya
Netbeans version 7.0.1
java 1.6.0_24
Any ideas would be greatly appreciated.
In whatever editor/designer you choose, consider the approach shown here, in which the top-level container is created manually and one or more content panels are maintained in the designer.
look in the Netbeans View menu and choose "IDE log"
There may be an error message / exception there, that might give you a clue.
Reinstalling the nb-javac plugin fixed this issue for me.
I followed the steps here and it resolved my problem.
For me, this was caused by a "FormGuardedBlockError", because at one point in my project I copied all of the source out into Notepad++ and used that to replace the .java file, thereby stripping all of the //GEN-BEGIN and related directives.
You can close NetBeans, open the .java file in a plaintext editor and put these directives back by hand, but it may be easier to merge with an earlier version of your code (if you have one).
For more details, check out http://wiki.netbeans.org/FormGuardedBlockError
Menu->view->show edit toolbar fixed this for me , of course the file you select to edit must have jframe, added to it I think for design tab to appear.
Go to Menu -> Option -> Select "Java" from option windows tool
then Active
I want to add a preference page in my RCP program, just like you see in the eclipse, when you click Windows->Preferences->General, a preference page appears in the right panel. But I'm not familiar about RCP, how can I add a option in the Windows->Preferences lists, and make it work like the "General" option?
Thanks a lot.
There are several tutorials out there:
http://www.eclipse.org/articles/Article-Preferences/preferences.htm
http://www.vogella.de/articles/EclipsePreferences/article.html
Open the plugin.xml from the Package explorer and go to Extensions tab. Click add and search for org.eclipse.ui.preferencePage and Finish. Right click on the preferncePage plugin, choose New-->Page. On the right hand side, fill the required fields and save it.
Run the plugin as an Eclipse application. Go to Windows-->Preferences and you will find your custom preference page.