JavaFX deployed as embedded in webbrowser - deployment

I developed a JavaFX 8 application as a desktop app.
Then created a self-signed certificate, packed the app into JAR, signed this JAR with the certificate, created a JNLP and HTML file for my application. Copied these files into the appropriate Tomcat folder.
Then tried to load the HTML page from localhost:8080/...
A splash screen appeared, then a progress bar and I saw my application, but it was not completely displayed. I used a BorderPane as layout and its top side was displayed, but not the center and bottom sides. By the way the center side was filled with TabPane. Every tab I implemented as a separate class. Can it be the problem?

Related

There was a css problem with the flutter_webview_pro package

enter image description here
I created the app using flutter_webview_pro package. The css menu at the top of the web page in the web view does not work properly. What kind of problem?
Below is how it works normally in the Chrome browser.
enter image description here
It does not work normally only in the webview.

Open custom tabs in fragment

I have implemented custom tabs in my app and I have bottom navigation bar. When I click on any item in the bottom bar the fragment opens. Inside the fragment the custom tabs have to open. Custom tabs have to be open in a view not as a separate window.
Custom Tabs is not a View, but an entire Activity that is hosted in the browser process and handled as part of the application tasks stack. So, it can't be part of another Activity's view hierarchy and can only be used as a standalone Activity.
The Android WebView is a an Android View and can be used inside an Activity. But,
generally, content opened inside the WebView should be designed with the component in mind, as it doesn't support every API available to modern web apps (eg: push notifications).

How to navigate to different pages in a chrome app without creating a new window?

My Chrome app contains two pages A1.html and A2.html. How can i navigate from A1.html to A2.html without creating a new window?
The page A1.html contains 10 div's and A2.html contains a back link to A1.html. My need is to load directly a specific div of A1.html when the back link in A2.html is pressed.
You can't navigate within a Chrome App window (Content Security Policy), although you can navigate to an external browser if you set the target attribute of the <a> element to "_blank". What you have to do, if you really want links to appear to work normally, is intercept the click on the link by setting an event handler and then changing the DOM from within JavaScript.
One easy way to change the DOM from JavaScript if you have an HTML fragment is to use the insertAdjacentHTML API (Google it for documentation).
While this might seem awkward, even limiting, think of a Chrome App as an app, and not a web page. After all, with a native Mac OS X or Windows app, you wouldn't expect to entirely change the UI in a window by simply clicking on a button, right? You'd expect that the app would do that via the native API. Same the Chrome Apps.
Alternatively, you can position a webview in the Chrome App window, and then HTML within the webview works normally, because that really is a "web view."

How to change Loading Workbench message in Splash Screen

I have an RCP application for which I've created a product file to deploy and run out of box,in the splash tab of product file I've changed the splash screen using my Plugin name, when i run my application a new splash screen appears that was okay,i still get the loading workbench message, how can i change/replace that message.Do i need to write code for this or a manual setting need to be done.
You should have a .product file. Open that (with the Product Configuration Editor - which should be what happens when you click open) and you will see a Spash tab. Make sure in the bottom section the Template you select is <none> and the Add Progress Bar and Add Progress Message are checked.
And then you will have to implement the splash handler extension point to provide the necessary progress information and text

Link Target in iPhone Based web app

I am building a web application that is to be run by adding the app to the home screen. Currently it has a list of users, clicking on a user takes you to a detail screen for that user and on that screen is a notes link to take the user to another screen with a grid of notes and a text box to add more notes.
When any links are clicked/tapped, the link is opened in Safari, not the current full screen Safari instance. I tried setting the target of the link to _self, but this had no effect.
Any ideas?
I learned a full screen iPhone webapp can only be a single web page. Any link you try to open will launch Safari instead of replacing the current page. To combat this, I used asp.net postbacks with panels to hide/load/show requested data.
I use target="_webapp" and it works just use for example <a href="http://your.link" target="_webapp"> and it gonna open the link without exit landscape (full screen) i dont know why but with some of my webapps works and sometimes dont.