Vous êtes sur la page 1sur 9

Write a program to display a clock using applet.

OUTPUT:
C:\CS2358>javac ClockApplet.java
C:\CS2358>appletviewer ClockApplet.java
C:\CS2358>

Write a program to fill color in shapes using applet.


OUTPUT:
C:\CS2358>javac ColorDemo.java
C:\CS2358>appletviewer ColorDemo.java
C:\CS2358>

Write an applet program to view the color palette. Using the


Slider create three Slider objects for the colors red, green
and blue. The initial values for each color are set to 128.
You choose your own values. When you move the pointer on the
Slider of each color, the corresponding color is displayed on
the Graphics panel.
OUTPUT:
C:\CS2358>javac ColorPalette.java
C:\CS2358>appletviewer ColorPalette.java
C:\CS2358>

Write a program in java to create applet for selecting the


background and foreground color of the text area control with
the help of radio buttons.
OUTPUT:
C:\CS2358>javac ColorTextArea.java
C:\CS2358>appletviewer ColorTextArea.java
C:\CS2358>

Write a program in java to create applet for selecting the


background and foreground color of the text area control with
the help of radio buttons.
OUTPUT:
C:\CS2358>javac Shapes.java
C:\CS2358>appletviewer Shapes.java
C:\CS2358>

To write a java code to implement Color palette with matrix of


Buttons Background and Foreground in control text area by
selecting form color palette and selecting from the check box.
OUTPUT:
C:\CS2358>javac TextAreaColor.java
C:\CS2358>appletviewer TextAreaColor.java
C:\CS2358>

Vous aimerez peut-être aussi