Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / January 2004

Tip: Looking for answers? Try searching our database.

having problems simulating a key stroke in Java

Thread view: 
kodonne2 - 21 Jan 2004 07:48 GMT
I have a table that I hide and show in my program.  When a value in one of the cells is changed - the table has no problems showing this new value, but when I want to parse the data in this table into usable form by grabbing what's in each cell, I get the old value for this specific cell.  The only way for me to get the updated value is if the user happened to click on another cell or pressed the enter key before pressing the ok_button to hide the table.

Does anyone have any ideas?  I'm sure I'll have to use some kind of listener to simulate a 'enter' key stroke but I'm not sure about how to do this.  If anyone have some sample code for this I'd appreciate it especially because I'm not having much luck implementing this so far.

thanks in advance,
KO
Andrew Thompson - 21 Jan 2004 13:09 GMT
"kodonne2" <kod@nospam.edu> wrote in message
news:1f4bcad909513899bfe1e9514663d0b3@localhost.talkaboutprogramm
ing.com...
| I have a table that I hide and show in my program.

See my answer in c.l.j.programmer
kodonne2 - 21 Jan 2004 15:41 GMT
I'm sorry, I don't know what c.l.j.programmer is?  Is this a website or some kind of acronym?

thanks, KO
Christophe Vanfleteren - 21 Jan 2004 15:48 GMT
> I'm sorry, I don't know what c.l.j.programmer is?  Is this a website or
> some kind of acronym?
>
> thanks, KO

One tip:

you're now posting in c.l.j.gui (short for comp.lang.java.gui)

But I see by your headers that you're posting using a website that is a
gateway to this newsgroup.

You can use the newsgroups directly by going to groups.google.com, or by
using a real news client (even MS Outlook can use newsgroups).

link to this group:
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&group=comp.lang.java.gui

Signature

Kind regards,
Christophe Vanfleteren

kodonne2 - 21 Jan 2004 18:56 GMT
Okay so now I know the answer is out there some where because Andrew answered a similar request by mine, but after much searching - I'm still not able to find this information anywhere.

I looked all through the posts on Google and couldn't find it.  Is there an easier way?  Andrew if you read this - do you know around the time frame you would've written the reply?
Andrew Thompson - 21 Jan 2004 19:08 GMT
"kodonne2" <kod@nospam.edu> wrote in message
news:87f12b820175f1a9a81a2b1985712837@localhost.talkaboutprogramm
ing.com...
| Okay so now I know the answer is out there some where

It most probably is.

|..because Andrew answered a similar request by mine,

No, I was being sarcastic and trying to
get the message across that you should
not be multi-posting.

For the record, that is as far as I am
able to help you (not much experience
w/JTables, but a lot of experience on
how to lose sources of information [read
people] through bad posting practices).

| ..but after much searching - I'm still not able
| ..to find this information anywhere.

Perhaps you can get a more sensible response
to your _code problem_ if you post your code
here at comp.lang.java.gui, but please read
the following carefully prior to doing so.
http://www.physci.org/codes/sscce.jsp

Another thing is that your lines of text are
very long, this causes problems with some
news readers (lowering your chance of
follks reading it, and giving an answer).

There is usually a setting in a newsreader
that will automatically wrap the lines.
I recommend setting it no higher than 75 chars.

[  Oh, and.. welcome to UseNet.   ;-)  ]

--
Andrew Thompson
* http://www.PhySci.org/ PhySci software suite
* http://www.1point1C.org/ 1.1C - Superluminal!
* http://www.AThompson.info/andrew/ personal site


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.