> Hi Andrew,
>
>> Please do not post attachments
>
> I'm not sure what you're referring to. There were no attachments in my
> post.
My bad, on closer inspection it seems to be (have been)..
> ..It was straight text.
..some form of HTML, according to my best guesses.
Here is your first post as it appears in the Google archive.
<http://groups.google.com.au/group/comp.lang.java.gui/msg/4af6e6f8189a87bf?dmode=
source>
Note how the content type is listed as multi-part mime,
and the text appears again, lower, wrapped in HTML?
>..I'm not sure why you're not receiving part of it.
Your news client is now sending posts in the form usually
expected (plain text). No biggy.
It turns out I got the entire (40ish) line text in the
first post, it's just my news reader was also counting
(but not displaying) the HTML version.
>..I can send a copy to you by email if you like.
Thanks ..no.

Signature
Andrew Thompson
physci.org 1point1c.org javasaver.com lensescapes.com athompson.info
In Hypno-Vision
Ron Barnhart - 25 Jul 2005 18:57 GMT
Hi Andrew,
I think I know what happened. My newsgroup program is set to respond in the
same format that was posted, but is defaulting to HTML for new posts. I
have it set that way for my college classes (which is done entirely online).
Sorry for the confusion.

Signature
Ron Barnhart
Thomas Weidenfeller - 26 Jul 2005 08:37 GMT
>>Hi Andrew,
>>>Please do not post attachments
[quoted text clipped - 3 lines]
>
> My bad, on closer inspection it seems to be (have been)..
So called "attachments" and HTML are both MIME messages, and MIME is
what triggers some news servers to discard a message. It is just that
modern newsreaders like to display different mime contents different
(the whole idea behind mime :-).
Another issue is size. Below 32K is fine, between 32K and 64K it starts
to get difficult. Everything greater 64K is really problematic. The FAQ
suffers from distribution problems because it is already greater 64K.
/Thomas

Signature
The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
http://www.uni-giessen.de/faq/archiv/computer-lang.java.gui.faq/
JediJ - 26 Jul 2005 14:32 GMT
It looks like your still looking for a little help, so I'll chime in.
I would add a focus listener to your JTextField.
This is fairly straight forward.
First you need to import the Listener and the Event that is associated
with it...
import java.awt.event.FocusListener;
import java.awt.event.FocusEvent;
The FocusListener is an interface, so you must implement all of its
methods, even if you arent going to use them for anything.
There are quite a few different strategies for doing the Listeners.
For something like this, I would make it an inner class. Something
like:
class FocusHandler implements FocusListener
{
public void focusGained(FocusEvent fe)
{
}
public void focusLost(FocusEvent fe)
{
}
}
In the constructor of your GUI class, create an instance of your
FocusHandler:
FocusHandler myFocusHandler = new FocusHandler();
then add it to your components...
yourComponent.addFocusListener(myFocusHandler);
The last thing you will need to do is add the logic to the methods of
the FocusHandler class. You can find out what component has the Focus
using fe.getSource();
So you would do something like
if(fe.getSource() == myTextField)
{ //disable/enable stuffs}
else if(fe.getSource() == myComboThingy)
{ //disable/enable other stuffs}
Hope that helps.
JediJ - 26 Jul 2005 14:40 GMT
One other thing that I just noticed about your post...while JComponent
is a swing component, it is a direct decendant of Container, which is a
decendant of Component, both of which are AWT. Thus, you inherit all
functionality of the awt components (including the listeners).
Ron Barnhart - 27 Jul 2005 05:15 GMT
Hi JediJ,
Thank you for your help with this. I thought about using focus as possible
way to do this, but I didn't know how to implement it.
>while JComponent
> is a swing component, it is a direct decendant of Container, which is a
> decendant of Component, both of which are AWT. Thus, you inherit all
> functionality of the awt components (including the listeners).
That thought occurred to me, but I couldn't figure out how to take advantage
of it. I've spent so much time hopping around the Java documentation, it's
making my head spin. I'll look into both of these options and see if I can
make it work.
Thanks again for your help. I'll let you know what I come up with.

Signature
Ron Barnhart