Can't load Jframe in "Design" view - java

I've done some simple project(calculator with GUI, I'm in learning phase :D ) in NetBeans,
it all worked well, compiled and everything worked fine. So,day after, I decide to move on to something new, but when i opened NB, GUI(from the Calculator project) didn't show up(in the "Design" view) it just said "Loading..."
I ignored this and tried to create a new project, but that didnt work out, after setting up and pressing "Finish" button it just did... well nothing :/
"Finish" button just faded and I was stuck with this (check ss below)
I've tried cleaning cache from /home/[myUsername]/.netbeans/7.0/cache (this suggestion I've found while Googling the solution of my problem) which didn't work.
After that I decided to go to StackOverflow and before asking new question I searched for my problem and actually found someone with same problem (Question) but he didnt get much of a solution, neither did he give much of details :/
So I've decided to try the suggestions from comments first:
Clean and build and try again
Looks like you have to add the Swing Layout Extensions Library to your project
It didn't work, but my problem was a bit different, I had my project already built successfully so i can still run it, even though it won't show up in Design view, i just couldn't do any change to Calculator project(would get same error as he did) nor could i make a new one.
Now I would like to know is this a bug in NetBeans or am I doing something wrong and how to fix it if it's possible?
Im using Linux Mint 16, NB version 7.0.1(latest)
Calculator project:
////GUI.java code
Im sorry for using links instead of other types of formatting, but i think like this its kinder to eye due to code being too long.
Thanks for your effort and time, and sorry if its a problem due to my stupidity

Ok, thanks to MadProgrammer I've found a solution, looks like it's a 'known bug' in this version of NetBeans, which is apparently obsolete(even tho the program itself says it's the latest)
Upgrading to 7.1.2 should fix the problem, will update if it works...
UPDATE
Works like a charm :)
Bug was fixed in 7.1.2 currently new is 8.0.2. apt-get gives me 7.0.1 as latest :/
P.S. Had problems with NetBeans from official site too, it won't accept the jdk path, so i suggest downloading it from oracle JDK+NB bundle
I've got this version through sudo apt-get install netbeans , I'll try downloading from their site

Related

Intellij Idea Autocomplete not working for flutter and Java

I'm currently using intellij idea 2020.3.1 . I have done many mini projects with java and flutter and i have never faced any problem with the autocomplete feature/intellisense before until now. It just suddenly stopped working and i have been trying to fix it for days. I have tried the following solutions to no avail.
Disable the power mode off
I have marked my project root directory as the sources root
I set up my JDK correctly
I have done the "invalidate caches/restart"
All to no avail. Is there anything else i could do, please?enter image description here
After much research on the internet, i found out that the problem was from Settings|Editor|Code Completion|Show the documentation popup , was unchecked. How it became unchecked(I cant remember doing it), i dont really know. After i checked it, the code completion feature started working

Test runner tab disappeared in Intellij

When I try to run the tests by right-click and selecting "Run.."
It used to work until a few days ago. I use IntelliJ 2021, I tried an older version but I have the same issue, I tried uninstalling most of my plugins, nothing. I also tried searching through similar issues but nothing was of use.
This is how the Run Tab looks
In the Run tab, a list of running tests should be seen, but it is not. My project is a Maven project with Java and Gauge. Do you have any idea what the problem could be? My guess is I either pressed something by mistake or something else is doing this.
Nevermind, I just found the issue, please make sure to have
this checkbox
checked if you use Gauge.

ADT Eclipse SDK troubles - No DDMS found

