Explain system colors in java 1.1, JAVA Programming

Assignment Help:

Explain System Colors in java 1.1?

In Java 1.1, the java.awt.SystemColor class is a subclass of java.awt.Color that gives color constants in which match native component colors. For instance, if you needed to make the background color of your applet, the similar as the background color of a window, you may use this init() method:

public void paint (Graphics g) {

g.setColor(SystemColor.control);
g.fillRect(0, 0, this.getSize().width, this.getSize().height);

}

These are the available system colors:

• SystemColor.desktop // Background color of desktop
• SystemColor.activeCaption // Background color for captions
• SystemColor.activeCaptionText // Text color for captions
• SystemColor.activeCaptionBorder // Border color for caption text
• SystemColor.inactiveCaption // Background color for inactive captions
• SystemColor.inactiveCaptionText // Text color for inactive captions
• SystemColor.inactiveCaptionBorder // Border color for inactive captions
• SystemColor.window // Background for windows
• SystemColor.windowBorder // Color of window border frame
• SystemColor.windowText // Text color inside windows
• SystemColor.menu // Background for menus
• SystemColor.menuText // Text color for menus
• SystemColor.text // background color for text
• SystemColor.textText // text color for text
• SystemColor.textHighlight // background color for highlighted text
• SystemColor.textHighlightText // text color for highlighted text
• SystemColor.control // Background color for controls
• SystemColor.controlText // Text color for controls
• SystemColor.controlLtHighlight // Light highlight color for controls
• SystemColor.controlHighlight // Highlight color for controls
• SystemColor.controlShadow // Shadow color for controls
• SystemColor.controlDkShadow // Dark shadow color for controls
• SystemColor.inactiveControlText // Text color for inactive controls
• SystemColor.scrollbar // Background color for scrollbars
• SystemColor.info // Background color for spot-help text
• SystemColor.infoText // Text color for spot-help text 


Related Discussions:- Explain system colors in java 1.1

We need a java developer, We need a Java Developer a) Having 4.6 years o...

We need a Java Developer a) Having 4.6 years of I.T experience Java, J2EE, spring, Hibernate, JSF, Swings. b) Analyze, identifying and understanding the client requirements a

Explain what is synchronization, When multiple threads working, Synchroniza...

When multiple threads working, Synchronization is to lock a method for a certain object.

Design a payroll system, For your project, you will be designing a payroll ...

For your project, you will be designing a payroll system for a company. The company will use the system to generate payroll reports based on different kinds of employees in the com

BLP java program, could you please help me with my assignment. My program ...

could you please help me with my assignment. My program need to implement a multi{level role based database script SQL-like generation program. Or part of one anyway. Start with a

JAVA IF/ ELSE, #This assignment will give you practice with interactive pro...

#This assignment will give you practice with interactive programs, if/else statements and methods that return values. You are to write a program that prompts the user for informati

Solving problems about traffic jam, Computer programming Project Descrip...

Computer programming Project Description: Solving various problems about traffic jam Skills required: C# Programming, Java, C++ Programming, PHP, Software Architecture

Jsp retrive data, how to retrive data in one block from database by click ...

how to retrive data in one block from database by click data link in another block

Need java programmer for an assignment, Need java programmer for an assignm...

Need java programmer for an assignment "Prepare a program that will accept a sequence of file names as command-line arguments. These files will consist of ASCII text representin

Explain java.lang.string library in java, Explain java.lang.string library ...

Explain java.lang.string library in java? Strings are objects. Specifically they're instances of the class java.lang.String . This class has several methods which are useful f

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd