> Hi,
> I've a JPanel with a GridLayout layout.
[quoted text clipped - 7 lines]
> Thank you
> Alessandro
Yes, it is possible, but you should find way how to select JPanel.
Add MouseListener to each JPanel.
public void mouseEntered(MouseEvent e){
if(e.getSource() == panel24){
//
}else if(.........
}
aleicaro@libero.it - 21 Jun 2005 15:09 GMT
I tried another way.
I extended JPanel and I added 2 properties: XCell and YCell to create
the internal panels.
When I add the internal panels I instanciate my class and I assign to
XCell and to Y Cell the actual "coordinates" of my GridLayout.
Isn't easier?
Thank you
Alessandro