This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android forum!
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
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 ?