Screen « Applet « Java Swing Q&A





1. Java Splash screen    stackoverflow.com

I'm trying to make to make some text appear before my applet loads so I've made a simple SSCCE(.org):

import java.awt.*;
import javax.swing.*;

    public class test extends JApplet {
  ...

2. How can we save Applet screen    coderanch.com

3. Struts screen to Swings or applet    coderanch.com

4. Printing the applet screen    coderanch.com

Applet is a subclass of Component, so you can use its print methods. Using java.awt.print, you can create a Printable object that will print your applet. A naive approach: class ComponentPrintable implements Printable { Component component; public int print(Graphics graphics, PageFormat format, int page) { if (page > 0) { return NO_SUCH_PAGE; } component.printAll(graphics); return PAGE_EXISTS; } } I say naive ...