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
Java expert with tomcat tuning experience needed Project Description: Want a Java expert to fix memory issues with tomcat. I need School java project - Threads Programm


Write a Java program in a NetBeans project that reads a text file containing the names and addresses of several people and displays them all at once or one at a time upon selecting

Prepare a Java Look and Feel Theme from HTML Template Project Description: For this project you would be needed to create a Java LAF (Look and Feel) Theme from this HTML Y

What is constructor chaining and how is it achieved in Java? A child object constructor always first requires to construct its parent (which in turn calls its parent constructo

I''m having trouble with creating a nested for loop to create a table that displays every number divisible by two within the given value. For example, if the number is 8 then there

In  order  to  provide  portable  and  reliable  EJB  elements,  the  following  restrictions  apply  to  EJB  code implementation: 1. Avoid using static non-final fields. Defin

What is meant through semantic error? It is an error that a developer encounters while a statement is executed but it was not intended through him (the developer). Such errors ar

(CarbonFootprint Interface: Polymorphism) Using interfaces, as you learned in this chapter, you can specify similar behaviors for possibly disparate classes. Governments and compan

What will be the output of this programme? Write comments where you find "//" symbol in the following code? function doSomething() { // 1 setTimeout('doSomething()',10000