How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask TheDoctor Your Own Question

TheDoctor
TheDoctor, Professional w/Adv. Degree
Category: Homework
Satisfied Customers: 1455
Experience:  M.S. in Internet Information Systems
59032869
Type Your Homework Question Here...
TheDoctor is online now
A new question is answered every 9 seconds

Question for TheDoctor.

Resolved Question:

Question for TheDoctor. The code for my java problem is located at http://ge.tt/7GIJM1k The code for the fraction application to be updated is also included. I need the solution by Friday 28th June. Thanks.

Submitted: 1 year ago.
Category: Homework
Expert:  Rachel-Mod replied 1 year ago.
Hi, I am a moderator for this topic. I sent your requested professional,thedoctor a message to follow up with you here, when they are back online. If I can help further, please let me know. Thank you for your continued patience.
Expert:  TheDoctor replied 1 year ago.
Hello again, Michael! Thank you for requesting me.

I will contact you once this is complete.

Thank you
Expert:  TheDoctor replied 1 year ago.
Hello again, Michael!

What IDE do you use for your Java programs? Is it NetBeans or Eclipse? I want to make sure I send you the correct project type. I am assuming it is NetBeans since you are creating GUI applications.

Thank you
Expert:  TheDoctor replied 1 year ago.
Hello again, Michael!

Since I haven't heard back from you regards XXXXX XXXXX you are using, I am sending you the completed projects in both major IDEs. You can download the projects here:

http://wikisend.com/download/315814/AllProjects.zip

Inside of this zip file, you will find four other zip files. There are two projects: The fractions project and the convert project.

I have sent you the two projects for Eclipse and the two projects for NetBeans.

Do not unzip any of the four projects. (Unzip the main file... do not unzip any of the four projects).

If you are using Eclipse, you will go to File->Import, General->Existing Project Into Workspace. Then select the browse button for "Select Archive File", and then select the zip file for the eclipse project you are importing. That will add the entire project to your workspace.

If you are using NetBeans, you will go to File->Import Project->From Zip...

Select the browse button for the zip file and select the zip file for the NetBeans project you are importing. This will also completely import the project into NetBeans.

You can then run either project. They both work and meet all of the requirements. For the Fractions project, if you would like to just have the Java files, you can get them from the fractions folder inside of the source folder.

The fractions project now has two java files. The new one is a custom exception type that extend ArithmeticException, as suggested in the assignment requirements.

I did the necessary exception handling in the conversion project to get you the extra credit points.

Let me know if you have any questions. I'm here to help.

Please remember to rate my answer. Thank you so much and have a wonderful day!
Customer: replied 1 year ago.

Sorry for the delay in getting back to you. The IDE I use is eclipse.

Expert:  TheDoctor replied 1 year ago.
Thank you for letting me know that. As you can see, I have already sent you the completed projects, including the Eclipse versions. Follow the instructions for importing the archive files into Eclipse.

Both projects are complete and fully functional and meet all requirements. There is nothing left to be done.

Please remember to rate my answer. Thank you.
Expert:  TheDoctor replied 1 year ago.
THIS ANSWER IS LOCKED!
You can view this answer by clicking here to Register or Login and paying $3.
If you've already paid for this answer, simply Login.
TheDoctor, Professional w/Adv. Degree
Category: Homework
Satisfied Customers: 1455
Experience: M.S. in Internet Information Systems
TheDoctor and 11 other Homework Specialists are ready to help you
Customer: replied 1 year ago.

I will run this this evening and contact you if I have any questions. Thanks.

Customer: replied 1 year ago.

I have completed going through the solution you sent me.



Most of the assignment is O.K except for the conversion application piece in question 1.


The code you have used seems to be application generated but I am supposed to use manually written (not generated) code. I have attempted to replace the generated code with manually written code, but I need your assistance to update my code using manually written java to properly set the layouts of the Length Conversion frame similar to what you generated.



Convert(original).txt is the code you created. Convert.java is my attempt to replace it with manually written code.

Expert:  TheDoctor replied 1 year ago.
The code for the conversions was manually written.

The code for the jFrames is automatically generated because code for jFrame is automatically generated. You don't manually write jFrame code. Depending on what IDE you are using, it won't even let you do that.

I have never once seen an instructor require jFrame code to be manually written because it would never, ever be done in the real world.

What IDE are you using?

Also, did you mean to send me something? You didn't attach anything or provide a link to anything.
Customer: replied 1 year ago.

This is the link I meant to sent http://ge.tt/7r9uKkk.


 


I am using Eclipse SDK 3.7.2


 


 

Expert:  TheDoctor replied 1 year ago.
Here is the application with the layout all done manually:

http://wikisend.com/download/245218/Convert.zip

