RussiaUnicode.java Source code

Java tutorial

Introduction

Here is the source code for RussiaUnicode.java

Source

import java.awt.Graphics;
import java.awt.Graphics2D;

import javax.swing.JFrame;
import javax.swing.JPanel;

public class RussiaUnicode extends JPanel {
    public void paint(Graphics g) {
        super.paintComponent(g);
        Graphics2D g2d = (Graphics2D) g;
        g2d.drawString("\u0424\u0451\u0434\u043e\u0440.", 20, 30);
    }

    public static void main(String[] args) {
        JFrame frame = new JFrame("Unicode");
        frame.add(new RussiaUnicode());
        frame.setSize(520, 220);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setVisible(true);
    }
}