GUI Programming in Java课件.pptGUIProgramming******@York精品文档GUIProgrammingConceptsconventionalprogramming:sequenceofoperationsisdeterminedbytheprogramwhatyouwanttohappen,happenswhenyouwantitevent-drivenprogramming:sequenceofoperationsisdeterminedbytheuser’sinteractionwiththeapplication’sinterfaceanythingthatcanhappen,happensatanytime精品文档GUIDesignConceptsawealthofinformationcreatesapovertyofattention-HerbertSimonPrinciplesofgoodGUIDesignIBM'sDesignconceptsSaulGreenberg'sHCIpagesTim'sHCInotes精品文档GUIProgrammingConceptsinJavaJavaGUI("Swing")ponentsWindowsGUIhascontrolsUnixGUIhaswidgetsexamples:labels,buttons,checkboxes,radiobuttons,textinputboxes,ponents:JLabel,JButton,JCheckBox,JRadioButton,JTextField,JTextArea,JComboBox精品文档JavaGUIhistory:theAWTAWT(,):AbstractWindowToolkitpackage:,(Java2,+)ponentsthatdonotrelyonthenativeGUIorOS“lookandfeel”ponentsareidenticalondifferentplatformscanbecustomizedSwinginheritsfromAWTAWTstillusedforevents,-and-droppackagenames:,-levelcontainer:JFrame,JDialog,-=trueMySwingClasstheoptionsetsthesystemproperty""to"true"toenableanti-ponentstooneormorecontainersusingalayoutmanagerregistereventlistener(s)ponentscreateeventlistenermethod(s)精品文档BasicGUIProgrammingConceptsinJavaExample:,,:ascreenwindow/appletwindow/ponent:anobjectwithvisualrepresentationSwingcontainers:JFrame,JApplet,JPanelAWTcontainers:Frame,Applet,Panel精品文档
GUI Programming in Java课件 来自淘豆网m.daumloan.com转载请标明出处.