Can Browser Print Applet’s Output?

Can Browser Print Applet’s Output?

Question:
I have written an applet that creates a graph from the resultsof a query of our Oracle database. The graph looks good in the browser(Netscape 3.0), but if I go to print the broswer page,nothing in my applet shows up. Text and graphics above and below theapplet will print fine, but there will just be a big blank spot where thegraph should be.

Answer:
That is normal. Unfortunately, Netscape makes no effort to find outwhat the Java program draws onto the screen. (It could, in theory, tryto have that subwindow redraw itself and capture the output, then scalethe screen pixels to the printer. But it doesn’t.) And, there is no JavaAPI for printing.

There will, at some point in the future, be Java support for printing.Sun and Adobe are jointly working on an improved graphics model andprinting support. When that happy moment comes, your Java applicationswill be able to print. Whether or not that capability will extend toapplets is anyone’s guess for now.

Share the Post:
Heading photo, Metadata.

What is Metadata?

What is metadata? Well, It’s an odd concept to wrap your head around. Metadata is essentially the secondary layer of data that tracks details about the “regular” data. The regular

XDR solutions

The Benefits of Using XDR Solutions

Cybercriminals constantly adapt their strategies, developing newer, more powerful, and intelligent ways to attack your network. Since security professionals must innovate as well, more conventional endpoint detection solutions have evolved

AI is revolutionizing fraud detection

How AI is Revolutionizing Fraud Detection

Artificial intelligence – commonly known as AI – means a form of technology with multiple uses. As a result, it has become extremely valuable to a number of businesses across

AI innovation

Companies Leading AI Innovation in 2023

Artificial intelligence (AI) has been transforming industries and revolutionizing business operations. AI’s potential to enhance efficiency and productivity has become crucial to many businesses. As we move into 2023, several

data fivetran pricing

Fivetran Pricing Explained

One of the biggest trends of the 21st century is the massive surge in analytics. Analytics is the process of utilizing data to drive future decision-making. With so much of