<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
        <channel>
        <title>Форум сайта разработчиков developers.sun.ru</title>
      <atom:link href="http://developers.sun.ru/forum//forumrss.php" rel="self" type="application/rss+xml" />
        <link>http://developers.sun.ru/forum//</link>
        <description>Официальный форум сайта разработчиков developers.sun.ru</description>
        <language>en-us</language>
        <ttl>60</ttl>
               <item>
               <title>Re: Sun Tech Days 2010 в Санкт-Петербурге</title>
               <link>http://developers.sun.ru/forum//viewtopic.php?f=12&amp;t=1147&amp;p=2811#p2811</link>
               <description><![CDATA[<table cellpadding="1" cellspacing="1" style="border:1px solid #a1a1a1" width="100%" align="center"><div><tr><td><p><img src="http://developers.sun.ru/forum//styles/prosilver/imageset/topic_read.gif" width="27" height="27" alt="Нет новых сообщений" title="Нет новых сообщений" /><br /><font size="3"><b>Replies:</b></font> 3<br />
                <font size="3"><b>Views:</b></font> 107<br />
                <font size="3"><b>Last Post By:</b></font> <a href="http://developers.sun.ru/forum//memberlist.php?mode=viewprofile&amp;u=62">raindrop</a>
                <a href="http://developers.sun.ru/forum//viewtopic.php?f=12&amp;t=1147&amp;p=2811#p2811"><img src="http://developers.sun.ru/forum//styles/prosilver/imageset/icon_topic_newest.gif" width="11" height="9" alt="Перейти к последнему сообщению" title="Перейти к последнему сообщению" /></a><b> ON: Чт мар 11, 2010 3:46 pm</b><br />
                <font size="3"><b>Topic By:</b></font> <a href="http://developers.sun.ru/forum//memberlist.php?mode=viewprofile&amp;u=62">raindrop</a><b> ON: Чт мар 11, 2010 3:46 pm</b><br />Пока говорят, что в понедельник откроют регистрацию.<br />Я думаю, что ссылку на регистрацию должны будут указать в новостях на сайте Tech Days.</p></td></tr></div></table><hr>]]></description>
               <pubDate>Чт, 11 мар 2010 15:46:33 UTC</pubDate>
            <guid>http://developers.sun.ru/forum//viewtopic.php?f=12&amp;t=1147&amp;p=2811#p2811</guid>
               </item>
               <item>
               <title>JavaFX Мини-Конкурсы на Sun Tech Days</title>
               <link>http://developers.sun.ru/forum//viewtopic.php?f=12&amp;t=1201&amp;p=2810#p2810</link>
               <description><![CDATA[<table cellpadding="1" cellspacing="1" style="border:1px solid #a1a1a1" width="100%" align="center"><div><tr><td><p><img src="http://developers.sun.ru/forum//styles/prosilver/imageset/topic_read.gif" width="27" height="27" alt="Нет новых сообщений" title="Нет новых сообщений" /><br /><font size="3"><b>Replies:</b></font> 0<br />
                <font size="3"><b>Views:</b></font> 42<br />
                <font size="3"><b>Last Post By:</b></font> <a href="http://developers.sun.ru/forum//memberlist.php?mode=viewprofile&amp;u=62">raindrop</a>
                <a href="http://developers.sun.ru/forum//viewtopic.php?f=12&amp;t=1201&amp;p=2810#p2810"><img src="http://developers.sun.ru/forum//styles/prosilver/imageset/icon_topic_newest.gif" width="11" height="9" alt="Перейти к последнему сообщению" title="Перейти к последнему сообщению" /></a><b> ON: Ср мар 10, 2010 1:26 pm</b><br />
                <font size="3"><b>Topic By:</b></font> <a href="http://developers.sun.ru/forum//memberlist.php?mode=viewprofile&amp;u=62">raindrop</a><b> ON: Ср мар 10, 2010 1:26 pm</b><br />Прими участие в JavaFX мини-конкурсах, запрограммируй фрактал, мелодию или музыкальный инструмент и получи приз на конференции Sun Tech Days в Санкт-Петербурге.<br /><br />Все подробности на сайте:<br /><!-- m --><a class="postlink" href="http://developers.sun.ru/content/view/456/4/">http://developers.sun.ru/content/view/456/4/</a><!-- m --></p></td></tr></div></table><hr>]]></description>
               <pubDate>Ср, 10 мар 2010 13:26:12 UTC</pubDate>
            <guid>http://developers.sun.ru/forum//viewtopic.php?f=12&amp;t=1201&amp;p=2810#p2810</guid>
               </item>
               <item>
               <title>Re: Распечатать сцену</title>
               <link>http://developers.sun.ru/forum//viewtopic.php?f=12&amp;t=1200&amp;p=2809#p2809</link>
               <description><![CDATA[<table cellpadding="1" cellspacing="1" style="border:1px solid #a1a1a1" width="100%" align="center"><div><tr><td><p><img src="http://developers.sun.ru/forum//styles/prosilver/imageset/topic_read.gif" width="27" height="27" alt="Нет новых сообщений" title="Нет новых сообщений" /><br /><font size="3"><b>Replies:</b></font> 1<br />
                <font size="3"><b>Views:</b></font> 60<br />
                <font size="3"><b>Last Post By:</b></font> <a href="http://developers.sun.ru/forum//memberlist.php?mode=viewprofile&amp;u=62">raindrop</a>
                <a href="http://developers.sun.ru/forum//viewtopic.php?f=12&amp;t=1200&amp;p=2809#p2809"><img src="http://developers.sun.ru/forum//styles/prosilver/imageset/icon_topic_newest.gif" width="11" height="9" alt="Перейти к последнему сообщению" title="Перейти к последнему сообщению" /></a><b> ON: Ср мар 10, 2010 12:54 pm</b><br />
                <font size="3"><b>Topic By:</b></font> <a href="http://developers.sun.ru/forum//memberlist.php?mode=viewprofile&amp;u=62">raindrop</a><b> ON: Ср мар 10, 2010 12:54 pm</b><br />Наверное, со сцены можно получить JComponent (как это описано по ссылкам), а потом его распечатать обычными Java средствами.</p></td></tr></div></table><hr>]]></description>
               <pubDate>Ср, 10 мар 2010 12:54:57 UTC</pubDate>
            <guid>http://developers.sun.ru/forum//viewtopic.php?f=12&amp;t=1200&amp;p=2809#p2809</guid>
               </item>
               <item>
               <title>Re: Sun Tech Days 2010 в Санкт-Петербурге</title>
               <link>http://developers.sun.ru/forum//viewtopic.php?f=12&amp;t=1147&amp;p=2808#p2808</link>
               <description><![CDATA[<table cellpadding="1" cellspacing="1" style="border:1px solid #a1a1a1" width="100%" align="center"><div><tr><td><p><img src="http://developers.sun.ru/forum//styles/prosilver/imageset/topic_read.gif" width="27" height="27" alt="Нет новых сообщений" title="Нет новых сообщений" /><br /><font size="3"><b>Replies:</b></font> 3<br />
                <font size="3"><b>Views:</b></font> 107<br />
                <font size="3"><b>Last Post By:</b></font> <a href="http://developers.sun.ru/forum//memberlist.php?mode=viewprofile&amp;u=62">raindrop</a>
                <a href="http://developers.sun.ru/forum//viewtopic.php?f=12&amp;t=1147&amp;p=2811#p2811"><img src="http://developers.sun.ru/forum//styles/prosilver/imageset/icon_topic_newest.gif" width="11" height="9" alt="Перейти к последнему сообщению" title="Перейти к последнему сообщению" /></a><b> ON: Чт мар 11, 2010 3:46 pm</b><br />
                <font size="3"><b>Topic By:</b></font> <a href="http://developers.sun.ru/forum//memberlist.php?mode=viewprofile&amp;u=62">raindrop</a><b> ON: Ср мар 10, 2010 11:33 am</b><br />Я попробую спросить у организаторов.</p></td></tr></div></table><hr>]]></description>
               <pubDate>Чт, 11 мар 2010 15:46:33 UTC</pubDate>
            <guid>http://developers.sun.ru/forum//viewtopic.php?f=12&amp;t=1147&amp;p=2808#p2808</guid>
               </item>
               <item>
               <title>Распечатать сцену</title>
               <link>http://developers.sun.ru/forum//viewtopic.php?f=12&amp;t=1200&amp;p=2807#p2807</link>
               <description><![CDATA[<table cellpadding="1" cellspacing="1" style="border:1px solid #a1a1a1" width="100%" align="center"><div><tr><td><p><img src="http://developers.sun.ru/forum//styles/prosilver/imageset/topic_read.gif" width="27" height="27" alt="Нет новых сообщений" title="Нет новых сообщений" /><br /><font size="3"><b>Replies:</b></font> 1<br />
                <font size="3"><b>Views:</b></font> 60<br />
                <font size="3"><b>Last Post By:</b></font> <a href="http://developers.sun.ru/forum//memberlist.php?mode=viewprofile&amp;u=62">raindrop</a>
                <a href="http://developers.sun.ru/forum//viewtopic.php?f=12&amp;t=1200&amp;p=2809#p2809"><img src="http://developers.sun.ru/forum//styles/prosilver/imageset/icon_topic_newest.gif" width="11" height="9" alt="Перейти к последнему сообщению" title="Перейти к последнему сообщению" /></a><b> ON: Ср мар 10, 2010 12:54 pm</b><br />
                <font size="3"><b>Topic By:</b></font> <a href="http://developers.sun.ru/forum//memberlist.php?mode=viewprofile&amp;u=4189">ana</a><b> ON: Вт мар 09, 2010 10:59 pm</b><br />Как сохранить сцену в формате PNG понятно (<a href="http://developers.sun.ru/forum/viewtopic.php?f=12&amp;t=1129" class="postlink">http://developers.sun.ru/forum/viewtopic.php?f=12&amp;t=1129</a>)  , а вот как распечатать сцену?<br /><br />Напрямую наверное нельзя, иначе не было бы таких решений как это, например&gt;<br /><br /><a href="http://rakeshmenonp.wordpress.com/2010/01/14/javafx-printing/" class="postlink">http://rakeshmenonp.wordpress.com/2010/01/14/javafx-printing/</a><br /><br />или с другой стороны рекомендуют использовать awt.print компоненты (что наверно <br />более правильно)&gt;<br /><dl class="codebox"><dt>Code: <a href="#" onclick="selectCode(this); return false;">Выделить всё</a></dt><dd><code>...<br />import java.awt.print.Printable;<br />...<br /><br />public class Stage implements Printable, ...<br />{<br />@Override<br />&nbsp; public int print( Graphics g, PageFormat pf, int iPage )<br />&nbsp; throws PrinterException {....<br />....<br />&nbsp; &nbsp; &nbsp; Graphics2D g2&nbsp; &nbsp; = (Graphics2D)g;<br />...<br />&nbsp; &nbsp; &nbsp; g2.translate( pf.getImageableX(), pf.getImageableY() );<br />&nbsp; &nbsp; &nbsp; g2.scale ...<br />&nbsp; &nbsp; &nbsp; g2.setFont ...<br />&nbsp; &nbsp; &nbsp; g2.setColor( Color.black );<br />&nbsp; &nbsp; &nbsp; g2.drawRect( iPosX, iPosY, iWdth, iHght );<br />&nbsp; &nbsp; &nbsp; g2.drawLine( iPosX, iHght/2 + iWdth/50, iPosX + iWdth, iHght/2 - iWdth/50 );<br />&nbsp; &nbsp; &nbsp; g2.drawLine( iPosX, iHght/2 - iWdth/50, iPosX + iWdth, iHght/2 + iWdth/50 );<br />&nbsp; &nbsp; ...<br /></code></dd></dl><br /><br />Кажется всего-то делов, переписать метод print, считать с javaFX сцены<br />все узлы, и перерисовать их в Graphics2D g2 ... и вывести всё на принтер.<br /><br />Но вроде же можно Graphics2D g2 получить со сцены, как реализовано здесь<br />например<br /> <a href="http://forums.sun.com/thread.jspa?messageID=10740815#10740815" class="postlink">http://forums.sun.com/thread.jspa?messageID=10740815#10740815</a>  ?<br /><br />Т.е. если каким то образом передать методу print,  g2   со сцены напрямую,<br />можно распечатать любую(?) сцену?</p></td></tr></div></table><hr>]]></description>
               <pubDate>Ср, 10 мар 2010 12:54:57 UTC</pubDate>
            <guid>http://developers.sun.ru/forum//viewtopic.php?f=12&amp;t=1200&amp;p=2807#p2807</guid>
               </item>
               <item>
               <title>Какие общие перспективы у проекта LWUIT и мобильного JavaFX</title>
               <link>http://developers.sun.ru/forum//viewtopic.php?f=12&amp;t=1198&amp;p=2805#p2805</link>
               <description><![CDATA[<table cellpadding="1" cellspacing="1" style="border:1px solid #a1a1a1" width="100%" align="center"><div><tr><td><p><img src="http://developers.sun.ru/forum//styles/prosilver/imageset/topic_read.gif" width="27" height="27" alt="Нет новых сообщений" title="Нет новых сообщений" /><br /><font size="3"><b>Replies:</b></font> 0<br />
                <font size="3"><b>Views:</b></font> 43<br />
                <font size="3"><b>Last Post By:</b></font> <a href="http://developers.sun.ru/forum//memberlist.php?mode=viewprofile&amp;u=628">alexsb</a>
                <a href="http://developers.sun.ru/forum//viewtopic.php?f=12&amp;t=1198&amp;p=2805#p2805"><img src="http://developers.sun.ru/forum//styles/prosilver/imageset/icon_topic_newest.gif" width="11" height="9" alt="Перейти к последнему сообщению" title="Перейти к последнему сообщению" /></a><b> ON: Вт мар 09, 2010 12:42 pm</b><br />
                <font size="3"><b>Topic By:</b></font> <a href="http://developers.sun.ru/forum//memberlist.php?mode=viewprofile&amp;u=628">alexsb</a><b> ON: Вт мар 09, 2010 12:42 pm</b><br />Судя по схеме<br /><img src="http://java.sun.com/javame/technology/lwuit/img/lwuit-roles-large.jpg" alt="Изображение" /><br />у проекта LWUIT и мобильного JavaFX есть общая цель - сделать работу дизайнеров пользовательского интерфейса более комфортной. <br /><span style="color: #FF0FBF">Мне кажется, что под мобильные устройства сейчас проще сделать единую графическую платформу, чем под DeskTop системы. Или я ошибаюсь?<br />Появление GPU в работе персональных компьютеров для обработки графики, а на мобильных пока один лишь процессор этим занят...</span></p></td></tr></div></table><hr>]]></description>
               <pubDate>Вт, 09 мар 2010 12:42:50 UTC</pubDate>
            <guid>http://developers.sun.ru/forum//viewtopic.php?f=12&amp;t=1198&amp;p=2805#p2805</guid>
               </item>
               <item>
               <title>Re: Sun Tech Days 2010 в Санкт-Петербурге</title>
               <link>http://developers.sun.ru/forum//viewtopic.php?f=12&amp;t=1147&amp;p=2804#p2804</link>
               <description><![CDATA[<table cellpadding="1" cellspacing="1" style="border:1px solid #a1a1a1" width="100%" align="center"><div><tr><td><p><img src="http://developers.sun.ru/forum//styles/prosilver/imageset/topic_read.gif" width="27" height="27" alt="Нет новых сообщений" title="Нет новых сообщений" /><br /><font size="3"><b>Replies:</b></font> 3<br />
                <font size="3"><b>Views:</b></font> 107<br />
                <font size="3"><b>Last Post By:</b></font> <a href="http://developers.sun.ru/forum//memberlist.php?mode=viewprofile&amp;u=62">raindrop</a>
                <a href="http://developers.sun.ru/forum//viewtopic.php?f=12&amp;t=1147&amp;p=2811#p2811"><img src="http://developers.sun.ru/forum//styles/prosilver/imageset/icon_topic_newest.gif" width="11" height="9" alt="Перейти к последнему сообщению" title="Перейти к последнему сообщению" /></a><b> ON: Чт мар 11, 2010 3:46 pm</b><br />
                <font size="3"><b>Topic By:</b></font> <a href="http://developers.sun.ru/forum//memberlist.php?mode=viewprofile&amp;u=628">alexsb</a><b> ON: Вт мар 09, 2010 10:09 am</b><br />Спасибо за информацию. Один только вопрос, где предварительно можно записаться на мастер-классы по FX.  <img src="http://developers.sun.ru/forum//images/smilies/icon_question.gif" alt=":?:" title="Question" /></p></td></tr></div></table><hr>]]></description>
               <pubDate>Чт, 11 мар 2010 15:46:33 UTC</pubDate>
            <guid>http://developers.sun.ru/forum//viewtopic.php?f=12&amp;t=1147&amp;p=2804#p2804</guid>
               </item>
               <item>
               <title>Re: Примеры для focusTraversable</title>
               <link>http://developers.sun.ru/forum//viewtopic.php?f=12&amp;t=1145&amp;p=2802#p2802</link>
               <description><![CDATA[<table cellpadding="1" cellspacing="1" style="border:1px solid #a1a1a1" width="100%" align="center"><div><tr><td><p><img src="http://developers.sun.ru/forum//styles/prosilver/imageset/topic_read.gif" width="27" height="27" alt="Нет новых сообщений" title="Нет новых сообщений" /><br /><font size="3"><b>Replies:</b></font> 5<br />
                <font size="3"><b>Views:</b></font> 128<br />
                <font size="3"><b>Last Post By:</b></font> <a href="http://developers.sun.ru/forum//memberlist.php?mode=viewprofile&amp;u=62">raindrop</a>
                <a href="http://developers.sun.ru/forum//viewtopic.php?f=12&amp;t=1145&amp;p=2802#p2802"><img src="http://developers.sun.ru/forum//styles/prosilver/imageset/icon_topic_newest.gif" width="11" height="9" alt="Перейти к последнему сообщению" title="Перейти к последнему сообщению" /></a><b> ON: Пт мар 05, 2010 2:04 pm</b><br />
                <font size="3"><b>Topic By:</b></font> <a href="http://developers.sun.ru/forum//memberlist.php?mode=viewprofile&amp;u=62">raindrop</a><b> ON: Пт мар 05, 2010 2:04 pm</b><br /><blockquote><div><cite>ana писал(а):</cite><br />Здесь нарисованны два прямоугольника и на каждом из них висит onClicked.<br />Если вышесказанное верно, то после клика на прямоугольник, он должен<br />быть сфокусирован. Но как видно по результатам работы скрипта, этого не происходит</div></blockquote><br /><br />Похоже, что для 2D фигур фокус действительно не передается при нажатии на них мышкой.<br /><br />Тогда остается самому запрашивать фокус.</p></td></tr></div></table><hr>]]></description>
               <pubDate>Пт, 05 мар 2010 14:04:49 UTC</pubDate>
            <guid>http://developers.sun.ru/forum//viewtopic.php?f=12&amp;t=1145&amp;p=2802#p2802</guid>
               </item>
               <item>
               <title>выполнение скриптов при запуске приложения</title>
               <link>http://developers.sun.ru/forum//viewtopic.php?f=20&amp;t=1196&amp;p=2801#p2801</link>
               <description><![CDATA[<table cellpadding="1" cellspacing="1" style="border:1px solid #a1a1a1" width="100%" align="center"><div><tr><td><p><img src="http://developers.sun.ru/forum//styles/prosilver/imageset/topic_read.gif" width="27" height="27" alt="Нет новых сообщений" title="Нет новых сообщений" /><br /><font size="3"><b>Replies:</b></font> 0<br />
                <font size="3"><b>Views:</b></font> 42<br />
                <font size="3"><b>Last Post By:</b></font> <a href="http://developers.sun.ru/forum//memberlist.php?mode=viewprofile&amp;u=7401">and73y</a>
                <a href="http://developers.sun.ru/forum//viewtopic.php?f=20&amp;t=1196&amp;p=2801#p2801"><img src="http://developers.sun.ru/forum//styles/prosilver/imageset/icon_topic_newest.gif" width="11" height="9" alt="Перейти к последнему сообщению" title="Перейти к последнему сообщению" /></a><b> ON: Пт мар 05, 2010 12:54 pm</b><br />
                <font size="3"><b>Topic By:</b></font> <a href="http://developers.sun.ru/forum//memberlist.php?mode=viewprofile&amp;u=7401">and73y</a><b> ON: Пт мар 05, 2010 12:54 pm</b><br />В make файле проекта есть много условий, при которых можно запускать скрипты...<br />У меня встала задача запустить скрипт при запуске приложения (Run). Нигде не нашел концов.<br />Как это можно сделать?<br /><br />P.S.<br />Планируется, что данный скрипт будет копировать приложение на целевую машину и запускать там gdbserver.</p></td></tr></div></table><hr>]]></description>
               <pubDate>Пт, 05 мар 2010 12:54:09 UTC</pubDate>
            <guid>http://developers.sun.ru/forum//viewtopic.php?f=20&amp;t=1196&amp;p=2801#p2801</guid>
               </item>
               <item>
               <title>Re: Примеры для focusTraversable</title>
               <link>http://developers.sun.ru/forum//viewtopic.php?f=12&amp;t=1145&amp;p=2800#p2800</link>
               <description><![CDATA[<table cellpadding="1" cellspacing="1" style="border:1px solid #a1a1a1" width="100%" align="center"><div><tr><td><p><img src="http://developers.sun.ru/forum//styles/prosilver/imageset/topic_read.gif" width="27" height="27" alt="Нет новых сообщений" title="Нет новых сообщений" /><br /><font size="3"><b>Replies:</b></font> 5<br />
                <font size="3"><b>Views:</b></font> 128<br />
                <font size="3"><b>Last Post By:</b></font> <a href="http://developers.sun.ru/forum//memberlist.php?mode=viewprofile&amp;u=62">raindrop</a>
                <a href="http://developers.sun.ru/forum//viewtopic.php?f=12&amp;t=1145&amp;p=2802#p2802"><img src="http://developers.sun.ru/forum//styles/prosilver/imageset/icon_topic_newest.gif" width="11" height="9" alt="Перейти к последнему сообщению" title="Перейти к последнему сообщению" /></a><b> ON: Пт мар 05, 2010 2:04 pm</b><br />
                <font size="3"><b>Topic By:</b></font> <a href="http://developers.sun.ru/forum//memberlist.php?mode=viewprofile&amp;u=4189">ana</a><b> ON: Пт мар 05, 2010 7:12 am</b><br /><blockquote><div><cite>raindrop писал(а):</cite>...<br />Принажатии мышкой, фокус автоматически переходит на этот компонент.<br />...<br /></div></blockquote><br /><br />Тогда не могу понять, почему не работает следующий скрипт&gt;<br /><dl class="codebox"><dt>Code: <a href="#" onclick="selectCode(this); return false;">Выделить всё</a></dt><dd><code>&nbsp; &nbsp; import javafx.stage.Stage;<br />&nbsp; &nbsp; import javafx.scene.Scene;<br />&nbsp; &nbsp; import javafx.scene.shape.Rectangle;<br />&nbsp; &nbsp; import javafx.scene.paint.Color;<br />&nbsp; &nbsp; import javafx.scene.input.MouseEvent;<br /><br />&nbsp; &nbsp; var rectangleBrown: Rectangle;<br />&nbsp; &nbsp; var rectangleBlue: Rectangle;<br /><br />&nbsp; &nbsp; Stage {<br />&nbsp; &nbsp; &nbsp; &nbsp; title: &quot;Switch focus&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; scene: Scene {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; width: 250<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; height: 80<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; content: &#91;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rectangleBrown = Rectangle {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x: 10 y: 10 height: 40 width: 40 fill: Color.BROWN<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; focusTraversable: true<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; onMouseClicked: function (e: MouseEvent): Void {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; println(&quot;click brown rectangle!&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; println(&quot;rectangleBrown.focused: {rectangleBrown.focused}&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; println(&quot;rectangleBlue.focused: {rectangleBlue.focused}&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rectangleBlue = Rectangle {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x: 60 y: 10 height: 40 width: 40 fill: Color.BLUE<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; focusTraversable: true<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; onMouseClicked: function (e: MouseEvent): Void {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; println(&quot;click blue rectangle!&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; println(&quot;rectangleBrown.focused: {rectangleBrown.focused}&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; println(&quot;rectangleBlue.focused: {rectangleBlue.focused}&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#93;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; }<br /><br /></code></dd></dl><br /><br />Здесь нарисованны два прямоугольника и на каждом из них висит onClicked.<br />Если вышесказанное верно, то после клика на прямоугольник, он должен<br />быть сфокусирован. Но как видно по результатам работы скрипта, этого не происходит&gt;<br /><img src="http://img237.imageshack.us/img237/1871/vnannt.png" alt="Изображение" /><br /><br />Где ошибка?</p></td></tr></div></table><hr>]]></description>
               <pubDate>Пт, 05 мар 2010 14:04:49 UTC</pubDate>
            <guid>http://developers.sun.ru/forum//viewtopic.php?f=12&amp;t=1145&amp;p=2800#p2800</guid>
               </item>
     </channel>
     </rss>