This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Customed JLabel and Customed JButton

 
Jes Sie
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Simple question: -
If I do a customed JLabel or JButton, upon clicking....can it fireup a JDialog?
PS: I'm fairly new in Swing.
------------------
Thank you.
- Simon See
simon-ivy@usa.net
-after office hours-
necro-mani-cide
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't need to worry about that in the component... you just add an ActionListener, MouseListener, or some other event listener to your component later to launch the dialog when an event happens on your component.

-Nate
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic