New JavaFx library - javafx-2

I am using Netbeans 7.2 and JavaFX 2.1. I want to make a library mycompany.utils.sysuser to maintain login information. This library can be used in many different app, with a JavaFX dialog for login/logoff/change password.
I don't know how to begin, a regular Java library or a new JavaFX FXML application?

It doesn't really matter. The JavaFX project might generate some extra code and build tasks which you might or might not need but you can remove them if you need to or leave them be. JavaFX is just another library so you're also OK with a java project, just add JavaFX as a dependency.
It is complete overkill and confusing IMO to have a project for FXML and a project for the java files.

Related

Is it possible to embed Fuse IDE in a javaFX application?

I’m contributing in an Enterprise Integration Infrastructure project. Like many other integration software, Apache-Camel is the core of our application. To enable users defining their EIPs graphically, I want to use Fuse IDE in the software. The only thing I need the Fuse do is generating xml file from the routes which are defined by the users.
On the other hand, I know that Fuse IDE is essentially an Eclipse plugin (I think it is an Eclipse RCP plugin). Since the UI of our application is based on javaFX I want to know that is there any way to manipulate the code of Fuse to adjust it to javaFX entities?
Your help will be more than appreciated, due to the high importance of this issue for me.
That would be a lot of hard work as that code is tightly coupled to Eclipse.
So I would say NO unless you are prepared to do a lot of work porting and migration the code.

Reload changed java code in javacon module

A part of my lotus application is written in java and the classes reside in a Java library. On a form using Lotus Script, I communicate with my Java classes using the module Javacon (LS2J).
When I change something in some Java class, the lotus script doesn't see the changes. I have to close the whole domino designer and open it again in order for the changes to take effect.
I tried:
Closing Domino client only
Clean/Build project or all projects
Compile the java library alone
All of this didn't help. Is there a better way to reload the Java classes?

Web based Oracle Scene Builder analog

I want to provide an ability to create simple java and javafx applications to the users on my website. I've found excellent code editor (Ace) but I don't know how to provide FXML design tool to the Web users.
Is there any options?
ADD I want the users to use this interface builder without any additional requirements like Java 8 or something
How to host SceneBuilder in a web page (requires Java 8):
Build SceneBuilder from it's source.
Package it as a Browser Embedded Application.
Host your packaged application on the Internet and direct web users to its URL.
Other than using a fork of SceneBuilder for your project, I don't know of any other feasible way to provide visual FXML editing capabilities. I would certainly not recommend trying to create from scratch your own FXML visual editor written in either Java or JavaScript.

Implementing dialogs from resource

I'm currently trying to port an application from owl to vcl.
In my old projekt-file I was able to load dialogs with something like
TBatchAcDialog(TWindow* parent) : TAPDialog(parent, BATCH_DIALOG)
However, using TTaskDialog instead it doesn't support the second argument.
I have found an explanation for the user interface designer that when rightclicking on a menu you can load the first declared menu from a rc-file.
However, I don't really know how to load those dialogs as dialogs in this IDE and linking them to my classes again.
Does anyone of you know about this or could link me to an article about a similar problem? I seem to have failed finding a proper solution although implementing rc-dialogs seems to be a common problem to me.
I'm currently trying to port an application from owl to vcl.
What is your exact goal? To be able to build the application with C++ Builder, or to use VCL instead of OWL?
If you want to use VCL for the dialogs, then you cannot port them, you need to rewrite all the UI from scratch, as VCL is very different from the standard Windows dialogs.
If you want just to build the application with C++ Builder, then you can do so by upgrading to OWLNext - it is an open-source upgrade for the OWL framework and works with the modern compilers like C++ Builder and Visual C++.
You can also use OWLNext for a gradual migration to VCL - as VCL and OWL can co-exist in the same application, so you can migrate your old OWL application to C++ Builder, write any new UI in VCL, and gradually rewrite the old UI in VCL - it might be easier and safer than rewriting the whole application with VCL.
C++Builder does not have any native functionality that wraps resource dialogs in classes. You have to set that up manually in your own code if you need it. Otherwise, just use Win32 API functions like CreateDialog() when working with resource dialogs, or else redesign your UI to make use of VCL TForm windows instead of resource dialogs.
TTaskDialog is not what you think it is. It is just a wrapper for the Win32 API TaskDialogIndirect() function (Vista and later only), which is not related to what you are attempting to accomplish.

SWT Browser widget with Eclipse 4 RCP application

Please help to get started with Eclipse 4 RCP.
Set task is to create simple application with imbedded browser (using SWT Browser widget)
This Lars Vogel's Eclipse 4 RCP tutorial is used.
Created application is on GitHub. Now I want to add SWT browser widget.
I added class.
Unsurprisingly, now application doesn't start:
Added class seems quite of different nature. Seems I am missing some points about Eclipse 4 and SWT connection.
I have read the basics about Eclipse RCP before.
Here are docs: http://www.eclipse.org/swt/widgets/ and JavaDoc, but they don't explain.
Where should be my next steps to? What to read?
ViewPart is only used in Eclipse 3 RCP. Instead your part class should 1) be connected to the application model, as described in Vogella's tutorial; 2) create controls in a method annotated with #PostConstruct, with a signature like public void createControls(Composite parent). His example in Section 17.2 even contains a Browser, but it doesn't matter which SWT widgets you want to use: the process is the same.
You can't expect to find anything about RCP in SWT documentation! Look at the RCP documentation instead.
I have read the basics about Eclipse RCP before.
Try to forget them, they likely will just confuse you. Eclipse 4 RCP does very many things differently. Of course, SWT and JFace haven't changed, so you can still use what you read about them.

Resources