<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-4222197394079314848.post7582285698955770361..comments</id><updated>2011-01-12T17:34:50.370-06:00</updated><category term='Cygwin'/><category term='Microsoft .NET'/><category term='will need again'/><category term='Palm'/><category term='Apple'/><category term='Oracle'/><category term='MarkUtils'/><category term='audio'/><category term='Dell'/><category term='email'/><category term='performance'/><category term='reported bugs'/><category term='free tools'/><category term='hardware'/><category term='laptop'/><category term='IPv6'/><category term='xml'/><category term='SysAdmin'/><category term='Alltel'/><category term='technical'/><category term='OpenWrt'/><category term='security'/><category term='Appleton-WI'/><category term='Sun Microsystems'/><category term='Microsoft Word'/><category term='Java'/><category term='Blogger'/><category term='Google'/><category term='networking'/><category term='Hewlett-Packard'/><category term='LDAP'/><category term='frustrations'/><category term='life'/><category term='Firefox'/><category term='Microsoft Windows'/><category term='VMware'/><category term='JMX'/><category term='Ext JS'/><category term='web browsing'/><category term='Linux'/><category term='Rothschild-WI'/><category term='Eclipse'/><category term='coding'/><category term='WScript'/><category term='OpenOffice.org'/><category term='JavaScript'/><category term='Yahoo UI Library'/><category term='Java Swing'/><category term='Microsoft Outook'/><title type='text'>Comments on Mark A. Ziesemer: Java password dialog</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blogger.ziesemer.com/feeds/7582285698955770361/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4222197394079314848/7582285698955770361/comments/default'/><link rel='alternate' type='text/html' href='http://blogger.ziesemer.com/2007/03/java-password-dialog.html'/><author><name>Mark A. Ziesemer</name><uri>http://www.blogger.com/profile/12752422620777325409</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://2.bp.blogspot.com/_aV4l4vyh5uQ/S31T85WfmMI/AAAAAAAAA9U/nRo4aI0okiQ/S220/Facebook+Me.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4222197394079314848.post-5140172997352684365</id><published>2011-01-12T17:34:50.370-06:00</published><updated>2011-01-12T17:34:50.370-06:00</updated><title type='text'>Reading all comments it occurs to me that trying t...</title><summary type='text'>Reading all comments it occurs to me that trying to use a buggy dialog and fighting to overcome it is complicated, unnatural, and useless because one never knows if it works on all platforms.&lt;br /&gt;&lt;br /&gt;The true solution, of course, would be that Sun people provide a JOptionPane.showPasswordDialog that would do exactly what an InputDialog does with a JPasswordField instead of a JTextField.&lt;br /&gt;&lt;</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4222197394079314848/7582285698955770361/comments/default/5140172997352684365'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4222197394079314848/7582285698955770361/comments/default/5140172997352684365'/><link rel='alternate' type='text/html' href='http://blogger.ziesemer.com/2007/03/java-password-dialog.html?showComment=1294875290370#c5140172997352684365' title=''/><author><name>Olivier Bertrand</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blogger.ziesemer.com/2007/03/java-password-dialog.html' ref='tag:blogger.com,1999:blog-4222197394079314848.post-7582285698955770361' source='http://www.blogger.com/feeds/4222197394079314848/posts/default/7582285698955770361' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1741733066'/></entry><entry><id>tag:blogger.com,1999:blog-4222197394079314848.post-2607263749546452895</id><published>2009-10-28T07:54:10.280-05:00</published><updated>2009-10-28T07:54:10.280-05:00</updated><title type='text'>All - see the new alternative workaround recently ...</title><summary type='text'>All - see the new alternative workaround recently posted by Sun in the evaluation section of the reported bug, &lt;a href="http://bugs.sun.com./bugdatabase/view_bug.do?bug_id=5018574" rel="nofollow"&gt;5018574&lt;/a&gt;.  I&amp;#39;ve not tested it yet, but it uses a HierarchyListener instead.</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4222197394079314848/7582285698955770361/comments/default/2607263749546452895'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4222197394079314848/7582285698955770361/comments/default/2607263749546452895'/><link rel='alternate' type='text/html' href='http://blogger.ziesemer.com/2007/03/java-password-dialog.html?showComment=1256734450280#c2607263749546452895' title=''/><author><name>Mark A. Ziesemer</name><uri>http://www.blogger.com/profile/12752422620777325409</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='03040793697038588204'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/_aV4l4vyh5uQ/ShtLaqsYJkI/AAAAAAAAAkQ/eB_MTM01zSo/S220/n502931492_6934_6270.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blogger.ziesemer.com/2007/03/java-password-dialog.html' ref='tag:blogger.com,1999:blog-4222197394079314848.post-7582285698955770361' source='http://www.blogger.com/feeds/4222197394079314848/posts/default/7582285698955770361' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-143408883'/></entry><entry><id>tag:blogger.com,1999:blog-4222197394079314848.post-9067275186966417665</id><published>2009-10-28T04:13:16.575-05:00</published><updated>2009-10-28T04:13:16.575-05:00</updated><title type='text'>jop.getValue() returns null as soon as the dialog ...</title><summary type='text'>jop.getValue() returns null as soon as the dialog is closed with Alt+F4.</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4222197394079314848/7582285698955770361/comments/default/9067275186966417665'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4222197394079314848/7582285698955770361/comments/default/9067275186966417665'/><link rel='alternate' type='text/html' href='http://blogger.ziesemer.com/2007/03/java-password-dialog.html?showComment=1256721196575#c9067275186966417665' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blogger.ziesemer.com/2007/03/java-password-dialog.html' ref='tag:blogger.com,1999:blog-4222197394079314848.post-7582285698955770361' source='http://www.blogger.com/feeds/4222197394079314848/posts/default/7582285698955770361' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1261656578'/></entry><entry><id>tag:blogger.com,1999:blog-4222197394079314848.post-6176537753969047970</id><published>2009-10-28T03:38:33.269-05:00</published><updated>2009-10-28T03:38:33.269-05:00</updated><title type='text'>windowOpened worked for me under Vista.

