Layout Design Essay

This essay has a total of 800 words and 10 pages.

Layout Design

Deciding Layouts

Deciding the layout is a very important step in Java GUI programming, just like solving an
algorithm in normal programming. Layout decides how the components like labels, buttons,
text fields etc are going to be displayed on a frame or window.


Some GUI can be designed using single panel with a single simple layout. Some GUI need to
be broken down into smaller panels which have to be added to an outer panel. Each smaller
panel can have its own layout.


The simplest layout is the flow layout. Flow layout produces output as a single row. So go
for flow layout if you have only 3 or lesser components or if you want all the components
in a single row.


Next is grid layout. As long as you can determine the rows and columns, you can use this
layout. It is possible to use grid layout for most of the applications which you want to
develop with a single panel. You can always use filler labels to occupy the empty spaces.
So grid layout works fine in such cases.


But if you want to have a very neat GUI with very good layout, you need to go for more
than 1 panel. In that case, grid, flow, and border are all used together.


The development of a GUI depends on the type of problem. There are 2 types of GUI problems:
1. Problems which just specify that you need to do certain things. In this case, the
layout of GUI is totally in your hands.

2. Problems where you are given a rough drawing on how GUI needs to look.

Type 1:

In case 1, you need to start with a paper and pencil.
- Read the problem and identify what needs to be displayed to the user
- Depending on that, draw a simple diagram on how you want your GUI to look
- Then start deciding on the layout

For example, consider the problem below:

Write a GUI java program that takes 2 numbers from the user, adds them, and displays the sum.

Solution:

1. For this, you need 2 text fields to read 2 inputs. 2 labels to tell what to enter in the text fields.
2. 1 button to initiate calculation.
3. 1 text field to display result, and 1 label to address the text field.
4. The rough diagram will be














5. For the above diagram, if you are going to use a single panel, then grid layout is
the best choice. To decide the layout, dissect the diagram as shown below. As long as you
can divide it into rows and columns, you can use grid layout. Otherwise, you need to go
for more than 1 panel.





















Since I am able to dissect the above diagram into 3 rows and 3 columns, I can use grid
layout. In places where there are no components, I can use invisible filler labels.



Type 2:

- In this case, the developer need not draw a diagram because it is already provided.
- Print the diagram, take a pencil, and dissect the diagram.
- Decide the layout.



For example, consider the problem below:

Develop the following GUI:




