This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
It would be nice to be able to do user code when assigning a panel (card) a name when using a CardLayout. Right now, all you can enter in is a String. In my programs, I often create a String constant that serves as the card name for a panel in a card layout so that I can reference the constant in my code as I show the panel programmatically and not via the Next option that a CardLayout gives you.
I agree this should be possible. *** This issue has been marked as a duplicate of 32367 ***