Java Technology Home Page
A-Z Index

Java Developer Connection(SM)
Online Training

Downloads, APIs, Documentation
Java Developer Connection
Tutorials, Tech Articles, Training
Online Support
Community Discussion
News & Events from Everywhere
Products from Everywhere
How Java Technology is Used Worldwide
Print Button
 

Help is available for each task.



    Task 1

    Create a new List component and assign it to the instance variable courseList. Create a new Choice component and assign it to studentChoice.


    Do this using the following code:

    private List courseList = new List();
    private Choice studentChoice = new Choice();
    

    Task 2

    Add the following items to the course list:

    Calculus I
    Calculus II
    Algebraic Topology
    Differential Equations
    Engineering Math
    Geometry

    Add the following items to the student choice:

    Zach
    Mary
    Griffin
    Miles
    Magdelena

    Use the add(String) method for both the List and the Choice.

    For example:

    courseList.add("Calculus I");
    studentChoice.add("Zach");
    

    Task 3

    Add both courseList and the studentChoice to the applet.


    Use the add(String) method for both the List and the Choice.

    For example:

    add(courseList);
    add(studentChoice);
    

Copyright 1996-2000 jGuru.com. All Rights Reserved.


Print Button
[ This page was updated: 15-Jul-2000 ]
Products & APIs | Developer Connection | Docs & Training | Online Support
Community Discussion | Industry News | Solutions Marketplace | Case Studies
Glossary - Applets - Tutorial - Employment - Business & Licensing - Java Store - Java in the Real World
FAQ | Feedback | Map | A-Z Index
For more information on Java technology
and other software from Sun Microsystems, call:
(800) 786-7638
Outside the U.S. and Canada, dial your country's AT&T Direct Access Number first.
Sun Microsystems, Inc.
Copyright © 1995-2000 Sun Microsystems, Inc.
All Rights Reserved. Terms of Use. Privacy Policy.