Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / March 2007

Tip: Looking for answers? Try searching our database.

Transparent window

Thread view: 
MrAsm - 17 Mar 2007 11:40 GMT
Hi,

I'd like to have a transparent window (to do some processing on the
image below the window layer, think of a magnifier glass).

Do you have any suggestion about doing that?

(A way of doing so would be to take a screenshot and blitting the
region of interest, but the problem with this technique would be that,
if the screen content updates, the transparent window will show the
old content - or should I start a thread just for updating the
screenshot at regular time intervals?)

Thanks in advance
MrAsm
Andrew Thompson - 18 Mar 2007 07:27 GMT
...
> I'd like to have a transparent window (to do some processing on the
> image below the window layer, think of a magnifier glass).

Is 'the image' loaded by Java into 'the window'
programmed by you?  If so, this might be done
a lot simpler than using Robot to get screenshots.

Andrew T.
MrAsm - 18 Mar 2007 11:28 GMT
>...
>> I'd like to have a transparent window (to do some processing on the
[quoted text clipped - 5 lines]
>
>Andrew T.

What is robot?

What is 'the image loaded by Java'??

I would like to have a window.
The user moves (drag) the window with the mouse, and the window acts
like a magnifier glass (or other image filtering) for everything that
is below the window itself: other windows, desktop image, etc.

MrAsm
Andrew Thompson - 18 Mar 2007 11:38 GMT
> >...
> >> I'd like to have a transparent window (to do some processing on the
[quoted text clipped - 3 lines]
> >programmed by you?  If so, this might be done
> >a lot simpler than using Robot to get screenshots.
..
> What is robot?

Not 'robot, 'Robot', as in the J2SE class
java.awt.Robot.  The Robot can take screenshots.

> What is 'the image loaded by Java'??

..have you considered hiring a Java programmer?

Andrew T.
MrAsm - 18 Mar 2007 13:16 GMT
>> What is 'the image loaded by Java'??
>
>..have you considered hiring a Java programmer?

No, because I'm a C++ programmer myself (and I can code in Java, too).

Have you considered answering questions if you can/want, or better not
posting at all?

(My question was very specific.)
MrAsm - 18 Mar 2007 20:46 GMT
>>> What is 'the image loaded by Java'??
>>
[quoted text clipped - 6 lines]
>
>(My question was very specific.)

I was just asking for a pointer to some Swing or AWT class or method
or specific flag to manage some form of window transparency (or just
confirmation for my original idea of screenshot).

Of course, I was not asking to post Java source code :)
Jeff Higgins - 19 Mar 2007 01:15 GMT
> I would like to have a window.
> The user moves (drag) the window with the mouse, and the window acts
> like a magnifier glass (or other image filtering) for everything that
> is below the window itself: other windows, desktop image, etc.

May be off-topic, but..
A web search on 'java screen magnifier' produced
http://scanline.ca/magnify/
Note that it is implemented with SWT, but may provide some ideas.
twall@users.sf.net - 31 Mar 2007 15:19 GMT
> I'd like to have a transparent window (to do some processing on the
> image below the window layer, think of a magnifier glass).

See http://rabbit-hole.blogspot.com/2007/03/give-your-application-speech-bubble.html
and prior entries for some non-rectangular window implementations
(cross-platform and all java).

Java doesn't have built-in support for either transparent or non-
rectangular windows.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.