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

I need java expert with tomcat tuning experience, I need Java expert with t...

I need Java expert with tomcat tuning experience Project Description: Require a Java expert to fix memory issues with tomcat. Skills required: Java, Apache

What are separators in java, What are separators in java? Separators he...

What are separators in java? Separators help elaborates the structure of a program. The separators used within HelloWorld are parentheses, ( ) , braces, { } , the period, .

I want prosport savings plans, I want ProSport Savings Plans Project Des...

I want ProSport Savings Plans Project Description: To prepare an application on iPhone, Mac, iPad and Android, which does the subsequent:- Provides a calculation of the am

What is numeric promotion, What is numeric promotion? Numeric promotion...

What is numeric promotion? Numeric promotion is the conversion of a smaller numeric type to a larger numeric type, so that integer and floating-point operations may take place.

Develop a desktop chatbot application, Develop a desktop Chatbot applicatio...

Develop a desktop Chatbot application Project Description: Looking for an in depth and smart working chatbot Seeking someone with skills working with AI and chatbots and t

How can you pass parameters in rmi?, RMI parameters : Primitive types ...

RMI parameters : Primitive types are given by value. 2. References to remote objects are given as remote references that allow the client process to call methods on the rem

What is significance of jsf- spring integration, Spring - JSF integration i...

Spring - JSF integration is useful when an event handler wishes to explicitly invoke the bean factory to make beans on demand, such as a bean that encapsulates the business logic t

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