Results 1 to 4 of 4

Thread: Is there a way to identify fields in a java applet?

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2007
    Posts
    63

    Question 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.

  2. #2
    Frenzied Member
    Join Date
    Aug 2000
    Location
    O!
    Posts
    1,177

    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.

  3. #3
    New Member
    Join Date
    Jun 2009
    Posts
    7

    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.

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Is there a way to identify fields in a java applet?

    Moved

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width