|
|
Welcome to the Java Forums.
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:
- have access to post topics
- communicate privately with other members (PM)
- not see advertisements between posts
- have the possibility to earn one of our surprises if you are an active member
- access many other special features that will be introduced later.
Registration is fast, simple and absolutely free so please, join our community today!
If you have any problems with the registration process or your account login, please contact us.
|
|

07-04-2008, 12:50 PM
|
|
Member
|
|
Join Date: Mar 2008
Posts: 14
|
|
|
question
hi ,i'm currently in an internship,i'm working on a classification image application ,my task is to automate the process of this small software,I've the jar file and i want to know how to get the api of the GUI,i've the one needed for the software work but i need the one of the GUI to be able to events of controls (buttons menus...),I hope there is a way to extract the source code of the GUI.Thank you
|
|

07-04-2008, 12:56 PM
|
 |
Senior Member
|
|
Join Date: May 2008
Posts: 299
|
|
|
Hi,
Extract the jar file by the command
jar -xvf myJar.jar (Can get more details in Google)
Open any of the GUI related code and check in imports.
__________________
To finish sooner, take your own time....
Nivedithaaaa
|
|

07-04-2008, 01:15 PM
|
|
Member
|
|
Join Date: Mar 2008
Posts: 14
|
|
|
Hi,
Actually the problem is that i didnt find the api for the GUI,when i click on a button to classify an image i dont know what happend ,that is which block of code is executed,the software is called pixit and it's built in java .Is there any software that can extract the api of the GUI of a jar file ?thanks
|
|

07-04-2008, 01:28 PM
|
|
Senior Member
|
|
Join Date: Jun 2008
Posts: 303
|
|
|
Jad? (Google that word.)
|
|

07-04-2008, 01:32 PM
|
|
Member
|
|
Join Date: Mar 2008
Posts: 14
|
|
|
yes yes i've tried it before,but it's not giving the api of the GUI,that is what each control is doing .
|
|

07-04-2008, 01:53 PM
|
 |
Senior Member
|
|
Join Date: May 2008
Posts: 299
|
|
|
You meant to say a jar contains the API of GUI like say "JButton" and u want to extract that to get the source code and modify is it?
__________________
To finish sooner, take your own time....
Nivedithaaaa
|
|

07-04-2008, 01:58 PM
|
|
Member
|
|
Join Date: Mar 2008
Posts: 14
|
|
|
yeppp,this is it
|
|

07-04-2008, 02:19 PM
|
|
Senior Member
|
|
Join Date: Jun 2008
Posts: 303
|
|
Originally Posted by Niveditha
There is a 3rd party called jd-gui-0.1.0-0.3.1.windows which will convert .class file to .java file, you can convert JCalendar.class to JCalendar.java, edit it and save it according to your needs.
This is exactly what Jad is, but seemingly he is not able to decipher the decompiled code.
|
|

07-04-2008, 02:50 PM
|
|
Member
|
|
Join Date: Mar 2008
Posts: 14
|
|
|
Well,I did all whay you said but maybe you didn't get my point ,actually I managed to get all the classes that does the job of classification but the code that controls the GUI that will show me how the classes are used is missing and this is the one i'm looking for.
|
|

07-04-2008, 03:32 PM
|
|
Senior Member
|
|
Join Date: Jun 2008
Posts: 303
|
|
|
If it runs (which I can only assume it does, since you mentioned having the "jarfile" of the application), how can you be "missing" them?
|
|

07-04-2008, 04:38 PM
|
|
Member
|
|
Join Date: Mar 2008
Posts: 14
|
|
|
no,the jar file when extracted ,give only the classes that reprensent the objects needed to have the application do its job,but the code that's behind the GUI,that is the events of buttons and all other staff(when i want to classify an image after importing it ,which object is called and what's is done exactly)this is the code i'm trying to have ,when i asked the company that gave me the software ,they told we cant give you the API for the GUI and now i'm trying to see how to get it .
|
|

07-04-2008, 07:07 PM
|
|
Senior Member
|
|
Join Date: Jun 2008
Posts: 303
|
|
|
Does it run (with the jarfile you have)? If yes, you already have the GUI code. It isn't just magically generated out of thin air.
Edit: And, if it doesn't run with just what you have, and the company said you can't have it, then give it up (at least this line of investigation), or it could actually result in your arrest, if you do manage to "steal" it.
|
|

07-04-2008, 08:05 PM
|
 |
Senior Member
|
|
Join Date: Jun 2008
Posts: 337
|
|
You may want to look at NIH's ImageJ library/API. Its designed for scientists looking at images, calculating things, etc.
ImageJ
http://rsbweb.nih.gov/ij/]ImageJ
Last edited by fishtoprecords : 07-04-2008 at 08:06 PM.
Reason: remove redundant link
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|