Results 1 to 14 of 14
Thread: question
- 07-04-2008, 11:50 AM #1
Member
- Join Date
- Mar 2008
- Posts
- 14
- Rep Power
- 0
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, 11:56 AM #2
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, 12:15 PM #3
Member
- Join Date
- Mar 2008
- Posts
- 14
- Rep Power
- 0
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, 12:28 PM #4
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
Jad? (Google that word.)
- 07-04-2008, 12:32 PM #5
Member
- Join Date
- Mar 2008
- Posts
- 14
- Rep Power
- 0
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, 12:53 PM #6
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, 12:58 PM #7
Member
- Join Date
- Mar 2008
- Posts
- 14
- Rep Power
- 0
yeppp,this is it
- 07-04-2008, 01:16 PM #8
Ok... Right Click on jar say jcalendar.jar and click on "Extract to jcalendar\", this will create a folder structure in the same directory.
Navigate inside that folder till u get the jar's class file, for above example it would be JCalendar.class.
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.
U can download the tool from following links:
1. Download JD-GUI Freeware - You can use this fast Java decompiler to reduce the time and energy you spend on your work. JD-GUI is a standalone graphical...
2. JD-GUI download pageTo finish sooner, take your own time....
Nivedithaaaa
- 07-04-2008, 01:19 PM #9
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
- 07-04-2008, 01:50 PM #10
Member
- Join Date
- Mar 2008
- Posts
- 14
- Rep Power
- 0
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, 02:32 PM #11
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
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, 03:38 PM #12
Member
- Join Date
- Mar 2008
- Posts
- 14
- Rep Power
- 0
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, 06:07 PM #13
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
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, 07:05 PM #14
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/]ImageJLast edited by fishtoprecords; 07-04-2008 at 07:06 PM. Reason: remove redundant link
Similar Threads
-
Question mark colon operator question
By orchid in forum Advanced JavaReplies: 9Last Post: 12-19-2010, 08:49 AM -
a question
By slytheman in forum Java ServletReplies: 0Last Post: 03-12-2008, 04:11 AM -
Need help on this question
By Deon in forum New To JavaReplies: 3Last Post: 01-27-2008, 03:58 PM -
JNI question
By javaplus in forum New To JavaReplies: 0Last Post: 12-24-2007, 10:18 AM -
question about rmi
By leonard in forum New To JavaReplies: 1Last Post: 08-06-2007, 04:19 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks