Hi,
        1)Could anyone tell me how I could get the javax.swing package.

        2)Also does anyone know where i could get a small program which retrieves
email from a specific POP 3 account.

Thanks

Farhan


-----Original Message-----
From: Jonathan Knudsen [mailto:[EMAIL PROTECTED]]
Sent: 29 April 1999 22:14
To: Farhan Killedar
Cc: Allen Noren; [EMAIL PROTECTED]
Subject: Re: Fonts with Java


Hi Farhan,

JDK 1.2 (Java 2) comes with fonts that include
Arabic glyphs (the Lucida Sans fonts). At the
end of this email, there's an example that puts
some Arabic text in a JTextArea.

I hope this helps. I'm not sure if JTextArea
correctly handles the editing of right-to-left
text, but the example demonstrates that you
can at least show it.

Jonathan

-----
import java.awt.*;
import java.awt.event.*;

import javax.swing.*;

public class ArabicExample {
  public static void main(String[] args) {
    JFrame f = new JFrame("ArabicExample v1.0");
    f.addWindowListener(new WindowAdapter() {
      public void windowClosing(WindowEvent we) { System.exit(0); }
    });
    f.setSize(200, 200);
    f.setLocation(200, 200);

    JTextField field = new JTextField(10);
    field.setFont(new Font("Lucida Sans Regular", Font.PLAIN, 12));
    field.setText("\u062e\u0644\u0639");

    f.getContentPane().setLayout(new FlowLayout());
    f.getContentPane().add(field);

    f.setVisible(true);
  }
}
-----


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to