Results 1 to 4 of 4
  1. #1
    mharsijamel is offline Member
    Join Date
    Aug 2011
    Posts
    60
    Rep Power
    0

    Default reload java class

    i have 3 classes:
    class A:contains main and invoke class B
    class B:contains an interface showing the contents of a file
    class C:modify the file
    i want to know how reload the class B to show the modification made in class C
    please help me

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,202
    Rep Power
    19

    Default

    First get your terminology correct. You don't want to reload a class, you want to open and read a file.

    Also, interface has a very specific meaning as a Java keyword. I guess you're referring to a Graphical User Interface, normally abbreviated as GUI.

    To get better help sooner, post a SSCCE that clearly demonstrates your problem.

    Also go through How to ask questions the smart way

    db

  3. #3
    mharsijamel is offline Member
    Join Date
    Aug 2011
    Posts
    60
    Rep Power
    0

    Default

    sorry my english is bad
    but i want to know how to see changes made at this file without making another run

  4. #4
    Hibernate's Avatar
    Hibernate is offline Senior Member
    Join Date
    Dec 2010
    Location
    Stockholm, Sweden
    Posts
    222
    Blog Entries
    9
    Rep Power
    4

    Default

    Well, then you need to listen for file modifications.
    And I believe that is OS dependent, so there is (probably) no built in [in Java] method for that.
    Ex animo! Hibernate
    Java, Arch Linux, C, GPL v3, Bash, Eclipse, Linux VT, GNOME 2 and many buttons on windows.

Similar Threads

  1. Reload .properties class
    By chinna in forum New To Java
    Replies: 6
    Last Post: 07-14-2011, 08:31 AM
  2. reload the value of the variable
    By kiranjava in forum Advanced Java
    Replies: 1
    Last Post: 05-05-2010, 08:20 AM
  3. Properties reload
    By koala993 in forum Advanced Java
    Replies: 0
    Last Post: 04-29-2010, 05:39 PM
  4. How to reload JInternalFrame
    By chyrl in forum AWT / Swing
    Replies: 42
    Last Post: 04-16-2010, 01:29 PM
  5. how to reload a jsp page
    By Heather in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 07-14-2007, 11:49 PM

Posting Permissions

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