Unformatted text preview:

GUI IOutlineHomework #1SolutionSimple Swing ApplicationStandard UI programApplication ArchitectureJava UI TopicsTop-Level ComponentsIntermediate ContainersBasic ControlsNon-editable DisplayEditable DisplayText ComponentsExamplesJComponents MethodsPrimary propertiesSecondary propertiesTertiary propertiesSwing ComponentsJLabelJMenuItemJButtonJRadioButtonJTextFieldComplex componentsJListJComboBoxExampleDialog IssueGUI IIS 3132.6.03OutlineHomework #1 solutionGUI componentsHomework #1Ave: 10.5High: 12Low: 8but ...SolutionMemberMapSimple Swing ApplicationStandard UI programMain programCreates a windowAdds componentsDisplaysComponent makerCreates, customizes componentsSets event handlersApplication ArchitectureJava UI TopicsUI ComponentsContainment hierarchyLayout managementEvent handlingTop-Level ComponentsApplet Dialog FrameIntermediate ContainersPanelScrollPaneTabbedPaneSplitPaneToolbarBasic ControlsButtons ListComboBoxTextFieldSliderMenuNon-editable DisplayProgressBarLabel ToolTipEditable DisplayTextTable TreeText ComponentsExamplesExample 2two-tiered architectureExample 3specialized component designJComponents MethodsPrimary propertieshow it appearsSecondary propertiesrole in the interfacevisual relationship to other componentsTertiary propertiescomputational propertiescontent propertiesPrimary propertiesBorderColorforegroundbackgroundFontLocaleSizeminimum sizemaximum sizepreferred sizeactual sizeVisibleSecondary propertiesEnabledContainmentparentchildrenDrag and DropFocusacceptskeys to traverseToolTipTertiary propertiesContentdifferent for every type of componentComputationallistenersall availableone typically usedSwing ComponentsSubclasses of JComponentall primary and secondary propertiesPlus component-specific propertiesPlus relevant listenersJLabelContent propertyTextJMenuItemHierarchyJMenuBarJMenuJMenuItemContentTextComputationActionEventSubtypesJCheckboxMenuItemJRadioButtonMenuItemJMenuJButtonContentTextComputationActionListenerJRadioButtonContentTextSelectedRelationshipButtonGroupJTextFieldContentTextEditableComputationActionListenerhandle return or tabKeyListenerhandles individual letters typedComplex componentsContent is represented indirectlymodelModel = interfaceIdeaComponent C uses Model Mexisting data Dcreate wrapper class encapsulating D implementing interface Mdata is displayable in CJListContentListModelComputationMouseListenerSelectionModelJComboBoxCombination of text field and listContentComboBoxModelComputationActionEventExampleLabelTextFieldJButtonJRadioButton, JList, JComboBoxDialog IssueUI components are both input and outputInputstate of the control when user clicks “OK”Outputstate of the control when it is shownshould reflect state of


View Full Document

DePaul IS 313 - Lecture Notes

Download Lecture Notes
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Lecture Notes and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Lecture Notes 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?