Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

Is it possible to print color messages?
 Post subject: Is it possible to print color messages? Post rating: 0   New post Posted: Tue 21 Sep, 2010, 14:20 

User rating: 0
Joined: Tue 21 Sep, 2010, 12:52
Posts: 6
Is it possible to use "console.getOut().println()" method to output messages on message tab in different color (or background color)?


 
 Post subject: Re: Is it possible to print color messages? Post rating: 0   New post Posted: Wed 22 Sep, 2010, 15:32 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Yes you can use html for such purposes. Consider this
context.getConsole().getOut().println("<html><font color=\"#CC0033\">Test colored output</font>");


 

Jump to:  

cron
  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com