... b=l.getSelectedItems();
for( int i=0;i<a.length;i++)
System.out.println(a|i|);
for( int j=0;j<b.length;j++)
System.out.println(b[j]);
}
});
Bài 11 - TextField và TextArea
* TextField
Có 4 phương thức ...
menuLabel={"File","Edit","View","Insert","Format","Table","Windows","Hel
p"};
final Menu[] menu=new Menu[menuLabel.length];
for( int i=0;i<menuLabel.length;i++)
... f.add(p);
for( int i=0;i<a.length;i++)
{
b|i|=new Checkbox(a|i|,g,false);
p.add(b|i|);
b|i|.addItemListener(new ItemListener()
{
public void itemStateChanged(ItemEvent
e)
{
for( int j=0;j<a.length;j++)
...
... Drop-Down List 44 5
Building the form 44 6
Reading the list box 44 7
Managing Multiple Selections 44 8
Coding a multiple selection select object 44 9
Writing the JavaScript code 45 0
02_978 047 0537558-ftoc.indd ... page 43 4
Manipulating the text elds 43 5
Writing to the Document 43 6
Preparing the HTML framework 43 6
Writing the JavaScript 43 7
Finding your innerHTML 43 8
Working with Other Text Elements 43 8
Building ... 140 5_978 047 0537558-bk01ch01.indd 14 10/7/10 8:28 PM10/7/10 8:28 PM
www.it-ebooks.info
HTML, XHTML, & CSS All-in-One For Dummies, 2nd Edition
xiv
Semantic Elements 142
Using New Form Elements 144
Using...
... .39
Declaring a Variable 40
What’s an int? 40
Rules for declaring variables 42
Variations on a theme — different types of int 42
Representing Fractions 43
Handling Floating Point Variables 44
Declaring a ... ingredients CD 141
Going around the C# development cycle CD 142
Doing C# with SharpDevelop CD 142
Examining SharpDevelop CD 143
Comparing SharpDevelop features with Visual Studio CD 144
Getting help CD 145
Configuring ... Page 14
Classy Generics: Writing Your Own 340
Shipping packages at OOPs 341
Queuing at OOPs: PriorityQueue 341
Unwrapping the package 345
Touring Main( ) 347
Writing generic code the easy way 348
Saving...