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 / October 2005

Tip: Looking for answers? Try searching our database.

[transparent Background]

Thread view: 
sagittarius - 21 Oct 2005 10:24 GMT
hi .
how can draw my bean a transparent background

public class mybean extends canvas ..
{
 public void paint (Graphics g)
 { Graphics2D g2 = (Graphics2D) g
   g2.setBackground(--transparent--)
 }
}

i want to see what is behind my bean.
thanks for help
Thomas Weidenfeller - 21 Oct 2005 10:31 GMT
> hi .
> how can draw my bean a transparent background

See the FAQ, and also the TSC painting article (a reference is also in
the FAQ).

/Thomas
Signature

The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
http://www.uni-giessen.de/faq/archiv/computer-lang.java.gui.faq/

Roedy Green - 21 Oct 2005 13:11 GMT
>See the FAQ, and also the TSC painting article (a reference is also in
>the FAQ).

Here is a job for a bot.  Could you add some anchors to your faq? Then
I could refer specifically to places in your faq in my glossary.

At least for the popular entries.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.

Roedy Green - 21 Oct 2005 13:14 GMT
>See the FAQ, and also the TSC painting article (a reference is also in
>the FAQ).

there is one other odd thing you can do that might fit into that
entry.  It is possible to compose transparent  png files on the fly
and persuade your browser to render them.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.

sagittarius - 21 Oct 2005 13:29 GMT
thanks. faq helped me :)
thanks for your help
Andrew Thompson - 21 Oct 2005 14:43 GMT
>>See the FAQ, and also the TSC painting article (a reference is also in
>>the FAQ).
>
> there is one other odd thing you can do that might fit into that
> entry.  It is possible to compose transparent  png files on the fly
> and persuade your browser to render them.

Not if your browser is IE.   :-(
Oliver Wong - 21 Oct 2005 16:53 GMT
>> It is possible to compose transparent  png files on the fly
>> and persuade your browser to render them.
>
> Not if your browser is IE.   :-(

   You can coax IE to display transparent PNG files, but it isn't
simple[1]:

http://koivi.com/ie-png-transparency/

   - Oliver

1: It's a simple solution to apply, if all you care about is
copy-and-pasting the code provided on the site; but given the problem it
solves, this "solution" is terribly inelegant and depends on undocumented
implementation specific behaviour.
Andrew Thompson - 21 Oct 2005 17:55 GMT
> ...depends on undocumented implementation specific behaviour.

That, mixed with internet, can lead to madness*.

I have enough trouble getting the W3C defined elements to render
logically cross-browser/cross-platform.

* But yes, I have had to resort to such things on occasion.
Roedy Green - 21 Oct 2005 22:17 GMT
>Not if your browser is IE.   :-(

I get a kind of perverse pleasure in using PNGs on IE with a comment
they will render properly once you switch browsers.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.

Andrew Thompson - 22 Oct 2005 05:32 GMT
>>Not if your browser is IE.   :-(
>
> I get a kind of perverse pleasure in using PNGs on IE with a comment
> they will render properly once you switch browsers.

Yes.  I'm tempted to do such things at times, but seems
a very arrogant attitude to direct towards the visitor
to the web site - "You have the wrong browser".

My PhySci.codes site even (boldly) bears the 'Any Browser' logo..

There was this guy who was running IE 4 (I think mostly out of spite)
who proudly mentioned that my pages always *crashed* his browser.
I was glad he never got to *see* that logo.    ;-)
Roedy Green - 22 Oct 2005 07:31 GMT
>Yes.  I'm tempted to do such things at times, but seems
>a very arrogant attitude to direct towards the visitor
>to the web site - "You have the wrong browser".

If Microsoft plays hardball, they should expect some resistance from
those they screw.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.

Andrew Thompson - 22 Oct 2005 10:56 GMT
(Browser specific pages with message - 'upgrade to X browser')

>>Yes.  I'm tempted to do such things at times, but seems
>>a very arrogant attitude to direct towards the visitor
>>to the web site - "You have the wrong browser".
>
> If Microsoft plays hardball, they should expect some resistance from
> those they screw.

You could equally argue that those 'screwed' people include
the end-users, and telling them they are using the 'wrong browser'
(which is something they may have no control over, think..
College, Library, Internet Cafe access) is just 'rubbing
salt in the wound'.
Monique Y. Mudama - 24 Oct 2005 17:58 GMT
> You could equally argue that those 'screwed' people include the
> end-users, and telling them they are using the 'wrong browser'
> (which is something they may have no control over, think..  College,
> Library, Internet Cafe access) is just 'rubbing salt in the wound'.

'encouraging them to fight for better browsers'

If enough people complain that IE breaks the sites they are trying to
use, maybe the college, library, cafe will address the issue.
Certainly the cafe, which needs to please its customers.

Signature

monique

Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html

Roedy Green - 25 Oct 2005 03:23 GMT
On Sat, 22 Oct 2005 06:31:09 GMT, Roedy Green
<my_email_is_posted_on_my_website@munged.invalid> wrote, quoted or
indirectly quoted someone who said :

>If Microsoft plays hardball, they should expect some resistance from
>those they screw.
Microsoft is screwing people. I am simply showing users a slightly
degraded aesthetic experience if they use IE and putting the blame for
it where it belongs -- on Microsoft for its buggy PNG support.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.



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.