Examlex

Solved

Import Javax.swing.*; Import Java.awt.*;

question 38

Essay

import javax.swing.*;
import java.awt.*;
import java.awt.Color;
public class JDemoRectangles extends JFrame
{
Container con = getContentPane();
public JDemoRectangles()
{
con.setBackground(Color.BLUE);
con.setLayout(new FlowLayout());
}
public void paint(Graphics gr)
{
super.paint(gr);
gr.setColor(Color.RED);
gr.fillRect(40, 40, 120, 120);
gr.setColor(Color.YELLOW);
gr.fillRect(80, 80, 160, 160);
gr.clearRect(50, 60, 50, 50);
}
public static void main(String[] args)
{
JDemoRectangles frame = new JDemoRectangles();
frame.setSize(200, 200);
frame.setVisible(true);
}
}
Using the above code, describe what objects are drawn using the shaded statements of the paint() method.


Definitions:

Joint Venture

A venture that operates in a foreign country through co-ownership by foreign and local partners.

Organic Forms

Organizational structures that are flexible, decentralized, and characterized by less formal rules and procedures, often adapting quickly to changes.

Bureaucratic Structures

Organizational forms that are characterized by a hierarchical arrangement of jobs, reliance on formal rules and regulations, and a clear distinction of labor.

Environmental Uncertainty

A lack of information regarding what exists in the environment and what developments may occur.

Related Questions