• Post Reply Bookmark Topic Watch Topic
  • New Topic

Jess router refer to TextField/TextArea in javaFx

 
farouk bennaceur
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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.
 
Roel De Nijs
Sheriff
Posts: 10763
148
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • 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.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!