Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #1222 > unrolled thread

JWindow : Shape != rectan

Started by"Thorsten23" <thorsten23@THRWHITE.remove-dii-this>
First post2011-04-27 15:32 +0000
Last post2011-04-27 15:33 +0000
Articles 5 — 4 participants

Back to article view | Back to comp.lang.java.gui


Contents

  JWindow : Shape != rectan "Thorsten23" <thorsten23@THRWHITE.remove-dii-this> - 2011-04-27 15:32 +0000
    Re: JWindow : Shape != re "Tom Hawtin" <tom.hawtin@THRWHITE.remove-dii-this> - 2011-04-27 15:32 +0000
      Re: JWindow : Shape != re "Daniel Pitts" <daniel.pitts@THRWHITE.remove-dii-this> - 2011-04-27 15:32 +0000
        Re: JWindow : Shape != re "Tom Hawtin" <tom.hawtin@THRWHITE.remove-dii-this> - 2011-04-27 15:32 +0000
    Re: JWindow : Shape != re "twall" <twall@THRWHITE.remove-dii-this> - 2011-04-27 15:33 +0000

#1222 — JWindow : Shape != rectan

From"Thorsten23" <thorsten23@THRWHITE.remove-dii-this>
Date2011-04-27 15:32 +0000
SubjectJWindow : Shape != rectan
Message-ID<45fceda6$1@news.arcor-ip.de>
  To: comp.lang.java.gui
Hi,

I'm trying to create a window that has not the ususal rectangle form but a 
roundrectangle form.

How can I do this ?

All I can do is create a JWindow and than draw a roundrectangle but I still 
have the underlying rectangle of the JWindow.

Thanks for any help!
Thorsten

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [next] | [standalone]


#1223 — Re: JWindow : Shape != re

From"Tom Hawtin" <tom.hawtin@THRWHITE.remove-dii-this>
Date2011-04-27 15:32 +0000
SubjectRe: JWindow : Shape != re
Message-ID<45fe1185$0$8737$ed2619ec@ptn-nntp-reader02.plus.net>
In reply to#1222
  To: comp.lang.java.gui
Thorsten23 wrote:
> 
> I'm trying to create a window that has not the ususal rectangle form but a 
> roundrectangle form.

Unfortunately AWT does not support non-rectangular windows.

One dirty hack (which requires the code to be trusted) is to grab a 
screen image just before opening the window, and use that as the 
background. Obviously that isn't going to update, but may suffice for 
transient windows (so long as you don't mind your app looking bad in 
some circumstances...).

I believe this is covered in Swing Hacks by Joshua Marinacci and Chris 
Adamson.

http://www.amazon.co.uk/dp/0596009070/

Tom Hawtin

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [next] | [standalone]


#1224 — Re: JWindow : Shape != re

From"Daniel Pitts" <daniel.pitts@THRWHITE.remove-dii-this>
Date2011-04-27 15:32 +0000
SubjectRe: JWindow : Shape != re
Message-ID<1174279704.490644.169440@d57g2000hsg.googlegroups.com>
In reply to#1223
  To: comp.lang.java.gui
On Mar 18, 9:28 pm, Tom Hawtin <use...@tackline.plus.com> wrote:
> Thorsten23 wrote:
>
> > I'm trying to create a window that has not the ususal rectangle form but a
> > roundrectangle form.
>
> Unfortunately AWT does not support non-rectangular windows.
>
> One dirty hack (which requires the code to be trusted) is to grab a
> screen image just before opening the window, and use that as the
> background. Obviously that isn't going to update, but may suffice for
> transient windows (so long as you don't mind your app looking bad in
> some circumstances...).
>
> I believe this is covered in Swing Hacks by Joshua Marinacci and Chris
> Adamson.
>
> http://www.amazon.co.uk/dp/0596009070/
>
> Tom Hawtin

I thought I read somewhere that this is a feature request in the
works...  I can't find what I was reading, but maybe someone else
knows.

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [next] | [standalone]


#1225 — Re: JWindow : Shape != re

From"Tom Hawtin" <tom.hawtin@THRWHITE.remove-dii-this>
Date2011-04-27 15:32 +0000
SubjectRe: JWindow : Shape != re
Message-ID<45fe21ec$0$8710$ed2619ec@ptn-nntp-reader02.plus.net>
In reply to#1224
  To: comp.lang.java.gui
Daniel Pitts wrote:
> 
> I thought I read somewhere that this is a feature request in the
> works...  I can't find what I was reading, but maybe someone else
> knows.

Well here's the RFE. 143 votes.

"RFE: Support for Transparent windows required"
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4479178

Tom Hawtin

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [next] | [standalone]


#1421 — Re: JWindow : Shape != re

From"twall" <twall@THRWHITE.remove-dii-this>
Date2011-04-27 15:33 +0000
SubjectRe: JWindow : Shape != re
Message-ID<1176142388.636681.180170@n76g2000hsh.googlegroups.com>
In reply to#1222
  To: comp.lang.java.gui
On Mar 18, 3:43 am, "Thorsten23" <thorste...@gmx.net> wrote:
> Hi,
>
> I'm trying to create a window that has not the ususal rectangle form but a
> roundrectangle form.
>

The JNA project has a demo that provides shaped windows.  You can
launch the web start from here:

http://jna.dev.java.net/demo/ShapedWindowDemo.jnlp

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.gui


csiph-web