<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java_by_API%2Fjava.awt%2FComponentOrientation</id>
		<title>Java by API/java.awt/ComponentOrientation - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java_by_API%2Fjava.awt%2FComponentOrientation"/>
		<link rel="alternate" type="text/html" href="http://jexp.ru/index.php?title=Java_by_API/java.awt/ComponentOrientation&amp;action=history"/>
		<updated>2026-04-11T01:24:17Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://jexp.ru/index.php?title=Java_by_API/java.awt/ComponentOrientation&amp;diff=1189&amp;oldid=prev</id>
		<title> в 17:43, 31 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://jexp.ru/index.php?title=Java_by_API/java.awt/ComponentOrientation&amp;diff=1189&amp;oldid=prev"/>
				<updated>2010-05-31T17:43:48Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 17:43, 31 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://jexp.ru/index.php?title=Java_by_API/java.awt/ComponentOrientation&amp;diff=1190&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://jexp.ru/index.php?title=Java_by_API/java.awt/ComponentOrientation&amp;diff=1190&amp;oldid=prev"/>
				<updated>2010-05-31T14:31:25Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== ComponentOrientation: getOrientation(Locale locale) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
import java.awt.ruponentOrientation;&lt;br /&gt;
import java.util.Locale;&lt;br /&gt;
public class Main {&lt;br /&gt;
  public static void main(String[] argv) throws Exception {&lt;br /&gt;
    Locale myLocale = Locale.getDefault();&lt;br /&gt;
    ComponentOrientation ce = ComponentOrientation.getOrientation(myLocale);&lt;br /&gt;
    System.out.println(&amp;quot;Is horizontal? &amp;quot; + ce.isHorizontal());&lt;br /&gt;
    System.out.println(&amp;quot;Is left to right? &amp;quot; + ce.isLeftToRight());&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== ComponentOrientation: isHorizontal() ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
import java.awt.ruponentOrientation;&lt;br /&gt;
import java.util.Locale;&lt;br /&gt;
public class Main {&lt;br /&gt;
  public static void main(String[] argv) throws Exception {&lt;br /&gt;
    Locale myLocale;&lt;br /&gt;
    if (argv.length &amp;lt; 2)&lt;br /&gt;
      myLocale = Locale.getDefault();&lt;br /&gt;
    else&lt;br /&gt;
      myLocale = new Locale(argv[0], argv[1]);&lt;br /&gt;
    ComponentOrientation ce = ComponentOrientation.getOrientation(myLocale);&lt;br /&gt;
    System.out.println(&amp;quot;Is horizontal? &amp;quot; + ce.isHorizontal());&lt;br /&gt;
    System.out.println(&amp;quot;Is left to right? &amp;quot; + ce.isLeftToRight());&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== ComponentOrientation: isLeftToRight() ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
import java.awt.ruponentOrientation;&lt;br /&gt;
import java.util.Locale;&lt;br /&gt;
public class Main {&lt;br /&gt;
  public static void main(String[] argv) throws Exception {&lt;br /&gt;
    Locale myLocale;&lt;br /&gt;
    if (argv.length &amp;lt; 2)&lt;br /&gt;
      myLocale = Locale.getDefault();&lt;br /&gt;
    else&lt;br /&gt;
      myLocale = new Locale(argv[0], argv[1]);&lt;br /&gt;
    ComponentOrientation ce = ComponentOrientation.getOrientation(myLocale);&lt;br /&gt;
    System.out.println(&amp;quot;Is horizontal? &amp;quot; + ce.isHorizontal());&lt;br /&gt;
    System.out.println(&amp;quot;Is left to right? &amp;quot; + ce.isLeftToRight());&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== ComponentOrientation.RIGHT_TO_LEFT ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
import java.awt.ruponent;&lt;br /&gt;
import java.awt.ruponentOrientation;&lt;br /&gt;
import java.awt.Container;&lt;br /&gt;
import java.awt.FlowLayout;&lt;br /&gt;
import java.awt.event.WindowAdapter;&lt;br /&gt;
import java.awt.event.WindowEvent;&lt;br /&gt;
import javax.swing.JButton;&lt;br /&gt;
import javax.swing.JFrame;&lt;br /&gt;
import javax.swing.JMenu;&lt;br /&gt;
public class MainClass extends JFrame {&lt;br /&gt;
  public MainClass() {&lt;br /&gt;
    super(&amp;quot;MainClass&amp;quot;);&lt;br /&gt;
    Container contentPane = getContentPane();&lt;br /&gt;
    contentPane.setLayout(new FlowLayout());&lt;br /&gt;
    contentPane.add(new JButton(&amp;quot;OK&amp;quot;));&lt;br /&gt;
    contentPane.add(new JButton(&amp;quot;Cancel&amp;quot;));&lt;br /&gt;
    applyOrientation(this, ComponentOrientation.RIGHT_TO_LEFT);&lt;br /&gt;
  }&lt;br /&gt;
  public static void main(String[] argv) {&lt;br /&gt;
    JFrame frame = new MainClass();&lt;br /&gt;
    frame.addWindowListener(new WindowAdapter() {&lt;br /&gt;
      public void windowClosing(WindowEvent e) {&lt;br /&gt;
        System.exit(0);&lt;br /&gt;
      }&lt;br /&gt;
    });&lt;br /&gt;
    frame.pack();&lt;br /&gt;
    frame.setVisible(true);&lt;br /&gt;
  }&lt;br /&gt;
  private void applyOrientation(Component c, ComponentOrientation o) {&lt;br /&gt;
    c.setComponentOrientation(o);&lt;br /&gt;
    if (c instanceof JMenu) {&lt;br /&gt;
      JMenu menu = (JMenu) c;&lt;br /&gt;
      int ncomponents = menu.getMenuComponentCount();&lt;br /&gt;
      for (int i = 0; i &amp;lt; ncomponents; ++i) {&lt;br /&gt;
        applyOrientation(menu.getMenuComponent(i), o);&lt;br /&gt;
      }&lt;br /&gt;
    } else if (c instanceof Container) {&lt;br /&gt;
      Container container = (Container) c;&lt;br /&gt;
      int ncomponents = container.getComponentCount();&lt;br /&gt;
      for (int i = 0; i &amp;lt; ncomponents; ++i) {&lt;br /&gt;
        applyOrientation(container.getComponent(i), o);&lt;br /&gt;
      }&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
           &lt;br /&gt;
         &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>