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".
