answersLogoWhite

0


Best Answer

Yes you can.

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can i Create an Applet that display your name 10 times using different colors and font?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What does it mean to display text in different colors than surrounding text?

it usually applys to the numbers when you type in a mobile number to your phone


To Write program in Java to create applets to Create a color palette with matrix of buttons using applet viewer?

/* <applet code=palette height=600 width=600> </applet> */ import java.awt.*; import java.awt.event.*; import java.applet.*; public class palette extends Applet implements ActionListener,ItemListener { Button[] colors; Checkbox foreground,background; TextArea workarea; CheckboxGroup cbg; Panel buttonpanel,checkpanel,palettepanel; String colour; public void init() { buttonpanel=new Panel(); buttonpanel.setLayout(new GridLayout(3,3)); colors=new Button[9]; colors[0]=new Button("RED"); colors[1]=new Button("GREEN"); colors[2]=new Button("BLUE"); colors[3]=new Button("CYAN"); colors[4]=new Button("ORANGE"); colors[5]=new Button("WHITE"); colors[6]=new Button("BLACK"); colors[7]=new Button("YELLOW"); colors[8]=new Button("PINK"); for(int i=0;i<9;i++) { colors[i].addActionListener(this); buttonpanel.add(colors[i]); } checkpanel=new Panel(); checkpanel.setLayout(new FlowLayout()); cbg=new CheckboxGroup(); foreground=new Checkbox("ForeGround",cbg,true); background=new Checkbox("BackGround",cbg,false); foreground.addItemListener(this); background.addItemListener(this); checkpanel.add(foreground); checkpanel.add(background); workarea=new TextArea(8,40); workarea.setFont(new Font("Garamond",Font.BOLD,20)); palettepanel=new Panel(); palettepanel.setLayout(new BorderLayout()); palettepanel.add(workarea,BorderLayout.CENTER); palettepanel.add(checkpanel,BorderLayout.EAST); palettepanel.add(buttonpanel,BorderLayout.SOUTH); add(palettepanel); } public void itemStateChanged(ItemEvent ie) { } public void actionPerformed(ActionEvent ae) { colour=ae.getActionCommand(); if(foreground.getState()==true) workarea.setForeground(getColour()); if(background.getState()==true) workarea.setBackground(getColour()); } public Color getColour() { Color mycolor=null; if(colour.equals("RED")) mycolor=Color.red; if(colour.equals("GREEN")) mycolor=Color.green; if(colour.equals("BLUE")) mycolor=Color.blue; if(colour.equals("CYAN")) mycolor=Color.cyan; if(colour.equals("ORANGE")) mycolor=Color.orange; if(colour.equals("WHITE")) mycolor=Color.white; if(colour.equals("BLACK")) mycolor=Color.black; if(colour.equals("YELLOW")) mycolor=Color.yellow; if(colour.equals("PINK")) mycolor=Color.pink; return mycolor; } }


Why are the primary colors in TVs red blue and green?

It is because it helps analyze all the colors to even pigments and that kind of stuff


What is reverse printing?

"To print or display the opposite background and foreground colors. For example, a typical white page with black text would be reverse printed as white characters on a black background."


Colors in HTML are specified as three two-digit hexadecinal numbers how many different colors can be specified in HTML?

This is a homework question, so I won't answer it directly.But a two-digit hexadecimal number can have 256 different values - 00 to FF - so with three of them you can combine any of the 256 values of the first color with any of the 256 values of the second and third color, for a total of 256 * 256 * 256 different combinations.Even though you can specify that many colors, it does not necessarily mean that the computer screen can show them all. See related link for more on web colors.

Related questions

How do professionals create the colors that appear during the vibrant display of fireworks?

They (we) use different formulas to create different colors because when different chemicals burn they do so at different temperatures and they produce a different wave length of light that we see as different colors. For example Copper II Oxide can be used to make the color blue.


How many colors can a bit video adapter display?

A 24-bit video adapter can display roughly 16 million different colors.


How many colors can a 24-bit video adapter display?

A 24-bit video adapter can display roughly 16 million different colors.


What is better 16M colours or LED?

The number of colors in a display is different to the form of the display. LED or CCFL illumination of an LCD display does not in any way impact on the number of colors that can be resolved.


Why do bubbles display so many different colors?

because your high


In pointillism you use what kind of colors to create your different points?

Primary colors


What three colors does the watermelon tourmaline display?

The watermelon tourmaline is a rare variety that display three different colors. The three colors are green, pink and white. The colours all occur 100% naturally which is a rare occurence in nature.


What is the most colorized thing in the world?

The computer monitor. It can display 64,000,000 different colors.


Why do certain minerals display a difference in color but the same chemical composition such as rubies and sappires?

Color is normally due to impurities located within the lattice structure of the crystal. Diamond in pure form is clear, for example, but different impurities create different colors.


Why are colors called the primary colors?

Because you can create all the other colours using different combinations of the primary


How many different colors make up each pixel in a plasma display?

Red Blue Green


Is there any possible way to create a prime colour by mixing different colors?

no