• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Jess router refer to TextField/TextArea in javaFx

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am looking to define a router in java which take the Jess's printout content into TextField/TextArea of JavaFx GUI.

The problem is that i am using JavaFx which import "javafx.scene.control.TextArea" instead of "java.awt.TextArea" in Swing.

I had tried to extends the TextAreaWriter class and redefine the constractor to get TextArea object, but the problem still in TextArea's append method.

Thank you in advance.
 
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi farouk bennaceur,

First of all, a warm welcome to CodeRanch!

farouk bennaceur wrote:I had tried to extends the TextAreaWriter class and redefine the constractor to get TextArea object, but the problem still in TextArea's append method.


Based on the documentation, I would think you can simply create a class similar to the jess.awt.TextAreaWriter but instead of using an AWT TextArea internally, it uses a JavaFX one.

Hope it helps!
Kind regards,
Roel

PS. Here at CodeRanch we request that you BeForthrightWhenCrossPostingToOtherSites[/url] which means that we would have preferred that you'd told us about your identical question at StackOverflow.
 
If you have a bad day in October, have a slice of banana cream pie. And this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic