Width and distance text boxes for vertical

Assignment Help Basic Computer Science
Reference no: EM13935312

You are to write a software application using the Java programming language that enables a user to  design a flag. The user draws circles or ellipses, horizontal or vertical bars on the flag. The user chooses the colour, width, height and location of the circles, ellipses and / or bars.

The width, height and location are in pixels. The default base flag should be 240 * 120 pixels, and  of white colour. The top left corner of the flag should be 10 pixels to the right and 10 pixels below  the top left corner of the drawing area. The flag itself should have a black border, but the bars,  circles and ellipses should not.

The default values for the width and distance text boxes for vertical bars should be the flag width / 3  (= 80 pixels). For horizontal bars, the default values for the height and distance text boxes should be the flag height / 3 (= 40 pixels).

The default values for the circles should be: width = 40 pixels, height = 40 pixels, X distance (from top-left of flag) = 80 pixels, and Y distance = 20 pixels. Your task in Part A will be to develop a GUI (using the built-in WindowBuilder in Eclipse and

Java Swing components) that allows a user to input the data for a particular flag. To this end, the user can

  •  input the data using Java Swing GUI elements, e.g. text fields, radio buttons, drop down lists, etc.,
  •  draw bars / rectangles and circles / ellipses,
  •  draw combinations thereof as each drawn shape is added to the already existing flag drawing,
  •  select different colours for each shape to be drawn, and  reset the drawing area back to the default base flag.

The drawing area must have a minimum size of 300 x 200 pixels. The drawing area and the flag
itself should have a clearly visible border, but the flag's bars / rectangles and circles / ellipses not.
The data should be entered through the GUI and visualised when the Draw button is clicked. It
does not need to be saved in Part A, neither in memory (in an array or vector, for example), nor in a
text file. Only the data for one flag at a time needs to be visualised.
The Reset button erases the flag drawing and presents the white base flag with a clearly visible
border again.
The Quit button exits the program.

Reference no: EM13935312

Questions Cloud

Five pseudo random number generators : Evaluate the five pseudo random number generators (RNGs) supplied with respect to the quality of the generated random sequence. High quality random number generators are fundamental in ensuring reliable simulations.
Negotiate access to an organisation and research : You are expected to negotiate access to an organisation and research the company history, organisational structure, and performance and compensation practices.
An objective strategy : 'There is no more an objective strategy than there is a Big Dipper.' Discuss the implication of this contention for strategy, with reference to Smircich and Stubbart's (1985) concept of enactment.
Design an html document for a restaurant using javascript : I expect your web page to look and function very realistically. For example, item prices should be lined up in the menu and shopping cart sections.
Width and distance text boxes for vertical : You are to write a software application using the Java programming language that enables a user to  design a flag. The user draws circles or ellipses, horizontal or vertical bars on the flag. The user chooses the colour, width, height and location..
Analyze the challenges of cultural or generational diversity : Analyze the challenges of this form of diversity from a supervisory perspective, which could be shared with other supervisors across an organization. Include the following concepts:
What stage of cell cycle would the drug be most beneficial : The amount of money spent on scientific research is related to the effect or impact that research has on society. For example, the amount of money spent on cancer is far more than the amount spent on acne.
How many units were in work in process at the end of august : How many units were in Work in Process at the end of August?
How h2s can be converted to elemental form of sulphur : How H2S can be converted to elemental form of sulphur? What is the reaction between sodium sulphite and dilute sulphuric acid? Give balanced equation. What is the gas evolved by reaction between sodium sulphite and dilute sulphuric acid? Give ionic e..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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