FileDocCategorySizeDatePackage
IBMCalDemo.javaAPI DocExample791Mon Dec 29 13:52:20 GMT 2003None

IBMCalDemo

public class IBMCalDemo extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)


		Locale ar_loc = new Locale("ar");

		Calendar c = new com.ibm.icu.util.IslamicCalendar();

		DateFormat d = DateFormat.getDateInstance(DateFormat.LONG, ar_loc);

		String ar_date = d.format(c.getTime());
		System.out.println(ar_date);

		JFrame jf = new JFrame();
		Container cp = jf.getContentPane();
		cp.setLayout(new FlowLayout());
		JComponent demo = new JLabel(ar_date);
		demo.setFont(new Font("Lucida Sans", Font.PLAIN, 20));
		cp.add(demo);
		jf.pack();
		jf.setVisible(true);