正在加载图片...
ListBox r The List Box class provides a list of items the user can select r It is considered a better user interface to allow the user to enter only valid values instead of detecting invalid entries after the user entered them r First we create a listBox object as Mainwindow mainwindow new Mainwindow ListBox colorist= new ListBox( mainwindow, Select co1or″) We can create colorIst as new ListBox( mainWindow ) if we do not need a customized dialog title C 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 6-19© 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 6 - 19 ListBox The ListBox class provides a list of items the user can select. It is considered a better user interface to allow the user to enter only valid values instead of detecting invalid entries after the user entered them. First we create a ListBox object as MainWindow mainWindow = new MainWindow( ); ListBox colorList = new ListBox( mainWindow, “Select Color” ); We can create colorList as … = new ListBox( mainWindow ); if we do not need a customized dialog title
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有