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

  Calligraphy and mosaic visual representations of religious

Considering that calligraphy and mosaic are visual representations of religious belief, compare and contrast Islamic calligraphy at Alhambra and Dome of the Rock to Christian mosaics at Ravenna. What do you think each art form communicates about the ..

  Ethical dilemmas in healthcare

What are two ethical dilemmas facing the profession of healthcare?

  Explain the biological-psychological-social and cultural

Explain the biological, psychological, social, and cultural factors that affect people’s ability to cope with dying.

  Explain the concept of groupthink

explain the concept of groupthink does not necessarily have a positive connotation. describe what group think refers to, and discuss the conditions that must be present in order for this process to occur.

  Eating disorders-lead to health problems

This posting offers help explaining the following: some of the health problems assoiciated with anorexia nervosa, bulimia nervosa, and bing-eating disorder? from a pysiological standpoint, how eating disorders may lead to health problems.

  Use adverbs and adjectives to write short review of movie

Distinguish event to one or more similar events. When comparing, use at least three comparatives and three superlatives.

  Usage of content on a web site

discussing the implications of copyrights on the usage of content on a Web site.

  Resulting damage of the crime

Summarize the facts of the case-what was the crime, who was the criminal, who was the victim, what was the resulting damage of the crime? What do you think was the underlying motivation of the criminal in the case? Why? What facts or data support you..

  Recognizing legal issue and applicable rule

A German company sold steel to a United States company, pursuant to a series of correspondence between them. The United States company had issued a purchase order, printed on a standard form, for galvanized steel to Germany.

  Protein in supplements to dietary sources

Evaluate these products in relation to cost, protein quality and quantity, and presence of other nutrients. Compare the quality of protein in supplements to dietary sources.

  Explain training case workers to estimate children

You are in charge of training new case workers to visit homes and estimate children. You are creating a hand-out for this training on first two years of development.

  What are the types of restraints

What aspects would you consider in preparation for her discharge and discuss a minimum of three services that are available to assist the older person with maintaining social contacts within your local area.

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