Please help me, I'm having serious trobules with Eclipse for the second time.
I'm following a guide and in these last days my Eclipse used to work fine (and was heavy 600 mb), now after the updates I did recommended by the guided, it downloaded a lot of things for hours and my folder now is 12.6 GBs (and it's pretty uncofortable since I'm on a not too large SSD).
The problem is that the old ADT worked, after the update every project gives errors, like there is no Android SDK.
The console gives me this error
[2014-11-18 22:37:33 - DDMS] DDMS files not found: C:\Users\Ruggiero\Desktop\Ruggiero\android_dev_environment\sdk\tools\hprof-conv.exe
If it can help you, when I run Eclipse it shows me this error message
Now, the most obvious thing would be "just press Check for updates".
When I do it, it says me there are no updates.
So I go for "Install new software" and after I go to the link (official Google link) and try to install the updates it gives me this error
error2 http://s7.postimg.org/h5r1gaa63/eclipseerror2.png]
Please do not flag as duplicate as I already searched on the web and StackOverflow too and even if I found similar troubles, no one was equal or really close to mine.
I had a similar problem. The only way I could make it work was to completely uninstall Eclipse and Android SDK and reinstall again.
There are likely workarounds for this, but I think I suggest just downloading a fresh Android bundle (with all the correct updated software), and install it fresh.
I have had experiences where something goes wrong in the tools update, and found the simplest way to correct is to uninstall my existing tools and start fresh. It is easy to install the bundle, and you will know you have all the correct packages and software installed.
You will spend a bit of time trying to debug your install, it will be quicker to install a fresh instance.
I self resolved by switching to Android Studio IDE

Eclipse WindowBuilder Glitch in Text

I'm getting strange results in my Eclipse WindowBuilder whenever I try to run my GUI, the top left area has glitchy text (I don't really know what else to call this problem). I've tried searching everywhere but apparently no one else is getting this problem.
Problems with the image: Display is being displayed as Displa, 'Search' is scrambled.
Problem image:
I've tried creating a new project, tried reinstalling eclipse, deleting all my eclipse metafiles, redownloading WindowBuilder, I even uninstalled Java JDK and Java from my computer and reinstalled it.
I'm running
Windows 7 Ultimate Service pack 1 64bit.
Java 8 Update 25 (64-bit).
Java SE Development Kit Update 25 (64-bit).
Eclipse IDE for Java Developers
Version: Luna Service Release 1 (4.4.1)
Build id: 20140925-1800
Here is my using WindowBuilder process to give you guys an insight, as I maybe doing something wrong:
Create a new project, creating new application window under WindowBuilder. Go to design, add JTabbedPane in the center, and then add JPanel(s), apply GridBagLayout under all of my tabs and then add regardless of what element I put, the first element is always affected by this glitch and so are the tabs themselves affected.
I've tried supplied all the information I can please ask me if you want to know more to try to help me figure out what is wrong.
My layout of GridBagLayout:
Other notes:
I've also noticed that even after clean and fresh installs sometimes or often whenever I add a new element to my GUI after reopening or anything I get a big error and have to spam "Reparse" button a few times before I can go back to editing.
UPDATE:
I also noticed if I type anything in the text fields it will glitch out and I won't be able to see what I'm typing.
Same problem, got it after I downloaded and installed JavaJDK.
Not sure how to fix it other then just try to resize the window a few times, and you might be able to see what it says. Also I by browser doesn't detect my java install.
EDIT:
I found this:
Swing rendering appears broken in JDK 1.8, correct in JDK 1.7
I did what the best answer said and it worked :) And yes, indeed I have NVIDIA GeForce driver and java 8 installed (that is why).
I am from norway so the text is as well... Just try to click on what I have clicked on :)
http://i.imgur.com/aZeUdCw.png
I never got to updating this question with an answer, the solution was running Eclipse using the Nvidia Graphics card rather than Integrated.

ADT field not being set

I'm running a simple java project on Android (using Eclipse ADT).
During debugging I see that a value is not set correctly.
I think this screenshot says it all:
Any idea what can cause this?
Thanks a lot,
Omer
After a lot of struggles what solved the problem for me is the following:
Project -> clean , like Simon suggested.
Restart eclipse.
Fix build path (after clean , I got error in my build path not refrencing the JRE).
Fix android target version. (After clean I got some error on the target).
Save files.
Restart eclipse (again).
This was one of the strangest things I've encountered as a programmer,
and I'm not really sure until now what the problem was and which of the above steps helped to fix it.
So , I've decided to write all of the steps, hoping it might do some good to some other pour soul.
Simon- Thanks again.

Categories

Resources