Frank said:
This sounds like AWT, since the Peers for Swing classes will mostly use
strictly LightWeightPeer.
Having said this, holding onto the Peer of a component is very bad
style... this is generally an internal reference for comunication with the
OS, and not the public java ref you want.
Find the JavaDocs for the code you're asking about, and you'll probably
find your answer.
Hi, here is the message I've post to the mathworks forum; as you can see,
they won't give me their javadoc, I guess...
And in Matlab there is no way to get the updated string content of the edit
control...
any more ideas? Please help me!
Thank you very much
---------------------------------------------------------
Hi all,
I am using Matlab7 to design my GUI.
Suppose I have a Edit control "A"
I want to check the data input validity of this edit control "A".
Can I use its "Callback Fcn"? No.
Because it does not be triggered at the right time. Only when the mouse make
the Edit control "A" lose focus, this "Callback Fcn" will be triggered...
This is bad, because on my GUI, I don't have other GUI controls to let the
focus to move to that control.
Do I need to stupidly ask the user to click mouse on any other part of the
window in order to let the edit Control "A" lose focus?
Do I need to stupidly add a button "check me" to ask the user press that
button in order to let the edit control "A" lose focus and then I can
retrieve its value in that "Callback fcn" in order to check its value..
That's stupid, right?
Can I use the "Keypressed Fcn" callback?
No!
The KeypressFcn callback is always triggered before the content of the edit
control is updated... so the content retrieved in the KeypressFcn callback
is always an older version, instead of the new updated string. So this
function basically is of no use at all.
Now these two functions are of no use all, how do I check the user's input
upon each key is entered?
Anybody has some workarounds?
---------------------------------------------------