Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to post to a frame outside an applet

3 views
Skip to first unread message

west...@gmail.com

unread,
Feb 4, 2012, 12:06:24 AM2/4/12
to
Hi,

I am trying to make an instant messenger window that runs atop a chatroom that many users would be in. I'm just having problems writing to the second window or frame once an I'm session is initiated. Does this involve getting the info from im1 to goto im2 via the server first then writing to a socket? If so, once the IP address is obbtaained, how do you write to the IM windows and not the main chat room where everyone is? I'm slowly putting this together but if there's a book, help me.

I'm reading schmidts seventh edition "java" for this chat room, I dunno.

Public void paint (Graphics g, messagein)
{
//message comes from server first, before that messager2

g.drawstring(messagein)
}

John B. Matthews

unread,
Feb 7, 2012, 7:00:00 AM2/7/12
to
In article
<7582404.2642.1328331984615.JavaMail.geo-discussion-forums@yquu38>,
This is a pretty low level way to get text on the screen. You might want
to look at one of the text components, such as JTextArea. There's a
related example here:

<http://stackoverflow.com/a/3245805/230513>

--
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>

Richard Maher

unread,
Feb 15, 2012, 7:47:40 AM2/15/12
to
>>>>>>>>>>>>>>>>>>>>>>
<west...@gmail.com> wrote in message
news:7582404.2642.1328331984615.JavaMail.geo-discussion-forums@yquu38...
Could you use JSObject LiveConnect and let Javascript do it?

Cheers Richard Maher


0 new messages