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

Garbage collection guarantee, Is it right that garbage collection guarante...

Is it right that garbage collection guarantee that a program will not run out of memory?

Explain data updates issues in data management, Explain Data Updates issues...

Explain Data Updates issues in data management? DATA UPDATES: Old titles must be removed regularly Data changes every time Prices change Transportation / shipping cost change

Describe features of spring, Here are some features of spring:- ? Lightw...

Here are some features of spring:- ? Lightweight: spring is lightweight when it comes to size and transparency. The essential version of spring framework is around 1MB. And t

What is javaserver faces technology, A framework for building server-side u...

A framework for building server-side user interfaces for Web applications is written in the Java programming language.

Give a example of using tostring() methods, Give a example of Using toStrin...

Give a example of Using toString() Methods ? Below is a version of CarTest in which uses toString() and System.out.println() instead of printing the fields in a straight line

Series, Write a Java program to find the sum of 1+3+5+…. , for 10 terms in ...

Write a Java program to find the sum of 1+3+5+…. , for 10 terms in the series.

Want an android app to be build, Want an Android App to be Build What i ...

Want an Android App to be Build What i want is a Taxi App for Android and if good price for iOS too. The App want to have a Website where to add Cars whit all information and

Arithmetic, 1-4 Problem Set: Arithmetic Consider the following statement wh...

1-4 Problem Set: Arithmetic Consider the following statement when responding to questions 1 and 2: Jim develops 5 Java applications a year. Joe develops 10 Java applications a year

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