dialog.ad...</title><summary type='text'>windowOpened worked for me under Vista.&lt;br /&gt;&lt;br /&gt;dialog.addWindowListener(new WindowAdapter()&lt;br /&gt;  {&lt;br /&gt;    public void windowOpened(WindowEvent e)&lt;br /&gt;    {&lt;br /&gt;      jpf.requestFocusInWindow();&lt;br /&gt;    }&lt;br /&gt;  });&lt;br /&gt;&lt;br /&gt;My problem is that when I close the dialog using Alt+F4, my app goes to lala land since its still waiting for me to press OK/Cancel on a dialog that&amp;#39;s already</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4222197394079314848/7582285698955770361/comments/default/6176537753969047970'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4222197394079314848/7582285698955770361/comments/default/6176537753969047970'/><link rel='alternate' type='text/html' href='http://blogger.ziesemer.com/2007/03/java-password-dialog.html?showComment=1256719113269#c6176537753969047970' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blogger.ziesemer.com/2007/03/java-password-dialog.html' ref='tag:blogger.com,1999:blog-4222197394079314848.post-7582285698955770361' source='http://www.blogger.com/feeds/4222197394079314848/posts/default/7582285698955770361' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1261656578'/></entry><entry><id>tag:blogger.com,1999:blog-4222197394079314848.post-1393295873202053746</id><published>2009-08-24T08:31:27.154-05:00</published><updated>2009-08-24T08:31:27.154-05:00</updated><title type='text'>The solution using windowGainedFocus almost worked...</title><summary type='text'>The solution using windowGainedFocus almost worked. I could _see_ the password field having focus before it was moved to the OK button again. I came up with this and it works (at least on my Ubuntu machine running Sun JVM):&lt;br /&gt;&lt;br /&gt;wrapper.addWindowListener(new java.awt.event.WindowAdapter(){&lt;br /&gt;      @Override&lt;br /&gt;      public void windowGainedFocus(java.awt.event.WindowEvent e){&lt;br /&gt;</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4222197394079314848/7582285698955770361/comments/default/1393295873202053746'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4222197394079314848/7582285698955770361/comments/default/1393295873202053746'/><link rel='alternate' type='text/html' href='http://blogger.ziesemer.com/2007/03/java-password-dialog.html?showComment=1251120687154#c1393295873202053746' title=''/><author><name>Akerbos</name><uri>http://senke.verrech.net</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blogger.ziesemer.com/2007/03/java-password-dialog.html' ref='tag:blogger.com,1999:blog-4222197394079314848.post-7582285698955770361' source='http://www.blogger.com/feeds/4222197394079314848/posts/default/7582285698955770361' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-204966442'/></entry><entry><id>tag:blogger.com,1999:blog-4222197394079314848.post-6896337948662662641</id><published>2009-06-04T15:29:00.943-05:00</published><updated>2009-06-04T15:29:00.943-05:00</updated><title type='text'>I came up with this approach also, but I used a Wi...</title><summary type='text'>I came up with this approach also, but I used a WindowFocusListener (the windowGainedFocus) event, so that when the window gets the focus then the password field requests the focus within the window.&lt;br /&gt;&lt;br /&gt;I haven&amp;#39;t tested this on my platforms yet to see if it always works (I didn&amp;#39;t realize it was an issue until I read this post just now), but it&amp;#39;s something to try.&lt;br /&gt;&lt;br /&gt;</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4222197394079314848/7582285698955770361/comments/default/6896337948662662641'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4222197394079314848/7582285698955770361/comments/default/6896337948662662641'/><link rel='alternate' type='text/html' href='http://blogger.ziesemer.com/2007/03/java-password-dialog.html?showComment=1244147340943#c6896337948662662641' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blogger.ziesemer.com/2007/03/java-password-dialog.html' ref='tag:blogger.com,1999:blog-4222197394079314848.post-7582285698955770361' source='http://www.blogger.com/feeds/4222197394079314848/posts/default/7582285698955770361' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-408431498'/></entry><entry><id>tag:blogger.com,1999:blog-4222197394079314848.post-6816470581704280358</id><published>2009-06-02T06:49:43.051-05:00</published><updated>2009-06-02T06:49:43.051-05:00</updated><title type='text'>Hi Mark.