Continues for 5 more pages >>




  • Deregulation
    Deregulation Deregulation of the U.S. airline industry has resulted in ticket prices dropping by a third, on an inflation-adjusted basis. As a result some 1.6 million people fly on 4,000 aircraft every day. Airlines carried 643 million passengers in 1998, a 25% increase over 1993 and the FAA estimates that the nation¡¦s airline system will have to accommodate 917 million passengers by the year 2008. The growth in air travel threatens to overwhelm the presently inadequate air traffic control syst
  • Sabre
    Sabre Sabre is a complex company that is difficult to fit into a specific industry. Although they were once a division of American Airlines, and remain closely tied to the airline industry, they are not direct competitors of other airline companies. Sabre has several business lines, therefore determining true competitors change with each business unit. Because the core competency is its computer reservation system, the competitive focus will be on other computer reservation system\'s companies.
  • Advancements in Peripherals1
    Advancements in Peripherals1 Recent Developments in Computer Peripherals Including an in-depth look at Multimedia Input Devices A Report by Mr Matthew James Smith HNC BIT Year One Contents Title Page Number Introduction Two Section One - Development in Peripherals Three Section Two - Multimedia Input Devices Five Section Three - An in-depth look Digital Cameras Six The History of the Digital Camera Six How Digital Cameras Work Seven Conclusion Nine Appendix / References Ten Glossary Eleven Intro
  • Contrast DOS to Unix
    Contrast DOS to Unix Compare and Contrast Microsoft DOS with UNIX Arthur Bennis Microcomputer Operating Systems CGS 1560 INTRODUCTION As is suggestive of its name, an operating system (OS) is a collection of programs that operate the personal computer (PC). Its primary purpose is to support programs that actually do the work one is interested in, and to allow competing programs to share the resources of the computer. However, the OS also controls the inner workings of the computer, acting as a t
  • IT related terms
    IT related terms IT RELATED TERMS UNIX A high-level programming language developed by Dennis Ritchie at Bell Labs in the mid 1970s. Although originally designed as a systems programming language, C has proved to be a powerful and flexible language that can be used for a variety of applications, from business programs to engineering. C is a particularly popular language for personal computer programmers because it is relatively small -- it requires less memory than other languages. The first majo
  • WEB DESIGN
    Mr WEB DESIGN Introduction When the Internet and World Wide Web were first created, they were designed a research tools and for the distribution of information through information systems networks. But as the use of the Web has become increasingly more complex, the focus on Web pages and their design has initiated a number of major changes. Initially, static Web pages were common, but the focus in recent years has been on the development of dynamic Web pages which are linked to databases and all
  • Software Licensing
    Software Licensing In 1993 worldwide illegal copying of domestic and international software cost .5 billion to the software industry, with a loss of .2 billion in the United States alone. Estimates show that over 40 percent of U.S. software company revenues are generated overseas, yet nearly 85 percent of the software industry\'s piracy losses occurred outside of the United States borders. The Software Publishers Association indicated that approximately 35 percent of the business software i
  • Technology for Disabled
    Technology for Disabled Technology for the disabled has made numerous advances over the recent years. The things they have been doing to help disabled people to be able to stay with the advances that have been going on in the world is proceeding nicely. This helps the disabled do basic things that we have thought to be an easily accessible occurrence. For example the Internet, all we have to do is turn on the computer and follow the mouse pointer to the designated icon, where as blind people hav
  • UNIX
    UNIX “UNIX was the first operating system designed to run on ‘dissimilar’ computers by converting most hardware specific commands in machine language into an independent programming language called ‘C,’” Jon Wolfe writes in the Nashville Business Journal. (Wolfe 29) UNIX was the basis of AT&T’s telephone system and the government’s wide area network system. Then it became the basis of communication between engineers and scientists, and eventually the basis of communication for everyone worldwide
  • UNIX1
    UNIX1 “UNIX was the first operating system designed to run on ‘dissimilar’ computers by converting most hardware specific commands in machine language into an independent programming language called ‘C,’” Jon Wolfe writes in the Nashville Business Journal. (Wolfe 29) UNIX was the basis of AT&T’s telephone system and the government’s wide area network system. Then it became the basis of communication between engineers and scientists, and eventually the basis of communication for everyone worldwid
  • The AntiTrust Case Against Microsoft
    The AntiTrust Case Against Microsoft The Anti-Trust Case Against Microsoft Since 1990, a battle has raged in United States courts between the United States government and the Microsoft Corporation out of Redmond, Washington, headed by Bill Gates. What is at stake is money. The federal government maintains that Microsoft\'s monopolistic practices are harmful to United States citizens, creating higher prices and potentially downgrading software quality, and should therefore be stopped, while Micro
  • Wireless Technology
    Wireless Technology Wireless Technology applied to Computer Processing I. Abstract Wireless technology can provide many benefits to computing including faster response to queries, reduced time spent on paperwork, increased online time for users, just-in-time and real time control, tighter communications between clients and hosts. Wireless Computing is governed by two general forces: Technology, which provides a set of basic building blocks and User Applications, which determine a set of operatio
  • Teleeducation
    Teleeducation 1.0 INTRODUCTION 1.1 Background of Tele-education Tele-education has a long history beginning with systems like that for teaching children in Australian Outback, the British Open University and other such organizations. These built on the idea of correspondence courses where course materials are sent periodically by post and augmented the experience with broadcasts either on radio or on TV. The problem of student isolation was addressed partially through techniques such as telepho
  • Computer systems
    computer systems INSTALLA INDUSTRIAL MANAGEMENT ET-391 INSTALLATION AND APPLICATION OF CMMS BY: COURTNEY BEAL DECEMBER 5, 2000 INSTALLATION AND APPLICATION OF CMMS INTRODUCTION: Maintenance professionals are presented with more difficult challenges today than ever before. Maintenance departments must deliver superior service, comply with regulatory requirements and standards, and provide detailed financial accountably all within the confines of limited budgets. In order to meet these challenges,
  • Computer systems
    computer systems INSTALLA INDUSTRIAL MANAGEMENT ET-391 INSTALLATION AND APPLICATION OF CMMS BY: COURTNEY BEAL DECEMBER 5, 2000 INSTALLATION AND APPLICATION OF CMMS INTRODUCTION: Maintenance professionals are presented with more difficult challenges today than ever before. Maintenance departments must deliver superior service, comply with regulatory requirements and standards, and provide detailed financial accountably all within the confines of limited budgets. In order to meet these challenges,
  • Microsoft antitrust
    microsoft antitrust Microsoft Antitrust Since 1990, a battle has raged in the United States courts between the United States government and the Microsoft Corporation out of Redmond, Washington, headed by Bill Gates. What is at stake is money. The federal government maintains that Microsoft\'s monopolistic practices are harmful to United States citizens, creating higher prices and potentially downgrading software quality, and should therefore be stopped, while Microsoft and its supporters claim t
  • UNIX
    UNIX “UNIX was the first operating system designed to run on ‘dissimilar’ computers by converting most hardware specific commands in machine language into an independent programming language called ‘C,’” Jon Wolfe writes in the Nashville Business Journal. (Wolfe 29) UNIX was the basis of AT&T’s telephone system and the government’s wide area network system. Then it became the basis of communication between engineers and scientists, and eventually the basis of communication for everyone worldwide
  • Using application software
    using application software Using Application Software Report into possible application package solutions A request by A.T. Press, to investigate the changes in their current ordering system has induced me to present to you this report. This report will feature a comparison on how the requirements of the problem can be met with the facilities of a variety of types of application software packages. It will also feature a suitable type of application software package to provide a solution to the pr
  • Wireless Technology applied to Computer Processing
    Wireless Technology applied to Computer Processing Wireless Technology applied to Computer Processing Abstract Wireless technology can provide many benefits to computing including faster response to queries, reduced time spent on paperwork, increased online time for users, just-in-time and real time control, tighter communications between clients and hosts. Wireless Computing is governed by two general forces: Technology, which provides a set of basic building blocks and User Applications, which
  • Writing system
    writing system Complex-text Languages In the languages of the western world based on the Latin, Cyrillic and Greek scripts, there is no difference between how text is stored for data processing and how it is presented on a display or a printer. The text is read on horizontal lines from left to right, the lines progress from top to bottom and the characters are stored in a manner identical to how they are presented. Not all the languages of the world have these characteristics. In this document,
  • Writing system information
    writing system information Complex-text Languages In the languages of the western world based on the Latin, Cyrillic and Greek scripts, there is no difference between how text is stored for data processing and how it is presented on a display or a printer. The text is read on horizontal lines from left to right, the lines progress from top to bottom and the characters are stored in a manner identical to how they are presented. Not all the languages of the world have these characteristics. In thi
  • Microsoft Monopoly or Great Businessmen
    Microsoft Monopoly or Great Businessmen Since 1990, a battle has raged in United States courts between the United States government and the Microsoft Corporation headed by Bill Gates. What is at stake is money. The federal government maintains that Microsoft\'s monopolistic practices are harmful to United States citizens, creating higher prices and potentially downgrading software quality, and should therefore be stopped, while Microsoft and its supporters claim that they are not breaking any la
  • Unix
    Unix “UNIX was the first operating system designed to run on ‘dissimilar’ computers by converting most hardware specific commands in machine language into an independent programming language called ‘C,’” Jon Wolfe writes in the Nashville Business Journal. (Wolfe 29) UNIX was the basis of AT&T’s telephone system and the government’s wide area network system. Then it became the basis of communication between engineers and scientists, and eventually the basis of communication for everyone worldwide
  • How Ethernet Works
    How Ethernet Works What Is Ethernet and How Is It Used? ITSK2511 Cecil Jackson Invention of Ethernet A gentlemen by the name of Bob Metcalfe realized that he could improve on a system called the Aloha System which arbitrated access to a shared communications channel. He developed a new system that included a mechanism that detects when a collision occurs (collision detect). The system also includes "listen before talk," in which stations listen for activity (carrier sense) before transmitting, a
  • Microsoft antitrust
    microsoft antitrust Since 1990, a battle has raged in United States courts between the United States government and the Microsoft Corporation out of Redmond, Washington, headed by Bill Gates. What is at stake is money. The federal government maintains that Microsoft’s monopolistic practices are harmful to United States citizens, creating higher prices and potentially downgrading software quality, and should therefore be stopped, while Microsoft and its supporters claim that they are not breaking
  • Multimedia Literature Review
    Multimedia Literature Review Literature Review The term media refers to the storage, transmission, interchange, presentation, representation and perception of different information types (data types) such as text, graphics, voice, audio and video. The term multimedia is used to denote the property of handling a variety of representation media in an integrated manner. The phrase \'representation media\' is used because it is believed the most fundamental aspect of multimedia systems is the suppor
  • Teleeducation
    teleeducation 1.0 INTRODUCTION 1.1 Background of Tele-education Tele-education has a long history beginning with systems like that for teaching children in Australian Outback, the British Open University and other such organizations. These built on the idea of correspondence courses where course materials are sent periodically by post and augmented the experience with broadcasts either on radio or on TV. The problem of student isolation was addressed partially through techniques such as telephon
  • Wireless Technology and Computers
    Wireless Technology and Computers Wireless Technology applied to Computer Processing Abstract Wireless technology can provide many benefits to computing including faster response to queries, reduced time spent on paperwork, increased online time for users, just-in-time and real time control, tighter communications between clients and hosts. Wireless Computing is governed by two general forces: Technology, which provides a set of basic building blocks and User Applications, which determine a set
  • TapNet Business Plan
    TapNet Business Plan TAPNET.COM Business Plan December 11, 2000 Peter Bankuti Table of Contents ______________________________________________________________________ 1. TapNet Executive Summary 4 1.1 The Opportunity 4 1.2 The Application 4 1.3 The Need for Additional Capital 5 2. The Industry and TapNets Product(s) or Service(s) 5 2.1 The Trade Association Industry 5 2.2 TapNet Company and the Concept 7 2.2.1 Networking 7 2.2.2 News & Information 8 2.2.3 Ecommerce 8 2.2.4 Meetings 8 2.3 TapNe
  • Business Plan
    Business Plan TAPNET.COM Business Plan December 11, 2000 Peter Bankuti Table of Contents ______________________________________________________________________ 1. TapNet Executive Summary 4 1.1 The Opportunity 4 1.2 The Application 4 1.3 The Need for Additional Capital 5 2. The Industry and TapNet¡¦s Product(s) or Service(s) 5 2.1 The Trade Association Industry 5 2.2 TapNet Company and the Concept 7 2.2.1 Networking 7 2.2.2 News & Information 8 2.2.3 Ecommerce 8 2.2.4 Meetings 8 2.3 TapNet Prod
  • History of the coputer
    History of the coputer COMPUTER Generally, a computer is any device that can perform numerical Calculations --even an adding machine, an abacus, or a slide rule. Currently, however, the term usually refers to an electronic device that can use a list of instructions, called a program, to perform calculations or to store, manipulate, and retrieve information. Today\'s computers are marvels of miniaturization. Machines that once weighed 30 tons and occupied warehouse-size rooms now may weigh as li
  • History of the PC
    History of the PC “If one thinks about it, it is truly remarkable how far the technology has advanced since the first digital computer was introduced in 1946. The ENIAC (Electronic Numerical Integrator and Calculator) was designed and built at the University of Pennsylvania. It weighed 30-tons and took up 1500 square feet of floor space. The first computer developed in Europe was the EDSAC (Electronic Delay-Storage Automatic Computer). This machine was built at Cambridge University in 1949. Wha
  • Microsoft
    Microsoft The Anti-Trust Case Against Microsoft Books related to The Anti-Trust Case Against Microsoft The Anti-Trust Case Against Microsoft Since 1990, a battle has raged in United States courts between the United States government and the Microsoft Corporation out of Redmond, Washington, headed by Bill Gates. What is at stake is money. The federal government maintains that Microsofts monopolistic practices are harmful to United States citizens, creating higher prices and potentially downgrad
  • Microsoft Monopoly or Not
    Microsoft Monopoly or Not A battle has raged in the United States courts between the U.S. government and the Microsoft Corporation, headed by Bill Gates, since 1990. The federal government has maintained that Microsoft’s monopolistic practices are harmful to United States citizens, creating higher prices and potentially downgrading software quality, and should therefore be stopped, while Microsoft and its supporters claim that they are not breaking any laws, and are just doing good business. Mi
  • Open Source vs Traditional Development
    Open Source vs Traditional Development In the world of technology today there is room for everyone at every level of expertise. From our identified Gurus, to the just bought their first computer newbie. Home computers are sometimes almost to easy to use. The old saying "just enough rope to hang yourself" comes to mind. Settings that modify the very way the system looks, and runs can be changed with the simple click of the mouse. This power, which has been given to every level of user, is not fr
  • Web Design
    Web Design Introduction When the Internet and World Wide Web were first created, they were designed a research tools and for the distribution of information through information systems networks. But as the use of the Web has become increasingly more complex, the focus on Web pages and their design has initiated a number of major changes. Initially, static Web pages were common, but the focus in recent years has been on the development of dynamic Web pages which are linked to databases and allow
  • Computerized Maintenance Management Systems
    Computerized Maintenance Management Systems INTRODUCTION Facilities departments are under tremendous pressure to provide more information faster, and at a lower cost to the company. At the same time many companies have reduce staff to the bare minimum. Maintenance professional are presented with more difficult challenges today than at any previous point. The biggest obstacle of all confronting maintenance professionals is being forced to do more with fewer resources. Maintenance departments mus
  • INSTALLATION AND APPLICATION OF CMMS
    INSTALLATION AND APPLICATION OF CMMS INTRODUCTION: Maintenance professionals are presented with more difficult challenges today than ever before. Maintenance departments must deliver superior service, comply with regulatory requirements and standards, and provide detailed financial accountably all within the confines of limited budgets. In order to meet these challenges, maintenance professionals are arming themselves with economical Computerized Maintenance Management Systems (CMMS). Definitio
  • Use of Haptics for the Enhanced Musuem WebsiteUSC
    Use of Haptics for the Enhanced Musuem WebsiteUSC Use of Haptics for the Enhanced Musuem Website-USC Interactive Art Museum Our mission for the Enhanced Museum project is to explore new technologies for the exhibition of three-dimensional art objects (Goldberg, Bekey, Akatsuka, and Bressanelli, 1997; McLaughlin, 1998; McLaughlin, Goldberg, Ellison, and Lucas, 1999; McLaughlin and Osborne, 1997; Schertz, Jaskowiak, and McLaughlin, 1997). Although it is not yet commonplace, a few museums are expl
  • ETRT
    ETRT DOS, UNIX and other command-line operating systems have long been criticized for the complexity of their user interface. This interface evolved in the late 60\'s and early 70\'s with the emergence of timesharing as the new leading computing style. Using terminals on shared minicomputers, UNIX evolved a set of applications that shared a common on-oriented interface. This interface was revolutionary in its time for its simplicity and power. UNIX introduced the concept of the shell, a command
  • Microsoft
    microsoft Microsoft And How It’s A Monopoly Since 1990, a battle has raged in United States courts between the United States government and the Microsoft Corporation out of Redmond, Washington, headed by Bill Gates. What is at stake is money. The federal government maintains that Microsoft’s monopolistic practices are harmful to United States citizens, creating higher price and potentially downgrading software quality, and should therefore be stopped. While Microsoft and its supporter’s claims
  • Novell Network
    Novell Network As todays businesses increase in sizes, there is a more demanding need for an increase in security needs. Many businesses today have to answer the question of, When do I know that have too much security and which network system is more secure for my company? To answer this question many points of views have to immerge with the best compatible solution. Companies should consider involving many systems such as cost management, and security management system. Companies dont want
  • Windows NT 40 Verses Lynix
    Windows NT 40 Verses Lynix Windows 2 Abstract Founded in 1975, Microsoft (Nasdaq "MSFT") is the worldwide leader in software for personal computers. The company offers a wide range of products and services for business and personal use; each designed with the mission of making it easier and more enjoyable for people to take advantage of the full power of personal computing every day. The Linux operating system is not suitable for mainstream usage by business or home users. Today with Windows NT
  • Test
    Test Compare and Contrast Microsoft DOS with UNIX Arthur Bennis Microcomputer Operating Systems CGS 1560 INTRODUCTION As is suggestive of its name, an operating system (OS) is a collection of programs that operate the personal computer (PC). Its primary purpose is to support programs that actually do the work one is interested in, and to allow competing programs to share the resources of the computer. However, the OS also controls the inner workings of the computer, acting as a traffic manager
  • Advancements in Peripherals
    mr Advancements in Peripherals By: Mat E-mail: matthew.smith5@ntlworld.com Recent Developments in Computer Peripherals Including an in-depth look at Multimedia Input Devices A Report by Mr Matthew James Smith HNC BIT Year One Contents Title Page Number Introduction Two Section One - Development in Peripherals Three Section Two - Multimedia Input Devices Five Section Three - An in-depth look Digital Cameras Six The History of the Digital Camera Six How Digital Cameras Work Seven Conclusion Nine
  • Electronic Journals and Scholarly Communication
    Electronic Journals and Scholarly Communication In recent years, scholarly communication has virtually exploded into the on-line electronic world. This has brought a number of demonstrable benefits to the scholarly communication process as well as highlighting a number of inefficiencies and obstacles to the full deployment of information technology. However, the explosion has also brought a spate of credulous accounts concerning the transformative potential of information technology. These acco
  • AntiTrust Case Against Microsoft
    AntiTrust Case Against Microsoft A battle is raging in the United States Courts with the Microsoft Corporation. The federal government maintains that Microsoft\'s monopolistic practices are harmful to United States citizens creating higher prices and potentially downgrading software quality and should be stopped while Microsoft and its supporters claim that they are not breaking any laws and are just doing good business. Microsoft\'s antitrust problems began for them in the early 1990\'s. When
  • Electronic Journals and Scholarly Communication
    Electronic Journals and Scholarly Communication Electronic Journals and Scholarly Communication In recent years, scholarly communication has virtually exploded into the on-line electronic world. This has brought a number of demonstrable benefits to the scholarly communication process as well as highlighting a number of inefficiencies and obstacles to the full deployment of information technology. However, the explosion has also brought a spate of credulous accounts concerning the transformative
  • Information Age
    Information Age INFORMATION AGE The 20th century has seen extraordinary growth in technology; however, it has only been in the last decade that this boom in information has been accessible to the entire world through new technologies like computers and the Internet. These new technologies have found their way into areas of modern culture, such as photography, print, and film, enhancing its potential through its creation of CD-ROMs, websites, and computer games, terming the phrase new media wh
  • Of Mouse and Men
    Of Mouse and Men If you ask people to name one of the most important technologies of the twentieth century, one of the answers would most certainly be the computer. A computer, however, is not a technology all to itself. Many other technologies went into the modern home computers of today, including the mouse. Douglas C. Engelbart, a worker at the SRI (Stanford Research Institute), invented the mouse in 1964. However, the process of the invention of the mouse was not instantaneous and without e