Executable directory where application is running from?

This is the first post on google so I thought I’d post different ways that are available and how they compare. Unfortunately I can’t figure out how to create a table here, so it’s an image. The code for each is below the image using fully qualified names. My.Application.Info.DirectoryPath Environment.CurrentDirectory System.Windows.Forms.Application.StartupPath AppDomain.CurrentDomain.BaseDirectory System.Reflection.Assembly.GetExecutingAssembly.Location System.Reflection.Assembly.GetExecutingAssembly.CodeBase New … Read more

Integrating JavaFX 2.0 WebView into a Swing Java SE 6 Application

It is very well possible! One has to install JavaFX 2.0, and somehow manage to have jfxrt.jar in the Classpath. The following code renders a JFXPanel inside a JFrame. The JFXPanel contains a WebView which loads google.com. However, at least on my machine, the WebView feels rather sloppy. I’m working on Mac OS X 10.6; … Read more

Is Java the best language to develop cross-platform GUI applications? [closed]

I strongly recommend Java for cross-platform GUI development. In particular, I recommend the GUI builder that comes with the Netbeans IDE. It’s very simple and very powerful. You can point and click and drag and drop to create a GUI, and easily customize the actions which various buttons and other components take. I much prefer … Read more

Is there a good framework for Java desktop applications? [closed]

i asked a similar question some time ago, see Swing desktop-development if you are interested. My conclusion was/is that there simply are no frameworks that can do for your desktop-application, what any of the bazillion great WEBframeworks can do for your webapplication. It seems absurd, but in my experience due to the great web-frameworks and … Read more

General error during semantic analysis: Unsupported class file major version 57

This is not a LibGDX issue. Gradle 5 is incompatible with Java 13. You either need to update Gradle (the wrapped version in your project) to Gradle 6 or later, or you need to use a lower version of the JRE. To update the wrapped gradle, go to gradle/wrapper/gradle-wrapper-properties in your project and update the … Read more

Is it wrong to use the hand cursor for clickable items such as buttons? [closed]

The reason why the cursor changes shape when over a hyperlink probably has to do with the following: hyperlinks started in blocks of text and as such it wasn’t obvious that you could click on them to open another page. the change in display style for links in and of itself probably wasn’t enough to … Read more

How do I convert web application into desktop executable?

Electron is the easiest way: 1. Install electron 2. Create and edit main.js: const electron = require(‘electron’); const { app, BrowserWindow } = electron; let mainWindow; app.on(‘ready’, () => { mainWindow = new BrowserWindow({ width: 1000, height: 700 }); mainWindow.setTitle(‘title of the desktop app’); mainWindow.loadURL(‘http://www.yourwebpage.com’); mainWindow.on(‘closed’, () => { mainWindow = null; }); }); 3. … Read more