Title: RE: [JAVA2D] buttons and labels in list

Sorry, have to state the obvious here. Why not just put that in a JScrollPane then?

-----Original Message-----
From: Mona Wong [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 10, 2001 2:18 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [JAVA2D] buttons and labels in list


Hi Jeff:

        I need to use JList because there could be a lot of items and I want to
be able to scroll through them.
       
Cheers,

Mona

> Date: Thu, 10 May 2001 13:12:59 -0700
> From: Jeff Kardatzke <[EMAIL PROTECTED]>
> Subject: Re: [JAVA2D] buttons and labels in list
> Comments: To: Mona Wong <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
>
> I assume you're using a JList to put all of that stuff in?  If so, why not
> just put them all in a JPanel instead of JList and use a
> BoxLayout(VERTICAL)? Or is there some list functionality that you need
> otherwise.
>
> Jeff
>
> -----Original Message-----
> From: Mona Wong [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 09, 2001 3:56 PM
> To: [EMAIL PROTECTED]
> Subject: [JAVA2D] buttons and labels in list
>
>
> Hi:
>
>         I would like my list to display a button and then a label for each
> row
> entry.  I want to use a button because I have an image on the button that
> changes when the user clicks on it.  Basically, I am trying to implement
> something very much like Photoshop's Layer window where when the user clicks
> on
> the eye, it disappears and the object on that layer becomes invisible; when
> the
> user clicks on it, the eye appears again and the object becomes visible
> again in
> the window.
>
>         I tried to do this using a JPanel for each list entry but that
> didn't
> work; I got an invalid FlowLayout error during runtime.
>
>         Does anyone have any suggestion or pointer to docs where I can find
> info
> on how to accomplish this?
>
> Cheers,
>
> Mona
>
> ==================================================================
> Mona Wong
> National Center for Microscopy and Imaging Research
> University of California, San Diego
> http://ncmir.ucsd.edu/
>
> "The truth shall set you free, but first it will piss you off"
>                                 A Landmark instructor
> ==================================================================
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff JAVA2D-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".

==================================================================
Mona Wong
National Center for Microscopy and Imaging Research
University of California, San Diego
http://ncmir.ucsd.edu/

"The truth shall set you free, but first it will piss you off"
                                A Landmark instructor
==================================================================

Reply via email to