It seems the ComponentListener is not th...</title><summary type='text'>Hi Mark.&lt;br /&gt;&lt;br /&gt;It seems the ComponentListener is not the best choice, as it can be system-dependant in what order the components are painted, and therefor it is called to early. (at elast on my Vista platform)&lt;br /&gt;&lt;br /&gt;If you use a WindowListener instead, it worked fine on all my platforms, since the Window seems usually activated when it is painted completely.&lt;br /&gt;&lt;br /&gt;Not sure if it </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4222197394079314848/7582285698955770361/comments/default/6816470581704280358'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4222197394079314848/7582285698955770361/comments/default/6816470581704280358'/><link rel='alternate' type='text/html' href='http://blogger.ziesemer.com/2007/03/java-password-dialog.html?showComment=1243943383051#c6816470581704280358' title=''/><author><name>Thomas</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blogger.ziesemer.com/2007/03/java-password-dialog.html' ref='tag:blogger.com,1999:blog-4222197394079314848.post-7582285698955770361' source='http://www.blogger.com/feeds/4222197394079314848/posts/default/7582285698955770361' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-870495107'/></entry><entry><id>tag:blogger.com,1999:blog-4222197394079314848.post-1042875812067736348</id><published>2009-05-26T21:26:25.795-05:00</published><updated>2009-05-26T21:26:25.795-05:00</updated><title type='text'>Adam - I had never tested this under Linux until n...</title><summary type='text'>Adam - I had never tested this under Linux until now, and was able to confirm your issue.  What I did notice is that requestFocusInWindow() returns a boolean giving an indication to the success.  Under Linux, it was returning false, meaning &amp;quot;the focus change request is guaranteed to fail&amp;quot;.&lt;br /&gt;&lt;br /&gt;I just updated the example in the post to include the call to requestFocusInWindow() to</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4222197394079314848/7582285698955770361/comments/default/1042875812067736348'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4222197394079314848/7582285698955770361/comments/default/1042875812067736348'/><link rel='alternate' type='text/html' href='http://blogger.ziesemer.com/2007/03/java-password-dialog.html?showComment=1243391185795#c1042875812067736348' title=''/><author><name>Mark A. Ziesemer</name><uri>http://www.blogger.com/profile/12752422620777325409</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='03040793697038588204'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/_aV4l4vyh5uQ/ShtLaqsYJkI/AAAAAAAAAkQ/eB_MTM01zSo/S220/n502931492_6934_6270.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blogger.ziesemer.com/2007/03/java-password-dialog.html' ref='tag:blogger.com,1999:blog-4222197394079314848.post-7582285698955770361' source='http://www.blogger.com/feeds/4222197394079314848/posts/default/7582285698955770361' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-143408883'/></entry><entry><id>tag:blogger.com,1999:blog-4222197394079314848.post-1341961231392680295</id><published>2009-05-26T20:22:23.810-05:00</published><updated>2009-05-26T20:22:23.810-05:00</updated><title type='text'>I like this solution the most of everything that's...</title><summary type='text'>I like this solution the most of everything that's been offered up online, but I haven't been able to get this (or the AncestorListener trick) to work using jdk 1.6.0_13 on linux.&lt;br /&gt;&lt;br /&gt;Has anyone else had success with these hacks in later releases of Swing?</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4222197394079314848/7582285698955770361/comments/default/1341961231392680295'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4222197394079314848/7582285698955770361/comments/default/1341961231392680295'/><link rel='alternate' type='text/html' href='http://blogger.ziesemer.com/2007/03/java-password-dialog.html?showComment=1243387343810#c1341961231392680295' title=''/><author><name>Adam</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blogger.ziesemer.com/2007/03/java-password-dialog.html' ref='tag:blogger.com,1999:blog-4222197394079314848.post-7582285698955770361' source='http://www.blogger.com/feeds/4222197394079314848/posts/default/7582285698955770361' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1115187144'/></entry><entry><id>tag:blogger.com,1999:blog-4222197394079314848.post-4650197987596653350</id><published>2009-01-06T03:48:00.000-06:00</published><updated>2009-01-06T03:48:00.000-06:00</updated><title type='text'>Very handy. Thanks! I've just added it to my Remot...</title><summary type='text'>Very handy. Thanks! I've just added it to my RemoteLoginAction module, with attribution of course.&lt;BR/&gt;http://agilewiki.wiki.sourceforge.net/</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4222197394079314848/7582285698955770361/comments/default/4650197987596653350'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4222197394079314848/7582285698955770361/comments/default/4650197987596653350'/><link rel='alternate' type='text/html' href='http://blogger.ziesemer.com/2007/03/java-password-dialog.html?showComment=1231235280000#c4650197987596653350' title=''/><author><name>Bill la Forge</name><uri>http://www.blogger.com/profile/11660659618343045817</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blogger.ziesemer.com/2007/03/java-password-dialog.html' ref='tag:blogger.com,1999:blog-4222197394079314848.post-7582285698955770361' source='http://www.blogger.com/feeds/4222197394079314848/posts/default/7582285698955770361' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-773685776'/></entry></feed>
