This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
Similar Threads
ejb and rational rose
Customed JButton text cannot be seen
artifacts question
Capture Hyperlink click in JButton or JLabel
JFrame or customed JDialog or ?