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

Insert admob code into android application, Need to Insert Admob Code Into ...

Need to Insert Admob Code Into Android Application Project Description: We are seeking Android developer to add Admob code in to our application. It should be very simple

Area under curves, Write a program to find the area under the curve y = f(x...

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can b

How many iterations would this for loop run for, How many iterations would ...

How many iterations would this ‘for' loop run for? for ( x = 50 ; x document.write ( x ) ; } Answer: 50 iterations

Java program need to compile, Java program need to compile Project Descr...

Java program need to compile Project Description: i have one program required to compile to run it . Skills required: Java

Decsion tree, implementation of DT in netbeans

implementation of DT in netbeans

What is image processing, What is image processing? It field of compute...

What is image processing? It field of computer whereas we enhance and manipulate the graphics. Like it is used to recover old photograph and through processing we can revive

Prepare a java program to read .gpx files, Prepare a Java program to read ....

Prepare a Java program to read .GPX files Project Description: Prepare a Java program (GPX_Tracks_to_Text.Java) for Windows to: - Read every .GPX file in a provide drive a

Demonstrate your ability to ability to use java data , Purpose Demonstr...

Purpose Demonstrate your ability to ability to use Java data and control structures. Draw with the aid of conditionals and loops. Background Thought A note on comments:

Describe the java collections framework? , Comparable interface: The "Com...

Comparable interface: The "Comparable" allows itself to compare with other same types of object. The function compareTo() is specified in the interface. Several of the standa

Name conflicts when importing packages, Name Conflicts when importing packa...

Name Conflicts when importing packages It is possible which you will try to import a package which contains classes in which have the similar name as a class in your own source

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