JavaFX 2.x in desktop development? - java

I have to find technology for new desktop application on Java only.
I don't want use swing, but I can't find good and perspective alternatives.
I know about JavaFX, but I have strong requirements: It must look good, not roughly on linux, windows and macOx. Does JavaFX work fine on each of this platforms? And which a big troubles can I find in using JavaFX?

I'm using FX in desktop development. It's great, but far away from being perfect. Also there's no Linux version at this moment, as for Mac, it's only beta 2.1 (which i'm using right now). The biggest thing that annoys me is freezes. U can download visual editor right here
BTW Gosling belives that FX would become more usefull in desktop dev than in RIA development

Eclipse's SWT should definitely be considered. It supports all three platforms mentioned and IMO is nicer to use than Swing.

Related

What is the easiest way to design Java Swing GUIs in Eclipse IDE?

I've been coding basic UIs in Java manually and using NetBeans, but recently switched to Eclipse Indigo. I use the visual class builder to design SWT user interfaces in Eclipse but found out that it's painfully slow and laggy. It takes about four seconds for a change to be displayed and it's virtually impossible to build complex and large UIs with it effectively. Is this its usual behavior and is this the preferred way of building a Java Swing GUI in Eclipse?
Since Google aquired Instantiations and then donated WindowBuilder to Eclipse foundation it is the preferred free, open source visual GUI editor for Swing, SWT and GWT.
You can also use Jigloo.
Their eclipse update site it, http://cloudgarden.com/update-site
I have used it in windows quite well. But when I use it in mac, most of the time it crash.
But windows builder seems better to me.

Embedding a Flash UI in a Java application

What's out there that lets you do this? Are there any OSS projects or maybe something a little more popular than this: http://www.jpackages.com/jflashplayer/ ? This does exactly what I'm suggesting (i.e. cuts out the need for Swing UI for the most part) but for a number of reasons I'd be interested in any better alternatives. Are there any? Any alternatives would need to support the Flex SDK.
Use the SWT GUI toolkit, which has an embedded browser. You can even deploy you own webkit with it, and let flash run in this browser, so you are platform independent, and don't rely on native browsers.
It will however be a large deployment, because of the browsers size.
EDIT: You can also emed the Flash ActiveX control directly in an SWT composite (Composite is the JPanel of SWT)
JavaFX 2 has a web control. I can't remember if the beta can do flash yet or if still upcoming. But if it doesn't support flash yet then it probably will soon, they release updates every 2 or so weeks to test.
You could also try the JFlashPlayer from DJ Native Swing: http://djproject.sourceforge.net/ns
It is essentially the SWT Browser, but with all sorts of integration headaches solved, and proper API.

where is the eclipse desktop framework

i'm new for java how can i add a button or others like Microsoft visual studio?
If you mean that you want a GUI builder, you'd better consider NetBeans with its Matisse. I think it is the most popular now for Swing apps.
This Google search shows a number of GUI builders for Eclipse
Many people prefer building GUI in Swing manually (just writing code) because it is by far not that difficult as in MSVC++ applications.
If you are looking for the Eclipse IDE to help with the development of Java applications, this can be found on eclipse.org.
Though I'm not sure I understood your question correctly.
What you are looking for is Eclipse Visual Editor. However, as pointed out by others, the GUI Builder from NetBeans (formerly known as Matisse) is more popular for Swing development.
Download Netbeans, its visual editor is very good, and will give you a the perfect Swing User Interface. Its also very easy to use.
When making desktop applications, i always do it with Netbeans, if i know the application will be more complicated later, then i do only one or two JFrame classes with Netbeans, and use them in a new project in Eclipse :)

Is JavaFX a replacement for Java Applets?

Is JavaFX technology for building rich internet applications (RIA) a direct replacement for Java Applets?
No, JavaFX is not a replacement for applets. In fact, the idea is that you write applets that use JavaFX to things like what you can do with Adobe Flash or Microsoft Silverlight.
So rather than replace applets, it's expected that JavaFX might make applets popular again.
edit (08/15/2019) my answer above is 10 years old - things have changed. Applets are not supported anymore; Oracle does not provide a Java browser plug-in that can run applets with current versions of Java. Don't write code that uses applets anymore.

GWT - What's a good GUI editor for GWT in Intellij IDEA?

The one that ships with IDEA is nothing more than a GWT project creation tool. Is there a better plugin? Is there a standalone GUI editor for GWT?
To answer your question directly, there is no such thing as a Intellij IDEA GUI WYSIWYG editor for GWT for the moment.
The most popular/feature complete WYSIWYG editor for GWT is Instantiations GWT Designer. It is available only for Eclipse though.
The GWT team also provide a list of tools and libraries.. It seem rather incomplete though as it does not list Ext-GWT and GWT-Ext libraries (the most popular widget libraries).
Be warned however that most WYSIWYG editor only support the basic widgets of GWT. If you have custom widget, you may not be able to use them in the editor.
[Edit] As of August 2010, Instanciation has been acquired Google
I've never used these personally but a few things I've found include:
http://www.gdevelop.com/ (extension to JDeveloper so it might not be appropriate for you if you're using IDEA and not wanting to download and use JDeveloper for your GWT project)
http://code.google.com/p/gwt-html-editor/
You have here a pretty comprehensive list of GWT plugins/editors. Those are geared towards GWT projects creation, and not so much towards GUI.
However, you also have VistaFei (not very active at the moment, but worth checking out). It comes with its own eclipse distribution:
alt text http://blogs.zdnet.com/images/burnette_vistafei_control_grid_398.png
A visual Integrated Development Environment (IDE) for building AJAX apps based on Google Web Toolkit (GWT) for all AJAX-enabled platforms. Applications are built by "drag & drop" from a Palette on the basis of What You See Is What You Get.
VistaFei is a visual feature-full Java development environment geared towards apps development based on GWT. Applications are developed in Java then compiled and debugged using GWT Compiler and Debugger, and launched to a browser all from within same environment.
Unfortunately, there really isn't one yet. We're going to have to wait until 2016 when Google takes over the world; everything will be so much easier then! ;)

Categories

Resources