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, Professional w/Adv. Degree
Category: Homework
Satisfied Customers: 1757
Experience:  M.S. in Internet Information Systems
Type Your Homework Question Here...
TheDoctor is online now
A new question is answered every 9 seconds

Question for TheDoctor.

This answer was rated:

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

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.
Hello again, Michael! Thank you for requesting me.

I will contact you once this is complete.

Thank you
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
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:

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 4 years ago.

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

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.

You need to spend $3 to view this post. Add Funds to your account and buy credits.
TheDoctor, Professional w/Adv. Degree
Category: Homework
Satisfied Customers: 1757
Experience: M.S. in Internet Information Systems
TheDoctor and other Homework Specialists are ready to help you
Customer: replied 4 years ago.

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

Customer: replied 4 years 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. is my attempt to replace it with manually written code.

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 4 years ago.

This is the link I meant to sent


I am using Eclipse SDK 3.7.2



Here is the application with the layout all done manually:

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 4 years ago.

I downloaded the above file and ran in in eclipse. What I got is shown in the screenshot called Result located at .


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.

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

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:


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 4 years ago.

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

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.