Results 1 to 4 of 4
  1. #1
    skadron_alfa is offline Member
    Join Date
    Apr 2011
    Posts
    7
    Rep Power
    0

    Default how to open class(jpanel) from external jar?

    i made a jar file which contains a class jpanel (a form). then i want to open it from another class during run time. how to do it?
    PS: i want load the jar file during the run time not when i design the class. Thank a lot

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default Re: how to open class(jpanel) from external jar?

    If the jar is on the class path and you use proper imports, your current class can access the classes held by the jar file.

  3. #3
    skadron_alfa is offline Member
    Join Date
    Apr 2011
    Posts
    7
    Rep Power
    0

    Default Re: how to open class(jpanel) from external jar?

    it doesn't effect.
    How about the jar file is located in spesific folder.
    PS: i attach my file that will made as external jar that will be called

    Here is my case:
    1. i've made a desktop application using netbeans
    2. it contains main.class that launch the myForm.class.
    3. it works when run from its project and netbeans
    4. then, i made it became a jar file
    5. i put the jar file in a specific folder (eg. as same folder as the new desktop app. 'll load the jar). so, how i should load it when run time (using source code)

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,458
    Rep Power
    20

    Default Re: how to open class(jpanel) from external jar?

    Moved from 'Advanced Java'

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Open external file with external program
    By Wietse de Vries in forum New To Java
    Replies: 1
    Last Post: 12-31-2011, 05:52 PM
  2. Open .pdf file inside a jpanel
    By pink123 in forum AWT / Swing
    Replies: 6
    Last Post: 10-30-2011, 07:37 AM
  3. Retrieving mouse location inside a thread relative to an external JPanel.
    By Zambash in forum Threads and Synchronization
    Replies: 7
    Last Post: 08-25-2011, 05:33 PM
  4. Open JPanel with JButton
    By web_dev in forum New To Java
    Replies: 7
    Last Post: 06-13-2011, 11:25 PM
  5. Replies: 1
    Last Post: 11-10-2010, 11:14 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
  •