You Are Here:
TopJazzSwing > Swing Msg25005

Swing

Re: Two Swing question
Date: Sun, 15 Jun 2003 14:57:18 -0600
Newsgroups: comp.lang.java.help
Size: 1,075 bytes
Sj=F6blom wrote:
> If I understood the Sun swing tutorial correctly, any code in an event
> handler method may safely modify swing components after they are
> visible. Is it safe to bring up a dialog in an event handler method and
> from the dialog modify the components of the dialog owner? Does it
> matter if the dialog is modal or non-modal?
All of this is fine, regardless of the modality of the dialog. The=20
issue is keeping any code that calls methods on realized Swing=20
components in the AWT event thread. Since event handlers for Swing are=20
called in the AWT event thread, you can do anything you like to realized=20
Swing components from there.
> How would I go about making a TextPane or EditorPane with syntax
> highlighting? Pointers to relevant API chapters or source code would be
> appreciated.
A good place to start is the API docs for javax.swing.text.Highlighter=20
and its implementing classes.
--=20
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation

Site Categories:
• Broadway
• Child Song
• Christian Music
• Classical Music
• Country Music
• Dance
• Gospel Music
• Guitar Music
• Jazz
• Karaoke
• Lyric
• Metal Music
• Music
• Music Download
• Music Video
• New Age
• Rap Music
• Reggae
• Rock
• Wedding Song
• World Music