JavaFX able to control window components? - javafx

I have a general question regarding to JavaFX.
I am wondering if it is able to control window components such as file download / upload dialog (i.e: When you are using Internet Explorer, you may need to upload/download files. I want to automate the operation hopefully with javaFX). If they are possible, could you please, point me where to look?

What you're looking for is functionality similar to java.awt.Robot. JavaFX doesn't provide an API for this, but you can still use Glass to use Robot, see this question and this issue on javafx-jira

Related

Should I use Qt Widgets or Qt Quick to develop a rich text editor?

I am new to Qt in general, and I have been playing with it to get to learn about it since I have to develop a very specific text editor.
I want to know if anyone could help me understand which one is better (or the most indicated) for the development of a rich text editor. I have worked before with C and C++ but Qt Widgets seems like a very step hill for the time being and I am completely new to javascript in general.
Some of the settings that I would need to implement on the text editor for better context are:
Look for the user to be always connected to internet.
Transfer and receive data from another program.
Grant read only to the opened files and then permission to write on them when a button is clicked.
Has to work on linux and windows.
Needs to look great.
My context:
So far I have done a few little applications and even a little rich text editor on Qt Widgets, but since I was having problems with the GUI implementation that I wanted, I started looking for a way to solve it and found that Qt Quick might be the solution.
I have been trying Qt Quick, and for now on looks great, but I do not know if it has the capabilities to do what I have explained before. Or if it is better to use one or another.
I decided to create a new post since the one that I found looking for something similar is from 2014.
Also, the text editor for now only needs to work on desktop, but in a future might be on other devices and embedded systems.

In JavaFX, Is there a best practice or framework for creating program help files? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed last year.
Improve this question
I've been experimenting with using HTML as a structure for generating a help information area for a desktop program that I've finished writing and that seems to work ok, though I don't really like the way it is turning out and I began to wonder if perhaps there might be a better way to go about it. Perhaps a library that makes generating and linking content within Java a little easier in that context or some other means that I'm not aware of.
I did some Googling on the topic but found nothing specifically in reference to help menu / content creation.
Does anyone know of any libraries out there that would make it easier to create help info for end users?
Or, is there a "best practice" for doing this or any other method to that end?
Thank you,
Mike
What does Idea do?
Intellij is large java app that has decent help documentation. You could look and see how they did that, if that is something you wish to emulate. I think it is mostly good quality writing and organization rather than tool support, though I guess they use decent tooling too.
I did a quick check to see how idea create their doc. They write in markdown format. Here is the markdown style guide they use for creating the document, in generated html form and in markdown authoring form. A repository of docs used for one of their products is their open source sdk docs. The SDK docs project is an Idea project, so I guess they just use Idea for authoring. If it seems to be something that would help you, you could try cloning the project and generating documentation from it or contacting the project contributors for more info.
As far as tying the help content into your app, either you can display it in situ using a WebView or link to it externally using HostServices. You could study the help system used within Idea to see how they generally do that, e.g. help menus used, key commands responded to, icons used to link to the help system, etc.
Generally, the way it works is:
The document is written in markdown then processed and rendered to html.
The html documents have copious anchors throughout.
The help menu items link to the anchors directly.
Help menus and shortcut keys follow platform specific conventions and differ between Windows and Mac.
There is a single ? icon in dialogs which appears in a consistent place and it links to an anchor in the html for context sensitive help in the dialog.
The documentation itself is hosted on a website so it can be accessed independently of the application.
The app launches an external browser to view the help rather than using something like a WebView to show the help internally.
Additionally, Idea will use tooltips which show up on hover. Tooltips aren't used for every control or UI element, only certain ones. If there is a keyboard accelerator which can be used to trigger the control action, then there is a tooltip for it, and in the tooltip it lets you know what the keyboard shortcut to trigger it is.
The rendered HTML to which the app is linked is hosted at the jetbrains website.
Linking to HTML help
You could:
Link to your own hosted website, OR
Link to html files packaged with your app.
Both could be rendered by either WebView or a browser showing a document using HostServices, using the file: protocol to access html files packaged with your app or https: protocol for files hosted on your web server.
What does SceneBuilder do?
For a pure JavaFX application, SceneBuilder is quite large and complex. It has no reliance on internal help at all, just a single help menu item, accessible via an F1 shortcut. The help links to a website authored and hosted by Oracle (using the standard tool Oracle use for authoring most Java platform docs, which is likely a commercial tool). It is not as nicely integrated and context sensitive as the Idea example but it does demonstrate a simple approach to documenting an app via an external website.

Building a Custom Browser in JavaFx 8

I am interested in building a custom browser in javafx 8 using the WebView component as a personal project. One of the features I hope to include is the ability to play flash video / sound. I'm not sure where to start so I'm hoping someone here could give me a few pointers as to how I'd go about accomplishing this.
Also, if you're aware of any resources out there that might come in handy when it comes to adding additional functionality I'd appreciate it. I'm hoping to make this fairly full featured.
Thanks in advance!
I'd stop this project because WebView does not support flash videos.
https://docs.oracle.com/javase/8/javafx/media-tutorial/overview.htm
It looks like I found a component that meets my requirements. JxBrowser.
https://dzone.com/articles/htmlcssjavascript-gui-java-0
https://www.teamdev.com/jxbrowser

Is there a way for AutoIt to get JavaFX application's text

I am new to AutoIt and I'm using its java bridge and I really liked it. But from what i understand even though it support swing and swt it does not support JavaFX. When I use it with a javaFx application, I cant get the texts with its finder tool. So is there a way to get around this? A simple way to get texts and other things from JavaFX application for test verification purposes? Thank you for all your answers
check JABSimpleSpy that is a spy based on java accessibiliy bridge build with AutoIt
https://www.autoitscript.com/wiki/FAQ#How_can_I_control_.28click.2C_edit_etc.29_an_external_.28html.29_application.3F

How to get a File Explorer/Navigator to work in Adobe AIR applications?

I realize this is probably a simple question but my google-fu is failing me. I would like to get a windows explorer like file browser to popup when I click a button to select images to upload to my AIR application. However I cannot find a component that handles File exploring. Does anyone know what to use? Thanks!
Take a look on http://livedocs.adobe.com/flex/3/langref/mx/controls/FileSystemTree.html You can also find samples if you will search for "flex FileSystemTree"

Resources