Write a gui application

Assignment Help Other Subject
Reference no: EM13225271

Write a GUI application that prompts the user for a number between 1 and 5. Be sure to include error checking so that the program continues to prompt the user for a number until the user's entry is between 1 and 5, inclusive.

Once a valid number is entered, the program should display a grid of horizontal and vertical lines inside the frame. 

These lines should be drawn such that: 

The lines create x number of horizontal and x number of vertical boxes, where x is the number entered by the user. 
Each box should be 100 pixels by 100 pixels. 
The grid is spaced inside the frame such that it is perfectly centered both horizontally and vertically, with a 10-pixel border between the edge of the frame and the grid. 
I cannot figure out how to make a border with the gridlayout.

Reference no: EM13225271

Questions Cloud

Changes in the environment in massachusetts : Describe two changes in the environment in massachusetts during the fallthat cause anamals to prepare for winter
Relationship between your personal circumstances : The goal of this assignment is to show the relationship between your personal circumstances and the larger social historical context of your family. Your task will be to apply the sociological imagination to your family life by creating a family soci..
Bilingualism in education or politics : Find four to six credible Web sites or articles that support, oppose, or present information about bilingualism in education or politics
Travel journal to points of interest : Assume that we have developed instantaneous travel to any point on the globe! Select five pieces of art and/or architecture that you found personally the most interesting, appealing, or important. Select one image that represents one of the topics co..
Write a gui application : Write a GUI application that prompts the user for a number between 1 and 5. Be sure to include error checking so that the program continues to prompt the user for a number until the user's entry is between 1 and 5, inclusive.
Reducing tribal poverty encouraging prosperity : What effect have these organizations had in reducing tribal poverty encouraging prosperity?
Shaping administrative issues : Describe the policy process and the actors who play significant roles in shaping administrative issues?
Primary health care settings : What incentives are most effective in retaining health workers in primary health care settings in disadvantaged communities in Uganda
Basic laws of probability : What are the two basic laws of probability? What are the differences between a discrete probability distribution and a continuous probability distribution? Provide at least one example of each type of probability distribution.

Reviews

Write a Review

Other Subject Questions & Answers

  Describing the compensatory and punitive damages

Why is it appropriate that both compensatory and punitive damages exist?

  Question regarding hiv-aids prevention programs

Consider the factors that might influence the success or failure of an HIV-AIDS prevention program.

  Reduced autonomic nervous system efficiency

Write down teh manifestations of reduced autonomic nervous system efficiency are seen in elderly individuals?

  Supervisor for a private security company

Supervisor for a private security company that has been contracted to provide security services for a college football game. You are providing training to the officers assigned to the access gates, where they examine bags to ensure that no weapons or..

  Describe how patient bill of rights applies to situation

Describe how Patient Bill of Rights applies to this situation. Based on facts given in the scenario, would the patient be considered competent to decide? Explain your answer.

  Chief learning officer-economic times

Imagine you are a Chief Learning Officer (CLO) and you have been asked by the CEO to reduce the department head count in order to right-size the department during tough economic times.

  Explaining the contract and enforceability

Schreiner, a cotton farmer, agreed over the telephone to sell 150 bales of cotton to Loeb & Co. Schreiner had sold cotton to Loeb & Co. for the past five years.

  Distribution of the world's food sources

What are some political/societal issues surrounding the distribution of the world's food sources?

  In the late 19th century-wealth-power and influence

The government's administration of Indian affairs was notable over the years for its, After the Homestead Act had been in effect for several years, Congress concluded that it, In the late 19th century, wealth, power, and influence were

  Motivation-functioning of brain to behavior

Make a paper in which you analyze the brain structures and functions related with the motivation to engage in your selected behavior.

  Forensic psychology professional roles in law enforcement

A brief description of two forensic psychology professional roles in law enforcement (Police). Then, analyze the impact of each role in both an internal context (i.e., within the police department) and an external context.

  Vision statements of different companies

Find and share the vision statements of five different companies and what are your conclusions about each of the statements?

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