Java Swing applications not opening in NetBeans - java

I have been having some major issues when I try to run a new Swing application. I am using NetBeans 8.1, JDK version 1.8 and OS Windows 10.
So every time I try to open a new Swing project (doesn't matter if it's just the app project or an EA) and I run it, NetBeans deploys it correctly but the Swing window doesn't open and in the status bar of NetBeans it just shows running. I wait for several minutes and then I have to stop the build because nothing happens. When I faced this situation before I uninstalled NetBeans and Java and reinstall them, and it's fixed. But I don't want to uninstall and install everything again when I want to open a new project. I am right now learning about Swing. If that project has a Web version, it works fine. I've put my laptop on Airplane mode so WiFi is disabled (a friend told me to do this) but with no luck.
So this is my IDE and it says "Running" in the status bar when I run the project using the Swing project, but the application window is not opened
enter image description here

You should debug this application, maybe one line code is error or not complete, ... can stop your application. This status bar show is running maybe your application not dispose then it still running

Related

Eclipse 2018-12 with JDK1.8 UI freezes

I am running Eclipse 2018-12 on a Windows 7 (VM) along with a JDK 1.8.0_121, as a runtime for the IDE and as JDK to build my bundles.
I am already through a couple of re-installations. Yesterday it happened again: The IDE freezes completely, not returning to be responsive even after waiting for several minutes.
Sometimes the wait cursor disappears and it seems to be responsive, but the first click anyway let the IDE return to its freeze mode.
What I did right before was a massive update of the underlying workspace through a git pull. Probably thousands of new deleted and changed files.
I've tried to start the IDE with "-clean" option.
I've created a new workspace, was able to do a couple of clicks here and there, UI freeze again.
I had the same thing with Eclipse 2019-03 and wasn't able to solve it, so I thought 2018-12 was a little more stable concerning this issue.
Is there a known issue with Eclipse-with-GIT?
Any ideas about how to get the IDE working again?
Is that probably 2018-12/2019-03 specific?

Android studio random freezes after fresh install

I'm quite new to the Android Studio IDE however I simply cannot get it to work. After launching studio, it'll only take me interacting with the GUI to freeze the entire program, with the only way to close it being to end the process via task manager. I have no idea what the problem is, I have jdk 8 installed with the correct path and its a brand new installation (yes I've tried reinstalling). I've included my thread dumps if that helps:
https://drive.google.com/file/d/0B1Fi84lOZ2nIYk13dDBtMXB1akk/view?usp=sharing

Error: Running JavaFX Appl outside Netbeans

everyone!
Here's the thing, I've been developing a JavaFX application with JDK 7u17 (That's the one Netbeans is compilling it, anyways) and I haven't had any problem testing it and running it through Netbeans itself. I simply click Run and it goes smoothly.
I'm creating the .jar files and the other (html, jnlp) through Clean-Build using Netbeans and the app does open perfectly when I execute the Jar.
The problem is when I try to navigate through the App, the app consists of 4 scenes (Login, Main, Search and Create) with me being able to log-in and head to the main scene but that's about it. The buttons to go to the search scene or create scene don't do anything nor I get an error saying something crashed (note I'm not using the console since I don't even know how to make it appear in runtime). I simply click them and they do nothing.
As I said earlier, the app runs perfectly when it's ran through Netbeans.
Some more info:
Netbeans Version: 8.0
Compilling Version through Netbeans: 1.7u17
Existing Java versions on System: 1.8u25, 1.7u67 and 1.7u17 (I already tried enabling only 1.7u17)
The App used FXML to switch between Scenes, it works great between LogIn and Main scenes.
What could it possibly be that it works great using Netbeans and break outside Netbeans?
EDIT #1:
According to the console (Thanks to #janih) I'm running Java version 1.7u17, same as Netbeans and it looks like it's working properly. The problem persists when I'm trying to run the same jar by simply doubli clicking it. It stops showing me controls (Third party controls).
I'm not sure but it could be this:
I was trying to run a project through the given .jar and had those results but that very Project was a plain JavaFX Project, not exactly JavaFX FXML Project and my Project uses FXML files to change between Scenes. What I did is redo the Project in FXML and worked perfectly.
Special thanks to #janih for the help.

SWT: JavaCocoaComponent compatiblity mode doesn't allow application to exit cleanly

I have a SWT application running on Mac(10.6.8). The SWT version I am using is swt-4.2.2-cocoa-macosx-x86_64.zip. My application doesn't exit properly when I call parent.getShell().close() , the UI disappears from the screen but the icon remains in the dock and hence it hasn't terminated cleanly.
I don't want to use System.exit(0) as I am doing some background processing even after the application closes in certain cases.
Is this due to the "JavaCocoaComponent compatiblity mode-Enabled" message I get when I launch my application.
How can I avoid this message and make my application exit cleanly?
I have tried using the swt-4.3 jar and ended up with the same result.
Note: I am also facing this issue when I run my application(jar) outside eclipse.
Any help provided will be greatly appreciated.
Thanks
Java Version Used: 1.6 update 51
Eclipse Version Used: Juno SR 2
Other jars used in my application
json_simple-1.1.jar
org.eclipse.core.commands_3.6
org.eclipse.equinox.common_3.6
org.eclipse.jface_3.6

WindowBuilder, no Browser

I'm using Eclipse with Google's WindowBuilder. When I run my program, WindowBuild launches my browser and my program is displayed in a web. All very slow.
How do I configure, if possible, WindowBuilder so it does not launch the web browser, similar to how Netbeans runs its programs?
Edit 1:
This is similar to: Can I use WindowBuilder without GWT, but I'm looking for an example or instructions for creating simple non-GWT application.
Click the down arrow near the run button, then click run as and run as a java application. This should not run in your browser.
This may depend on what type of project you have declared your project as.
Try to use the swt package.

Categories

Resources