I have just started digging into JavaFX and have a requirement that I am not sure if I can fulfill with JavaFX. Does anyone know if JavaFX supports embedding another application (non-java, in this case a microsoft app) in a panel? I don't (at this time) have a requirement to control anything on that application, just have it run in that panel.
Any help on this would be greatly appreciated. Thanks in advance!
Embeding applications into Java. Originally asked for Swing, but it is also applicable for JavaFX.
Is the other application a Java program? As JavaFX supports Threads, and since you can instantiate Java classes in JavaFX, this should actually work, though this is just a guess.
You can embed other java applications,but certainly not other technology applications.I would rather suggest to reframe just your user interface in JavaFx as it would help you get a very rich user experience!
Good Luck!
Related
My requirement is to develop UI with SWT. I was told I have to use RCP software which is going to be Eclipse Luna. After doing enough research, I also tried making plugin in eclipse as the online tutorial . But I could not understand where exactly I can develop UI which should have controls like Text box, drop-down box etc. What do I do with the plug in eclipse ? Does it serve any purpose in creating UI in SWT?
Can anyone help me?
Please go through some good tutorials at Vogella RCP tutorials. Hope this will help you.
Along with the links you have been provided. I will suggest you to start UI design using WindowsBuilder. It will give you good and easy start to design interface.
I need some kind of GUI tool that will make applications for both Desktop and Android systems.
I did some quick research, but didn't find anything. I was suggested by someone to use PHP and AJAX that is doable. I have never used these languages for such a purpose and the application is in Java, so I have no idea where to start.
Any ideas?
Thank you very much.
Unity could work for you. You would need to use C# instead of java, but they are almost exactly the same syntax wise. A few of the built in methods have different names, but Unity is very easy to make GUI's with.
I developed a Java Swing application using Eclipse. I would like to integrate the existing help documentation into my GUI.
Basically I want to start my help window with a typical menu item as common for most programs. So nothing
fancy at all.
I spent already a lot time to find which option would be best for my case and I'm kind of stuck. I thought integrating the help would be straight
forward but meanwhile I think this is not the case.
If anyone can point me in the right direction or show me a tutorial where I can get the idea how to accomplish it with eclipse help
and a swing application I would be really happy. I find a lot of tutorial discussing RCP applications or writing an eclipse plugin.
Somehow I tried a lot for such an easy usecase.
The following options are available as far as I can tell:
1. Eclipse like help
My favorite option would be to use an eclipse like help window but after playing around a bit I have the slight feeling
that this is only possible for eclipse RCP applications. Since my Swing GUI is not a RCP application I think that wont work
for me.
Is it possible to integrate the Eclipse help with only my help content into my Swing application? Eclipse won't be installed
on the PCs where my application is used.
Most probably those PCs are not even connected to the internet, so using the Eclipse help in info center mode is also not
an option.
Using the eclipse help in standalone mode requires to specify the eclipse installation directory when launching it. That's where I'm stuck.
2. Java help or Oracle help Java
Using these options is my next call also not my favorite one. I think both options are kind of outdated.
For Java help I would probably follow the Docbook approach. Even if I don't understand why this is so complicated at
all...
3. Custom panel
I'm almost close to design a customized panel to display my help content. Then I'm at least able to make sure that I like
the way it is designed.
In the beginning I thought this might be more time consuming, but after reading what effort is necessary to get a nice looking
help with Java help I think this option is not the worst choice.
Thanks Joe
My solution for now is to create the complete help system with HelpNDoc and then simply generate the HTML documentation.
The HTML document I will open from my swing GUI.
I also tried the CHTML but to be honest I like the look (which can be nicely configured) int the browser more.
Windows Help looks also too outdated to me. But that's just my personal opinion.
Right now this is the right solution for me and my energy will go into the help itself.
Thanks to everyone.
Joe
I downloaded Net Beans IDE and created a new desktop aplication. I choose it to be Swing app. The IDE displayed that the Swing framework is out of date and will not be supported in the future.
Does this mean that Swing is out of date? And if so what are the most recent frameworks that can be used to develop desktop applications?
thanks
In NetBeans the Desktop Application project type is a project based on an external library that was supposed to be the Swing Application Framework (which does things like session state of GUI controls and resource bundle management) but never matured. So that project type is outdated.
However Swing itself (the GUI platform) is `current' in the sense that it is the foremost GUI toolkit that Java has and will continue to have for some time.
The Swing Application Framework (JSR296) was a project intended to extract the common elements for developing applications with Swing. It is safe to use but is no longer being developed. The official page https://appframework.dev.java.net/ suggests a couple of alternatives, including using the netbeans platform itself and, given how greatly netbeans has matured, I would be keen to investigate this approach.
Swing itself is fine, it'll be around as long as Java is. Though in saying that desktop Java has never really taken hold in the same way other flavours have.
AFAIK Swing is definitelly not out of date and will be even enhanced in JDK7
Maybe you should show us screenshot, it might be misunderstanding
I think something wrong with your netbeans. Can you show some screenshot?
The future of swing
Simple question: Can I mix in my desktop application Java and JavaFX Script code? If it is possible could you provide me with some link with examples?
Or could I pack my custom made javafx CustomNode-s in a jar and use them in my project side by side with standard SWING components?
This article gives an example of calling JavaFX from Java, using the Scripting API.
Yes, you can mix Java and JavaFX.
According to one of the FAQ entries:
In addition, developers can use any Java library in their JavaFX applications. This allows JavaFX applications to take advantage of the rich JavaFX UI libraries, as well as the amazing breadth of functionality offered by Java.
The official source of information, including tools downloads, FAQ, and tutorials is the JavaFX web site.
I suggest you to look at dotFX. It can be useful for you. It has a netbeans plugin,too.
Read first here for get more information.
You can use a JavaFX 2.0 with Swing
http://javafx.com/about-javafx/
If you install the JavaFX 2.0 runtime first, then you launch an example http://download.oracle.com/otndocs/products/javafx/samples/SwingInterop/index.html
Supposedly all you have to do is drag and drop the JavaFX application to your desktop in order to make it a desktop application. You can also use Java code in a JavaFX application. Not sure about the other way around.
Yes Javafx and java apis can be mixed and used in your application without any problems.