Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6945575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:27:14+00:00 2026-05-27T13:27:14+00:00

How do I write a sign like ◄ and ► (funny… its not masked

  • 0

How do I write a sign like ◄ and ► (funny… its not masked here by itself, here you go:) ◄ and ► in Java when I need this form \u00df (thats an “ß”, fyi)… I tried just to put it in hex like \u25BA but that results in false symbols. What am I missing?

Please be so kind to post answer and method!

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T13:27:15+00:00Added an answer on May 27, 2026 at 1:27 pm

    This Swing code works for me:

    public static void main(String[] args) {
        String labelText = "\u25C4 \u25BA";
        JFrame frame = new JFrame();
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        JPanel panel = new JPanel();
        frame.add(panel);
        JLabel label = new JLabel();
        label.setText(labelText);
        panel.add(label);
        frame.pack();
        frame.setVisible(true);
    }
    

    Are you doing something very different?

    You can certainly mess it up by using fonts which do not support that character. So for example…

        JTextField field = new JTextField();
        field.setText(labelText);
    
        // this font has the symbol
        field.setFont(new Font("Courier New", Font.PLAIN, 12));
        panel.add(field);
        field = new JTextField();
        field.setText(labelText);
    
        // this font does not
        field.setFont(new Font("Microsoft Sans Serif", Font.PLAIN, 12));
        panel.add(field);
        panel.add(field);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to write a sign function template. I did it like this: template<class
Java applets don't allow you to write a custom ClassLoader, unless you sign your
Please write a list of tasks that a copy constructor and assignment operator need
I write a Text Editor with Java , and I want to add Undo
I need to write a small tool that parses a textual input and generates
I need to write authentication function with asynchronous callback from remote Auth API. Simple
really new to JQuery.. like 2 hours new. Began to write a drop down
How do i replace a amphersand with the html sign & in a xml
I am making a .bat file, and I would like it to write ASCII
I have a string that looks like this: -2.2,1.1-6.9,2.3-12.8,2.3 And I want to write

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.