Can't get my inventory program to compile

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zaidalin79
    New Member
    • Nov 2006
    • 59

    #46
    I am still trying to get 4 right before we move on to 5. Why don't you post your #4 if you are done with that one so we can see what you have done...?

    Comment

    • zaidalin79
      New Member
      • Nov 2006
      • 59

      #47
      I can't get it to compile... Did you?

      Comment

      • bill1967
        New Member
        • Dec 2006
        • 6

        #48
        It is actually 2 seperate files. The second one is at the bottom

        Comment

        • r035198x
          MVP
          • Sep 2006
          • 13225

          #49
          Originally posted by bill1967
          It is actually 2 seperate files. The second one is at the bottom
          [code removed as per site rules - see FAQ]

          This will make the code compile. May I say that you are using the wrong tools here. To display non-editable text eg labels, you should use a JLabel. Where did you say was the problem with this one?

          Comment

          • zaidalin79
            New Member
            • Nov 2006
            • 59

            #50
            Now I got it to work... Thanks...

            What do we need to do now, I guess this one...


            Modify the Inventory Program by adding a button to the GUI that allows the user to move to the first item, the previous item, the next item, and the last item in the inventory. If the first item is displayed and the user clicks on the Previous button, the last item should display. If the last item is displayed and the user clicks on the Next button, the first item should display.

            • Add a company logo to the GUI using Java graphics classes.

            Comment

            • r035198x
              MVP
              • Sep 2006
              • 13225

              #51
              Originally posted by zaidalin79
              Now I got it to work... Thanks...

              What do we need to do now, I guess this one...

              Modify the Inventory Program by adding a button to the GUI that allows the user to move to the first item, the previous item, the next item, and the last item in the inventory. If the first item is displayed and the user clicks on the Previous button, the last item should display. If the last item is displayed and the user clicks on the Next button, the first item should display.

              • Add a company logo to the GUI using Java graphics classes.

              Make sure you understand this and ask where you do not understand. Then I want you to add the other buttons required and labels as well so that you really grasp the concepts.

              Comment

              • zaidalin79
                New Member
                • Nov 2006
                • 59

                #52
                I have to do something here at work for sec. I will take a good look at this one... Will you be on for awhile? It has been hard to catch you lately...

                Thanks again

                Comment

                • r035198x
                  MVP
                  • Sep 2006
                  • 13225

                  #53
                  Originally posted by zaidalin79
                  I have to do something here at work for sec. I will take a good look at this one... Will you be on for awhile? It has been hard to catch you lately...

                  Thanks again
                  I have to knock off for a church service in 45 mins time and will only be able to get back tommorrow. I was hoping we'd have the buttons responding to click event before signing off.

                  Comment

                  • zaidalin79
                    New Member
                    • Nov 2006
                    • 59

                    #54
                    I will try it, but I don't know if I can get it in 45 minutes... I am still pretty slow at this. I will have more time to go back over these after my class is done this Sat, I am just trying to hurry and get the last one posted so I can have a chance of not failing the class... After then, I will have as much time as I need to read through all the code and make sure I understand everything. You should be a teacher... You certainly do a better job than mine! LOL! :)

                    Comment

                    • r035198x
                      MVP
                      • Sep 2006
                      • 13225

                      #55
                      Originally posted by zaidalin79
                      I will try it, but I don't know if I can get it in 45 minutes... I am still pretty slow at this. I will have more time to go back over these after my class is done this Sat, I am just trying to hurry and get the last one posted so I can have a chance of not failing the class... After then, I will have as much time as I need to read through all the code and make sure I understand everything. You should be a teacher... You certainly do a better job than mine! LOL! :)
                      I doubt that!

                      Now I have to go. Here is what I expect you to do. Have a good look at the code posted below for the rest of the day and night when you post tommorrow, I hope you will have adde the other buttons an labels.

                      [code removed as per site rules - see FAQ]

                      Comment

                      • bill1967
                        New Member
                        • Dec 2006
                        • 6

                        #56
                        Would either of you mind if I borrow from this code for my assignment as well? I would obviously have to alter it to use the inventory items I have been using. If you mind I will not use it. I think every one in this class is struggling.

                        Comment

                        • zaidalin79
                          New Member
                          • Nov 2006
                          • 59

                          #57
                          I think so too... I don't mind, but you should make sure that r035198x doesn't cause he is writing the majority of it. My teacher actually told me that only about 25-30% of students pass this class... Sounds like there is a problem with the curriculum to me...

                          Comment

                          • bill1967
                            New Member
                            • Dec 2006
                            • 6

                            #58
                            Do you have Barbara Hecker? What bothers me is that they ask for items in our programs that we have not actually covered in our text. I have been through the text several times and no where does it cover "Next" or "Previous" button usage.

                            Originally posted by zaidalin79
                            I think so too... I don't mind, but you should make sure that r035198x doesn't cause he is writing the majority of it. My teacher actually told me that only about 25-30% of students pass this class... Sounds like there is a problem with the curriculum to me...

                            Comment

                            • zaidalin79
                              New Member
                              • Nov 2006
                              • 59

                              #59
                              No different teacher, but I agree with you on the text. She keeps telling me to read the text, like I haven't read it over four times. The examples don't help either...

                              Comment

                              • zaidalin79
                                New Member
                                • Nov 2006
                                • 59

                                #60
                                I think I broke it... I tried to copy what you did, but now it doesn't work...

                                [code removed as per site rules - see FAQ]
                                Last edited by MMcCarthy; Feb 20 '07, 06:00 AM. Reason: removing program code

                                Comment

                                Working...