Notice that the assignment states that the layout and alignment do not matter. This is stated for a good reason. Anyone in the real world would do all of the layout with the graphical editors available in both NetBeans and Eclipse. Using such, you can create a layout like I created in seconds. The layout I sent you before took under 60 seconds to complete.

Doing a layout manually takes infinitely longer. To recreate the layout that I had sent you, I would need to use a null layout and then manually set the bounds of every single item. So I would be messing around with pixels for hours. Since your assignment clearly states that the layout and alignment do not matter, there is no point in doing that.

The layout is now manual. It uses the flow layout because it is the simplest. And it functions correctly.
Customer: replied 1 year ago.

I downloaded the above file and ran in in eclipse. What I got is shown in the screenshot called Result located at http://ge.tt/4uy8hkk/v/0 .


 


I could not see any difference. I still can't enter any values in any of the feet inches and centimeters fields. I had managed to rewrite the code to manually generate the frame, but I needed the code updated so that I could enter values into those text fields.

Expert:  TheDoctor replied 1 year ago.

Sorry, I sent you the wrong file. I sent you the file you sent me instead of the updated file.

http://wikisend.com/download/380232/Convert.zip

The file you sent me didn't even have a main method. And the only reason tat you cannot enter values in your version is because you never set the columns on the text fields. For instance:

txtFeet.setColumns(2);

All your text fields are 0 length.

Also, in the file you sent me, you never added the first result text to the panel. You created it (metricResult), but you never add it to the panel.

Customer: replied 1 year ago.

Thank you for your help and for pointing out the errors in my code. What you sent me is O.K. now.

Expert:  TheDoctor replied 1 year ago.
It certainly isn't great. But again, I nor any professional would ever create a GUI like this. I don't understand the benefit of teaching the slow, harder way of doing things. But it is what it is.

And I wouldn't say that those were errors, just oversights or missing code. You did an excellent job going from the generated code to the manual form.

Thank you again and have a great day.

JustAnswer in the News:

 
 
 
Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.
 
 
 

What Customers are Saying:

 
 
 
  • Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
< Last | Next >
  • Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
  • This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!! Alex Los Angeles, CA
  • Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult. GP Hesperia, CA
  • I couldn't be more satisfied! This is the site I will always come to when I need a second opinion. Justin Kernersville, NC
  • Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around. Esther Woodstock, NY
  • Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know. Robin Elkton, Maryland
  • He answered my question promptly and gave me accurate, detailed information. If all of your experts are half as good, you have a great thing going here. Diane Dallas, TX
 
 
 

Meet The Experts:

 
 
 
  • Manal Elkhoshkhany

    Tutor

    Satisfied Customers:

    4520
    More than 5000 online tutoring sessions.
< Last | Next >
  • http://ww2.justanswer.com/uploads/BU/BusinessTutor/2012-2-2_115741_Kouki2.64x64.jpg Manal Elkhoshkhany's Avatar

    Manal Elkhoshkhany

    Tutor

    Satisfied Customers:

    4520
    More than 5000 online tutoring sessions.
  • http://ww2.justanswer.com/uploads/LI/lindaus/2012-6-10_04811_IMG20120609164157.64x64.jpg Linda_us's Avatar

    Linda_us

    Finance, Accounts & Homework Tutor

    Satisfied Customers:

    3121
    Post Graduate Diploma in Management (MBA)
  • http://ww2.justanswer.com/uploads/ComputersGuru/2010-02-13_051118_Photo41.JPG LogicPro's Avatar

    LogicPro

    Engineer

    Satisfied Customers:

    3035
    Expert in Java C++ C C# VB Javascript Design SQL HTML
  • http://ww2.justanswer.com/uploads/lanis/2009-4-1_233717_phput9xef_c1pm.jpg Lani S.'s Avatar

    Lani S.

    Tutor

    Satisfied Customers:

    2457
    Registered Nurse, Internet Researcher, Private Tutor
  • http://ww2.justanswer.com/uploads/chooser77/2009-08-18_162025_Chris.jpg Chris M.'s Avatar

    Chris M.

    M.S.W. Social Work

    Satisfied Customers:

    2341
    Master's Degree, strong math and writing skills, experience in one-on-one tutoring (college English)
  • http://ww2.justanswer.com/uploads/JawaadAhmed/2009-6-27_12137_SIs_SHadi.jpg F. Naz's Avatar

    F. Naz

    Chartered Accountant

    Satisfied Customers:

    1975
    Experience with chartered accountancy
  • http://ww2.justanswer.com/uploads/JK/jkcpa/2011-1-16_182614_jkcpa.64x64.jpg Bizhelp's Avatar

    Bizhelp

    CPA

    Satisfied Customers:

    1873
    Bachelors Degree and CPA with Accounting work experience