Control graphical user interface elements, JAVA Programming

Introduction

In this assignment you will use Processing to create some geometric objects and graphical user interface (GUI) elements that Processing itself lacks. Processing has some very convenient graphics drawing functions, but these are not object oriented at all. There are no objects to represent shapes, text boxes, buttons, or list boxes. You will create these in this project.

Objectives

  • Using the Processing programming environment
  • Graphics programming and GUI elements
  • Using interfaces
  • For loops

Getters and setters

I will ask you to make all your member variables private. As such, you will need to create getters and setters for many of the member variables in the classes you create. I will suggest when you should create a getter or setter for a member variable.

Programming style

Remember to use underscores for your member variables only. Do not use underscores in your parameter variable names, even in constructors:

class Foo {

private int _x, _y; // <--underscores!

public Foo(int x, int y) // <--no underscores!

{

_x = x;

_y = y;

}

}

Do not begin variables or method names with capital letters. Only classes should be capitalized.

Processing

You must have Processing installed and running on a computer. See the Lab 10 exercisefor details.

Android

I will give you this information separately.

Custom GUI elements

Design overview

In this program you will first create a Gui class that controls how the graphical user interface elements are drawn on the screen, and how they react to the mouse. Then you will create a few classes to represent geometric shapes (err, ageometric shape), then some GUI elements that use the shape.

Posted Date: 3/8/2013 1:04:44 AM | Location : United States







Related Discussions:- Control graphical user interface elements, Assignment Help, Ask Question on Control graphical user interface elements, Get Answer, Expert's Help, Control graphical user interface elements Discussions

Write discussion on Control graphical user interface elements
Your posts are moderated
Related Questions
Write a program that finds the minimum total number of shelves, including the initial one required for this loading process

Objectives 1.      To design and implement a simple class. 2.      To write a test program to create instances of your class and demonstrate its behaviour. 3.      To col

Task 1 Create a new project in Eclipse called Assignment 1. Within this project create a package called task01. 1/ Download the class Date (you must use this class - no

Describe life cycle of thread. Threads follow the single flow of control. A thread is execution in a program. The life cycles of threads are listed below: Newborn state: A

If any of the above conditions does not met, then the program will generate compilation errors. Today Rahul has written his first program "Hello World", but he is not sure about th

Why hub is used in networks? Hub is networking equipment and a device that connects various computers to form a network. In a network the NIC translates the message within elec

Question: (a) State and explain clearly FIVE new features of Actionscript 3.0 as compared to Actionscript 2.0. (b) Explain clearly the concept of events and events listen

Differentiation between an Applet and an Application ?

What is basic of android?

Describe advantage of the event-delegation model over the earlier event-inheritance model ?