tag:blogger.com,1999:blog-4481781585418842840.post290555477559619509..comments2024-03-24T16:31:02.567+09:00Comments on Java Swing Tips: Custom Decorated TitleBar JFrameateraihttp://www.blogger.com/profile/07647339065761407369noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-4481781585418842840.post-43775388472188676482011-09-06T21:33:41.400+09:002011-09-06T21:33:41.400+09:00EDIT:
It seems to work OK for me, Java 1.7:
Java W...EDIT:<br />It seems to work OK for me, Java 1.7:<br />Java Web Start 10.0.0.147<br />JRE 1.7.0-b147 Java HotSpot(TM) Client VMateraihttps://www.blogger.com/profile/07647339065761407369noreply@blogger.comtag:blogger.com,1999:blog-4481781585418842840.post-2854640885435365212010-10-05T17:34:44.208+09:002010-10-05T17:34:44.208+09:00bobndrew, thanks for the response.
> Maybe the ...bobndrew, thanks for the response.<br />> Maybe the Webstart environment is causing this behaviour?!<br />Maybe so. The Swing Tutorial has the same problem.<br />http://download.oracle.com/javase/tutorial/uiswing/examples/components/index.html#FrameDemo2<br />- FrameDemo2: "Look and feel decorated" not possible.<br />- FrameDemo2: "Window system decorated" possible.<br /><ateraihttps://www.blogger.com/profile/07647339065761407369noreply@blogger.comtag:blogger.com,1999:blog-4481781585418842840.post-71510875389036718522010-10-04T19:52:33.454+09:002010-10-04T19:52:33.454+09:00Hi aterai,
I started the MainPanel from within ec...Hi aterai, <br />I started the MainPanel from within eclipse and from a WinXP Console and everything worked as expected.<br><br />I used the code from the downloadable 'src.zip'.<br><br />Is the webstart example updated to the new code? Because it shows the old behaviour: dragging outside the first monitor is not possible. Maybe the Webstart environment is causing this behaviour?!bobndrewhttps://www.blogger.com/profile/05351131804279239866noreply@blogger.comtag:blogger.com,1999:blog-4481781585418842840.post-54182378906896462262010-10-01T11:29:13.347+09:002010-10-01T11:29:13.347+09:00Hi, bobndrew. Thank you for your bug report.
Howev...Hi, bobndrew. Thank you for your bug report.<br />However, I don't have a dual moniter environment...<br />How about this code instead?<br />@Override public void mouseDragged(MouseEvent me) {<br />if(window==null) window = SwingUtilities.windowForComponent(me.getComponent());<br />Point eventLocationOnScreen = me.getLocationOnScreen();<br />window.setLocation(eventLocationOnScreen.x - ateraihttps://www.blogger.com/profile/07647339065761407369noreply@blogger.comtag:blogger.com,1999:blog-4481781585418842840.post-78151870598436176842010-09-30T22:02:25.317+09:002010-09-30T22:02:25.317+09:00Your examples are great, but the "Custom Deco...Your examples are great, but the "Custom Decorated TitleBar JFrame" could not be moved to a second monitor on WinXP.bobndrewhttps://www.blogger.com/profile/05351131804279239866noreply@blogger.com