Right Click Not Working in NetBeans 8.0.2 - java

I installed NetBeans 8.0.2 recently, and tried to set null layout for a JFrame.
Tried to proceed but RIGHT CLICK on the frame didn't work. I am actually trying to set a background image for a frame.
Someone has already posted cannot right click on Jframe or Jpanel in netbeans 8.0 but it has no answers.
How to fix this problem? Hope that someone has found a solution.

It works for me to right-click on a JFrame and use Set Layout -> Null Layout with Netbeans 8.02. They did not remove it as an option. My guess would be that it is a problem specific to your configuration and/or installation.
Close Netbeans, delete your user configuration directory and cache directory ( see http://wiki.netbeans.org/FaqWhatIsUserdir ) and reopen Netbeans. If the problem persists use View -> IDE Log and add the Error messages from the log to your question. After opening Netbeans, only try one thing and then copy the log so you don't have a bunch of irrelevant error messages in the log.

Related

Eclipse isn't showing anything

The screenshot of my starting eclipse page.
So I'm very new to eclipse. I'm 16 and need it for school, I've been using it for 2 months now.
One of my assignments was to use JFrame and create a GUI which I had to import into eclipse.
However, when I created the java project and then tried to use JFrame it would show me the source(I think that's what its called) but wouldn't let me open the design part.
So then I tried to create a class in a new java project and it wouldn't show me any code so I deleted eclipse and tried to install it again.
Which I did twice and now I just get this screen whenever I open it. I can't find the project explorer and I cant use it.
Please help me to fix and get the screen back to normal with the console and terminal and package explorer visible as well as how to use JFrame properly.
Click Window > Show View > Project Explorer as shown below:
Similarly, open other views like Console, Problems, Outline etc. (whatever you need).

NetBeans IDE 8.0.2 Output Window

How can I open output window in NetBeans IDE 8.0.2? I tried multiple options below:
Go to Window option> Click on output
Clicking Ctrl+4
Right click on the bottom right corner of NetBeans and Click on Show Output
Unfortunately, none of the options are working out. I see NetBeans is “running process” when clicked on Run but output does not show. And when clicked on stop process, the system gets hanged.
Please help me, thanks!
Try Window>Reset Windows to revert to your originial netbeans UI config.
Well sometimes even if you try Window->Output(Ctrl+4) option, it seems not to be working because your Editor window is maximized. Drag your mouse to the top right corner of the editor, where the restore/maximize button located. Click on the restore. Hope it will solve the issue.

Eclipse Not Showing Errors on Lefthand Side

So I've been using Eclipse on my mac for the past 4 months with no problems but suddenly things are acting up. Before, Eclipse would show me a red dot on the lefthand scroll bar when I was working on a class in a project. Now, for some reason, all it does is grey-out that line number but it does not show me that dot like it used to. I've tried restarting both Eclipse and my computer, I've tried working on different projects and classes, I've made sure a project builder is selected, and I've checked that the "show errors" options are all checked. I do not like having to have another window open to see exactly where all my errors are; I preferred just having the red section on my class screen. Any other suggestions?
Thanks everyone!
You could try looking here: Error indicators in file margin in eclipse indigo
Open Preferences, select General/Editors/Text editors/Annotations, and make sure that the errors/warnings are selected to be displayed in the Vertical and Overview rulers.
or
Figured it out, if you go to system preferences > general > click the "when scrolling" button, to only show the scroll bar when scrolling it fixes it. Mine was previously on "always". I restarted eclipse and it shows the errors/warning message etc now.'

NetBeans GUI builder: "loading..." message

Sample project from the NetBeans tutorials set contains only one Swing form (empty JFrame), compiles and runs fine, but I can't change layout of the form and add elements in it with the NetBeans GUI buider since it shows only empty placeholder with single "loading..." message. Any clues how to fix it would be highly appreciated.
Kubuntu 12.04, Openjdk 1.7, NetBeans 7.0.1 with active GUI designer plugin.
Log file contains an error
SEVERE [org.openide.util.RequestProcessor]: Error in RequestProcessor org.netbeans.modules.form.FormDesigner$PreLoadTask
KNOWN BUG in Designer marked as done (Netbeans 7.0.1 GUI editor is not loading).
Get a new version from netbeans.
Seems to be the same problem.
reported:
...
All my projects are using SWING-components, and when I'm clicking
on "Design" switcher, in order to make changes in GUI, it is showing label
"loading" and I get following error:
...
I have very similar problem with NetBeans-7.2 on Gentoo system (the only difference is another error in the log: java.lang.ClassNotFoundException: org.w3c.dom.ElementTraversal). The solution is to install dev-java/batik package and start NetBeans with
netbeans-7.2 -cp:a /usr/share/batik-1.7/lib/batik-ext.jar
These extra arguments can be added to netbeans_default_options in the /etc/netbeans-7.2/netbeans.conf to make a permanent fix. More information can be found here and here.

Netbeans JApplet Webstart - icons not appearing on button when run

Hey there - just wondering if anyone knows the trick to getting icons to display on button in a JApplet. When I add the icon from a png in my package via the properties panel it turns up in the NetBeans IDE as expected but when I run the launch file it isn't there. I can confirm that the file exists in my Jar and no exceptions seem to be thrown in relation to missing files.
If I create a similar application using a JForm and run it directly from NetBeans the icon appears as expected.
EDIT:
It seems this is confined to Chrome... works correctly in IE9 and FF 3.6
EDIT:
Replicate as follows - no coding required:
Create a NetBeans 6.9.1 Project with the following settings:
Java --> JavaApplication
[Next>]
Name e.g. JavaApplication1
Untick "Create Main Class"
[Finish]
Add a png image "MyIcon" to the src directory.
Right Click "JavaApplication1" Project in Projects panel and select New -> JApplet Form
[Finish]
Drag a button onto the form, right click -> properties -> icon and choose "MyIcon" from the pre-populated dropdown menu. You should see the icon appear on the button in the IDE.
Build the project, then navigate via explorer to the dist/launch.html file and run it in Firefox or IE and the icon will be there, run it an Chrome 10 and it won't.
It seems this problem magically went away and now I wish I had noted the exact version of Chrome that I had so that I could tell whether it updated or not. I worked around the problem but inadvertently left an icon on a button - I started work again today on my project and how-you-doing there was a lonely icon on a button - there are three possible reasons why this happened:
1 - I shut down my machine overnight; aka restart (93% Sure this was it)
2 - I moved the entire Netbeans project to another directory (5% Sure this was it)
3 - maybe but unlikely Chrome updated itself with a fix (2% Sure this was it)

Categories