Is it possible to develop an application using java swing and jquery hand-in-hand? I want to make an application which is a kind of form . I am planning to develop GUI in swing . But, I m also looking forward to use jQuery in that.So is it possible?
Related
I am developing Office 365 outlook add in for one of our product that is developed on Java and Vaadin 6 framework. Our Java application has a very complex interface. We are tying to create similar interface in outlook web addin.
Actually what we are trying to achieve is that, we want to use the same Java Vaadin UI inside the outlook web add-in. We do not want to create UI using javascript as the UI of our main Java application it too complex and it keeps changing in different scenarios.
As per documentation, iframe is not allowed inside the add in. So can any one suggest me a way to achieve this? Thanks in advance !
Follow the instruction to create add-in: https://msdn.microsoft.com/en-us/library/cc668191.aspx
Then put your iframe inside the add-in page, and it works fine.
I'm planning to develop a web based drawing tool using the java backend, what my question is can I use swing as a front end for this application or do I need to go for html canvas kind of technology.
Anyway my preference is to develop the front end using swing but need to know whether is it possible for a web based application.
Web based usually means that it's available on a website. Swing is not a website. You could use Java Webstart to launch a Swing application, but I wouldn't call that "web based".
Then of course you have applets, but I'd advise against that, since many people have disabled the Java plugin for security reasons.
I would like to use Google Web Toolkit's GUI in common java application instead of Swing. How could I implement that? Could anybody show the simpliest example how to do this?
I would like to use Google Web Toolkit's GUI in common java application instead of Swing.
No. That's not the way how GWT works. GWT's java GUI code compiles to JavaScript and runs in Browser.
So the answer is No.
I was wondering how I could embed a browser like view in a Java client application, at the same time that I can interact with it by means of JavaScript.
The problem that triggered this question is the following:
The interface of my application consists of a (Google) map and some svg stuff.
This is easy to do in a browser.
However, I also need access to some special Java libraries that can process some information from the map (e.g., certain coordinates in the map) and that answers values that should influence the browser view (e.g., a path should be drawn over the map).
My first idea was to implement the Java side behaviour as a REST web service, so from JavaScript I will invoke this webservice sending relevant information about the map and using the answer to update the map. Nevertheless, for my current needs (this is only a prototype) using webservices is a bit too much of infrastructure.
Is there a way I could just:
embed a browser like view in my Java application.
Interact from the Java side with this view by means of JavaScript functions implemented in the web page displayed in the browser view (such as these functions will influence the rendering of the page in the browser like view) ?.
I found other questions related to how to embed a browser in a swing application (e.g., Embedding web browser window in Java) and JDIC seems to be able to do this. Although some people report it is difficult to make it work in OSX (the OS I use) and do not mention if it is possible to interact with the browser by means of JavaScript.
It seems to me that in Android it is possible to make JavaScript calls from the Java (Android) side, so probably this is also possible in plain Java.
Thanks for any pointer !
With Java FX 2 you can. You get a webkit webview there. Can interact with it back and forth with java<->javascript.
For an example embedding google maps see: http://java-buddy.blogspot.se/2012/03/embed-google-maps-in-javafx-webview.html
You can embed java fx in swing with JFXPanel if you don't want to go with 100% JavaFX yet.
If you can use swt, take a look at SWT Browser widget
For javascript you can use
http://www.mozilla.org/rhino/
Does anyone know if it is possible to interact with a java applet via .net?
Edit: I was able to use the UI Automation framework to locate the java applet, and from there use OCR to read data and simulate mouse/keyboard input into the applet.
You may well be able to do it using accessibility APIs, which are designed to let screen-readers and so on interact with programs. Have a look at:
http://en.wikipedia.org/wiki/Microsoft_UI_Automation