File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Customed JLabel and Customed JButton Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Customed JLabel and Customed JButton" Watch "Customed JLabel and Customed JButton" New topic

Customed JLabel and Customed JButton

Jes Sie
Ranch Hand

Joined: Jul 24, 2001
Posts: 188
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
-after office hours-

Thank you.<br /> <br />- Jess Sie<br /> <a href="" rel="nofollow"></a>
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

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.


Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I agree. Here's the link:
subject: Customed JLabel and Customed JButton
jQuery in Action, 3rd edition