cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

How to design a custom widget using Java Source Code ?

akochi
1-Newbie

How to design a custom widget using Java Source Code ?

I am trying to build a custom widget and I create a UI using JavaFX. Now how do I implement my java source code for ThingWorx Mashup Widget design?

I use Thingworx-eclipse-plugin and ThingWorx-Extensions-SDK to build the extension. My java application perfectly run in my computer, but when I use this extension in Mashup no design appears there.

2 REPLIES 2
davel
1-Newbie
(To:akochi)

Thingworx widgets for Mashups are strictly written in JavaScript, as they are executed in the browser, not on the server. Java UI code will not work.

mvonhasselbach
5-Regular Member
(To:akochi)

Hi Asaduzzaman,

Dave is not completely right - in fact there are ways to use and combine JavaFX based applets and javascript code in WebPages. See JavaFX and JavaScript for details. But I would not recommend this approach as Java applets are getting more and more outdated and the big browsers start to suppress them. And nowadays the native Java widgets are not more capable or interactive than corresponding widgets based on HTML5 and JavaScript. Documentation how to create your own UI Widgets can be found here: Creating UI Widgets for ThingWorx, Widget API (IDE) and Widget API (Runtime).

Cheers, moritz

Announcements