Re: [JAVA2D] Question about fullscreen exclusive mode in applet in browser.

2007-12-04 Thread java2d
 All valid arguments.  And I'm sure I don't know any
 of the grizzly
 stories about how Java is/was being used for fraud.  
 
 It's a hoist petard situation -- damned if you do --
 damned if you don't.
 
 Having Java become suspect as an easy tool for fraud
 certainly won't do
 us developers any good.  Yet people object to having
 their precious fullscreen
 so rudely violated.
 
 I'll meander over to the security and awt talklists
 and see what I can see.

If you sign your applet - as far as I know - the banner should not be there.
I think the banner should stay like it is - I know the discussion on javalobby 
a year ago where people blamed java for allowing fullscreen-mode for applets. A 
programmer could easily re-program the desktop and the user would enter 
passwords for example.

If you sign your applet the user can say java he trusts you if he really trusts 
you - if not he sees the banner. Whats the problem?

lg Clemens
[Message sent by forum member 'linuxhippy' (linuxhippy)]

http://forums.java.net/jive/thread.jspa?messageID=248436

===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message signoff JAVA2D-INTEREST.  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message help.


Re: [JAVA2D] fillPolygon performance versus drawImage

2007-12-04 Thread java2d
Thank you!

I still can't find answer to my other question - how the rectangles (or shapes, 
in general) are drawn. 

Here is an example from Building Imaging Application with Java Technology by 
L.H. Rodriques on page 159:

-- Listing 5.1 --
  protected BufferedImage offScrImage;
  protected Graphics2D offScrGc;

   public void createOffScreenImage(int wid, int ht){
 offScrImage = new BufferedImage(wid, ht,BufferedImage.TYPE_INT_RGB);
 offScrGc = offScrImage.createGraphics();
   }

   public void drawRectOffScreen(){
  offScrGc.drawRect(30,40,100,100,this);
   }

   public void paintComponent(Graphics g) {
  Graphics2D g2d = (Graphics2D)g;
   g2d.drawImage(offScrImage, 0,0, this);
   }

-

In the above example, the recangle is drawn off-screen to a buffered image (I 
guess
this happens indicetly by calling the graphic context). 

A proper (?) way to draw a rectangle into a buffered image would be through a 
DataBuffer, a SampleModel and a WritableRaster. 

Are these two methods identical? If not, what is the drawback of using the 
above listing versus a BufferedImage pupulated with a 
DataBuffer/SampleModel/WritableRaster?

Thanks again.
Gregory
[Message sent by forum member 'gmiecznik' (gmiecznik)]

http://forums.java.net/jive/thread.jspa?messageID=248451

===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message signoff JAVA2D-INTEREST.  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message help.