|
-
May 2nd, 2007, 08:22 PM
#1
Thread Starter
Member
Is there a way to identify fields in a java applet?
Hail to all,
I was just wondering if there was any way to identify fields in a Java Applet? My work is currently using dos emulators that I can manipulate with PCOMM commands by setting cursor positions and sending keys and such. And I have made many useful utilities that have saved tons of time. Now we are changing to java applet programs and I need to be able to control input on these screens. I have been able to do this in an html form and populate and pull data from fields and such by being able to read the html code to get the field names. But I do not know how to do this on a java applet seeing as there is no code to read to get the names of the fields. An now I have to recreate my utilites but have no idea as to how to do this now.
Any help with this is greatly appreciated.
Mythos
Last edited by Mythos44; May 2nd, 2007 at 08:34 PM.
-
May 3rd, 2007, 08:58 AM
#2
Frenzied Member
Re: Is there a way to identify fields in a java applet?
Are you looking for something that can do this?
C:\Devel\Java>java peek
Usage syntax: java peek [-x] [-[h|f|F|m|M|c|C]] <class>
Where:
-x = exclude the 'built-in' Java language fields, methods & constructors
-h = Help - display this list
-f = getFields()
-F = getDeclaredFields()
-m = getMethods() = default action
-M = getDeclaredMethods()
-c = getConstructors()
-C = getDeclaredConstructors()
<class> = class name (with no extenstion)
Ex: peek -f jclient - list all public variables in jclient.class
Ex: peek -x -f jclient - list only public variables declared in jclient.class
Ex: peek -M jclient - list all public & private methods in jclient.class
Here is the output of peek -x jclient (Note: jclient has public methods but no public variables)
C:\Devel\Java>java peek -x jclient
public java.lang.String jclient.getlocNames()
public java.lang.String jclient.getJobStats(java.lang.String,java.lang.String)
public short jclient.getlocCnt()
public java.lang.String jclient.getjobID(short)
public java.lang.String jclient.getjobDesc(short)
public short jclient.getnumHops(short)
public short jclient.getSampleCnt()
public short jclient.getSeriesCnt()
public short jclient.getMaxYAxis()
public java.lang.String jclient.getSampleLbls()
public java.lang.String jclient.getSeriesLbls()
public java.lang.String jclient.getColorSet()
public java.lang.String jclient.getGridSet()
public short jclient.getTimeouts(short)
public short jclient.getBestMin(short)
public short jclient.getWorstMin(short)
public short jclient.getBestAvg(short)
public short jclient.getWorstAvg(short)
public short jclient.getBestMax(short)
public short jclient.getWorstMax(short)
public java.lang.String jclient.getBGColor(short)
public java.lang.String jclient.getSeriesIP(short)
public java.lang.String jclient.getSeriesData(short)
peek.java is a simple app that I wrote when I was delving into reflection. If this will help, PM or email me and I'll send you the class file. If it isn't quite what you are looking for but is close and might do the trick with a tweak or two, I'll send you the source. If you do add any features, I would appreciate it if you would send me a copy of the new code.
-
Jun 25th, 2009, 09:00 AM
#3
New Member
Re: Is there a way to identify fields in a java applet?
Hello! I'm interested in your picker. Could you give me that please? I have to get data from java-applet..
Thank you.
-
Jun 26th, 2009, 06:32 AM
#4
Re: Is there a way to identify fields in a java applet?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|