Results 1 to 6 of 6

Thread: Accessing anther class components

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2001
    Location
    Earth
    Posts
    277

    Accessing anther class components

    I have two classes

    how can I use the JList from another class

    each class has its file



    ??

  2. #2
    DaoK
    Guest
    you have to extends the class

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2001
    Location
    Earth
    Posts
    277
    it's already extends another class

  4. #4
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418
    Try creating a get method that returns a refrence to the JList so it's contents can be modified.

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2001
    Location
    Earth
    Posts
    277
    suppose that i have getJList() method which return the JList object;

    how can I use that method in the other class ?

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2001
    Location
    Earth
    Posts
    277
    now every thing is OK

    thanks all

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width