JAVAFX Text Area is not showing formatted output of the string


Here scenario is program reads output properly and it is also printing properly in the log file but when displying same output on JAVAFX text area its format is getting changed(Its in tabular format) and its not displaying properly. <img alt="This is the image of text area" class="b-lazy" data-src="https://i.stack.imgur.com/7y4Z3.png" data-original="https://i.stack.imgur.com/7y4Z3.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" /> Below is the output getting written in log file:

****************PR Deploy Summary Report Start**************** Folder Server Type Failed 010_StyleSheets SS 0 010_StyleSheets WS 0 020_XSL SS 0 030_XSLT SS 0 040_WebTemplates SS 0 ****************PR Deploy Summary Report****************

Actually when i am copying this from text area and pasting it somewhere else then its agian showing it properly in tabular format.But its not displaying it properly on text area. There is very simple code written for this as below:

DeploymentTaskController.actLogTArea.appendText(UnixBoxTask.summary.toString()); DeploymentTaskController.actLogTArea.end();

Here "actLogTArea" is the reference of text area, summary is StringBuilder ...can anybody guess what can be the issue here? any solution if somebody has already faced this? it may be possible that image i have placed in question is not visible.


Change the font of textArea to generic monospaced one:

actLogTArea.setStyle("-fx-font-family: monospace");

To change other font properties (and see limitations) refer to <a href="https://docs.oracle.com/javafx/2/api/javafx/scene/doc-files/cssref.html" rel="nofollow">JavaFX CSS Reference Guide</a>.


  • Cache miss with Rails 3.2 and page caching in development - anyone else?
  • Yii: how to show a field from a related table's related table?
  • JITSU FAILED TO INSTALL OSX [node 0.8.17 and NPM 1.2.0] WTF
  • Complete data loss Ionic / Cordova LocalStorage and Websql iOS 8.4.1
  • How does one pull statistics (either daily or over time) from the YouTube API
  • MySQL diacritic insensitive search (Arabic)
  • How to Get reports in odt format from rml files in openerp
  • Gradle test fails with NullPointerException
  • how tensorflow worker driver training process and cause variables update on ps job?
  • WP7 - read from CSV file? Or what to do with the data?
  • ELMAH: Can you set it up to email errors only remotely?
  • Adding new column to DataFrame with values dependent on index ref
  • Safari PHP form submission -file upload hangs
  • R h2o.glm - issue with max_active_predictors
  • AWS-SES: Handling Bounces for Invalid ISPs
  • Problems installing Yesod for Haskell
  • Unable to install Git-core+svn by MacPorts
  • Installing iPhone App to iPhone
  • Why Encoding.ASCII != ASCIIEncoding.Default in C#?
  • VSO Build — Response status code does not indicate success: 404 (Not Found)
  • Paperclip, set path outside of rails root folder
  • ilmerge with a PFX file
  • Is calc() supported in html email?
  • Launch Runnable Jar from Web Start
  • Resize panoramic image to fixed size
  • Volusion's generic SQL folder, functionality
  • How to extract text from Word files using C#?
  • using conditional logic : check if record exists; if it does, update it, if not, create it
  • Proper folder structure for lots of source files
  • Load html files in TinyMce
  • python regex in pyparsing
  • How can I get HTML syntax highlighting in my editor for CakePHP?
  • How do you join a server to an Active Directory (domain)?
  • coudnt use logback because of log4j
  • How do I configure my settings file to work with unit tests?
  • Android Google Maps API OnLocationChanged only called once
  • IndexOutOfRangeException on multidimensional array despite using GetLength check
  • Append folder name and increment by 1 using batch script
  • Binding checkboxes to object values in AngularJs
  • How can I use threading to 'tick' a timer to be accessed by other threads?