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

  The most frequent cause of it implementation failures

An evaluation of what you think is the most frequent cause of IT implementation failures. Justify your answer. Explain how change in management can help solve software implementation failures.

  Explaining mismatched file headers to extensions

What procedures would you require to follow to retrieve evidence? Identify mismatched file headers to extensions.

  Assignment instructions

Assignment Instructions

  Draw mind map to show risks and actions and strategies

Draw a mind map to show the risks and the actions and strategies that would ensure the integrity of your data, and the optimisation of a computer.

  Article in the ny times

Read the following article in the NY Times. Defeat your opponent and hires. Need the following questions answer. What does this mean in terms of organizational behavior? How do you implement? Is this an ethical practice? How would this an ethical pra..

  Identify a current trend in technology for improving global

Identify a current trend in technology for improving global business

  Define a work breakdown structure

Summarize the project requirements and other assumptions (i.e., budget, human resources, workload, environmental dependencies, etc.). Define a work breakdown structure and describe the methodology behind constructing one.

  Describe organization''s strategic planning on the it systems

Describe the effect of an organization's strategic planning on the IT systems it uses. Address how strategic planning simplifies and complicates IT system development and use.

  How a large output impedence effect the behavior op circuit

How would a large OUTPUT impedence effect the behavior of an op amp circuit? please talk about how the large output impedence would effect the circuit.

  Improve the profitability of credit sales

You have been asked to assess the expected financial impact of each of the following proposals to improve the profitability of credit sales made by your company. Each proposal is independent of the other. Answer all questions. Showing your work..

  Explaining final results in cell to a percentage

Second quarter revenue total has increased from first quarter revenue total by 60.16%. Make sure to change cell format for final results in the cell to a percentage.

  Arithmetic unit and related self testing in mips

Write an arithmetic unit and related self testing in MIPS assembly as following. Put all the source codes in a directory and compress them into a zip file and upload. Grader should be able to download your zip file, unzip it and directly load it i..

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