How to run OSX Help Viewer from Java Swing app - java

When a help topic is clicked on an OSX app's Help menu the so-called Help Viewer loads with the relevant page shown.
How can this be achieved by a Java Swing app?

Traditionally like this:
Application.getApplication().openHelpViewer();
where Application is in com.apple.eawt. To make it work properly the whole application will have to be jarred up and embedded appropriately in an .app structure with the help documents in the right place. The Jarbundler ant task will do this for you.

Related

Embedding external applications into fxml

I am trying to start an external application (java swing) and them display the java window within another java application. I can start at external application pretty easily but I can't seem to see a way of displaying it with something like a javafx pane.
There is no way you can do so only if the other app is embedded into your code that you have it's source code now you can open it inside your app in the case of swing javafx you can open them in the same app not a big deal I hope this might help you

Change icon of executable exe file

I have created an executable file using NetBeans 8.0.2 (the standard JDK), following the instructions on this website about native packaging: https://netbeans.org/kb/docs/java/native_pkg.html.
Now, how do I change the icon of the exe installer file from the standard Java coffee cup, to my own custom icon? (I was able to change the icon that displays in the installed application's top left window, by directly coding the frame's image resource in the source code of my application).
However I want my custom icon to also be displayed on the actual exe installer file, and the installed application's desktop icon. I had the same issue when I tried an MSI file, instead of and EXE file. I tried searching for other solutions, but none of them have worked for me. I even tried Resource Hacker, but that didn't work for me. How do other people achieve this (seemingly simple/straightforward) thing? I would imagine this requirement is in high demand.
Yes, after looking at a quick video demo of InstallBuilder:
https://www.youtube.com/watch?v=wMXWq2b5IxM
I think this is the easiest solution for customising (plus it offers a whole help of features). It looks like a high-end product. HOWEVER, it is pricey - starting at around $500, but they do have a free evaluation download, so I'll start there. There are some other free tools out there, but InstallBuilder seems to be the most user-friendly I've seen so far.

How do you change the icon on far left of the menubar using Javafx 8?

I am developing an User Interface for a simulation application and would like to try and make the gui more professional by using my own application icon.
Any help would be appreciated! Thank you.
Put your icon into the directory, e.g. src/main/deploy/myIcon.icns. Then deploy it as a native package (http://docs.oracle.com/javafx/2/deployment/self-contained-packaging.htm). You can make use of http://github.com/javafx-maven-plugin/javafx-maven-plugin plugin if you use maven to deploy your application.

Netbeans Project Types

I'm building a Java application using NetBeans 7.0. The app is intended for use on Windows, so I guess the tool I'm really making most use of is Java Swing (for the cool, nifty screen elements).
My question relates to NetBeans' process of creating the various project types. The application I'm building is based on the "Java Desktop Application" template (?). My problem is that there seems to be a nice load of bloat built into that, and I can't figure out how to remove most of it without blowing up the app.
As a test, I created a "Java Application"project, but this has the opposite problem -- there's absolutely nothing built into the code, and I can figure out how to add anything. Specifically, a Java Desktop Application project created in NetBeans give me the ability to directly edit the screen layout like in Visual Studio. However, a Java Application does not appear to have this capability, I have no idea how (or even if) this can be addressed.
If I could start with a no-frills Java application, and add some capability to edit its layout and control the function of the screen elements (i.e. make it a windows application, I think), that would be just about perfect.
Does anybody have a suggestion for a minimal, but functional NetBeans application start point??
Thanks,
R.
If you start with a plain Java Application then as you realize you start with a bare bones type application. To add a GUI you can add New>JFRame Form. It adds a class that extends JFrame and Netbeans will recognize that it should open it in the visual editor for you.

NetBeans Platform Main Frame

I am looking into the NetBeans platform for developing desktop applications. I am a complete newbie in it. I understood till now the module architecture. Now I want to do some GUI work. My question is very simple and feel embarrassed to ask it, but how can I edit the main frame of the application? I mean the one generated automatically by NetBeans. I looked around but for god's sake, I can't see it in the IDE:(
Edit: It seems there is a misunderstanding. I know how to create a JFrame:) I am talking about the NetBeans platform, when your application is built on top of the NetBeans core. Here is a short article. At the bottom there are two screenshots. The IDE generates a Main frame looking like the real NetBeans IDE. I can create new modules and so on. But I want to edit this Main frame, but I don't see it in the IDE. Hope my question is clear now.
Thanks in advance:)
Regards,
Petar
As I learned more things of the NetBeans platform, I understood that there is a virtual FileSystem which is build from combining layer.xml files from all modules. This FileSystem is the configuration of the application. It includes things as which menu items to be shown on the main frame, etc. So I guess the main frame is edited this way:)
Yes, is like Petar says, but to be more specific, one way to do this is from the Netbeans GUI is described here. http://platform.netbeans.org/tutorials/70/nbm-htmleditor.html#tweakingthemenuitems. This is for 7.0 version of netbeans.
I found useful this question also How to remove items from menu in netBeans platform?.

Categories

Resources