Printing Block Ascii to JApplet Screen

Posted on 2006-06-04
Last Modified: 2010-03-31
I'm creating a JApplet and i'm trying to print characters as seen here:

As shown on that wikipedia article if you open a file with such characters in notepad with font set to Terminal, all will display fine. However

If I'm passed in Graphics g;
g.setFont( new Font("terminal", Font.PLAIN, 9));
g.drawString("    ÛÛÛÛÛÛÛ", 0, 0);

does not work.

Anyone have a clue? I've asked countless people and no one has a clue. Seems to be extremely difficult or rarely known ;x
Question by:cl0ckwork
    LVL 14

    Expert Comment

    > does not work.
    what does make you feel its not working
    LVL 14

    Accepted Solution

    You'll have to use unicode for the special characters:

    String s = "a\u2589b";

    here are the character listings:

    and the page:

    Author Comment

    Thank you very much StillUnaware, that site is very helpful!
    LVL 14

    Expert Comment

    glad to help

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
    Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
    The viewer will learn how to implement Singleton Design Pattern in Java.
    This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now