SPONSORS:






User Tag List

Results 1 to 8 of 8
  1. #1
    Junior Member
    Join Date
    Mar 2002
    Location
    Sunnyvale
    Posts
    20
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How JavaJFCTreeView class method works?

    Hi All,

    I'm trying to expand directory in JavaJFCTreeView using this cmd :
    MyWindow.MyTreeView.Expand("C:/AAA")

    And on compile getting following error :
    "Function Expand is not defined for window MyWindow.MyTreeView "

    Anybody can help please? I have a big trouble scripting Java Application with Silk.



    ------------------

  2. #2
    Senior Member
    Join Date
    Mar 2000
    Location
    pisctaway, NJ USA
    Posts
    188
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How JavaJFCTreeView class method works?

    The expand only works on a tree. (JavaJFCTree) or something like that.
    That may be your issue
    Anthony

    ------------------

  3. #3
    Senior Member
    Join Date
    Jun 2000
    Location
    Chicago, IL USA
    Posts
    383
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How JavaJFCTreeView class method works?

    Something is wrong with your setup or window declarations. The Expand() IS defined for JavaJFCTreeView. You need to give us more info.

    ------------------
    Rob Kapteyn
    Rob Kapteyn, CSTE
    RobKapteyn@gmail.com

  4. #4
    Senior Member
    Join Date
    Nov 2001
    Posts
    375
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How JavaJFCTreeView class method works?

    Hi,
    I had a similar problem once automating windows explorer. Try using "(C /Test"instead of "C:/Test", where Test is ur dir u want to expand.


    ------------------

  5. #5
    Senior Member
    Join Date
    Nov 2001
    Posts
    375
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How JavaJFCTreeView class method works?

    Hi,
    I had a similar problem once automating windows explorer. Try using "(C/Test"instead of "C:/Test", where Test is ur dir u want to expand.


    ------------------

  6. #6
    Junior Member
    Join Date
    Mar 2002
    Location
    Sunnyvale
    Posts
    20
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How JavaJFCTreeView class method works?

    Thanks for help.

    Here is my window declaration for TreeView.
    and snapshot of treeview window.


    [-] window CustomWin AddSamples
    [ ] tag "[JavaDialogBox]#1"
    [ ] parent SM
    [-] CustomWin JavaxSwingJTabbedPane
    [ ] msw tag "[JavaJFCPageList]#1"
    [-] JavaJFCTreeView TreeView [ ] tag "#1"
    [-] JavaJFCTreeView JavaxSwingJTree
    [ ] tag "#1"
    [-] CustomWin AddSelectedSamples
    [ ] msw tag "[JavaJFCPushButton]#1"
    [-] CustomWin AnalysisDefaults
    [ ] msw tag "[JavaJFCPushButton]#3"
    [-] CustomWin Clear
    [ ] msw tag "[JavaJFCPushButton]#2"
    [-] CustomWin OK
    [ ] msw tag "[JavaJFCPushButton]#4"
    [+] CustomWin Cancel
    [ ] msw tag "[JavaJFCPushButton]#5"


    ------------------

  7. #7
    Super Member
    Join Date
    Jul 2001
    Location
    Earth
    Posts
    1,882
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How JavaJFCTreeView class method works?

    It appears that your extension isn't loaded properly. Make sure that extend\javaex.inc is listed in the Use Path line in the Runtime Options dialog and that your frame file is listed LAST before creating declarations. Instead of seeing:

    CustomWin MyButton
    &nbsp tag "[JavaJFCPushButton]MyButton"

    You should be seeing:

    JavaJFCPushButton MyButton
    &nbsp tag "MyButton"

    If you aren't seeing declarations like this, something is wrong. What version of SilkTest are you using?


    ------------------
    James Soderborg
    http://www.ameliortech.com
    jamesso@ameliortech.com

  8. #8
    Junior Member
    Join Date
    Mar 2002
    Location
    Sunnyvale
    Posts
    20
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How JavaJFCTreeView class method works?

    Hi jamesso,

    Thanks for your help, It works
    Would you know what inc file I'll need when using JavaJFCTextField ?

    Thanks again,
    Arlida.


    ------------------

 

 

Posting Permissions

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

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 07:38 PM.

Copyright BetaSoft Inc.