aspose file tools*
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
Author

Customed JLabel and Customed JButton

Jes Sie
Ranch Hand

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


Thank you.<br /> <br />- Jess Sie<br /> <a href="mailto:jess@see-consulting.com" rel="nofollow">jess@see-consulting.com</a>
Nathan Pruett
Bartender

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.

-Nate


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Customed JLabel and Customed JButton