Search:

Type: Posts; User: Ormolu611

Search: Search took 0.11 seconds.

  1. Replies
    10
    Views
    1,409

    Re: I am not getting the result I need

    Ok, I'll take a look at that. Thanks!
  2. Replies
    10
    Views
    1,409

    Re: I am not getting the result I need

    amountLbl.setText(Item.getItemName());


    With this line of code, I receive an error message that says: Cannot make a static reference to the non-static method getItemName() from the type Item. It...
  3. Replies
    10
    Views
    1,409

    Re: I am not getting the result I need

    Okay, I have another one - but it is related. My problem starts with two existing classes: Item and ItemApp.

    Here is Item



    package c2;

    public class Item {
  4. Replies
    10
    Views
    1,409

    Re: I am not getting the result I need

    Nevermind guys...I think I stumbled upon the answer...thanks in advance for any future help, because I'll be back!

    --- Update ---

    Thanks Norm. I think I figured it out - and you are absolutely...
  5. Replies
    10
    Views
    1,409

    Re: I am not getting the result I need

    Why would this class "CustApp' be displaying the results of the earlier class, 'CustFrame' when I am creating a new instance of the CustFrame class? Shouldn't a new class be starting from a clean...
  6. Replies
    10
    Views
    1,409

    Re: I am not getting the result I need

    I guess I am confused as to why the setters in the recent class have no effect and are not returned? I continue to get the same results that I get from the CustFrame class. To me, it seems like the...
  7. Replies
    10
    Views
    1,409

    I am not getting the result I need

    I am trying to create a frame by creating a class called CustApp. In the main method, I am trying to write code in the main method that will create a Customer object, assign to variable c. I am then...
  8. Re: Why is a Frame Not Showing Up When I Run This Class?

    Thanks guys! I am going to play with it a bit and try to comment out alternate code snippets to see the effect. It looks like some of my coding is superfluous and unnecessary...I'll also try to be...
  9. Re: Why is a Frame Not Showing Up When I Run This Class?

    Rockking8350, it works! Fantastic! Thank you. So, to review, the constructor that accepts a parameter of type customer in my code is:

    Customer cust = new Customer();

    Conversely, the...
  10. Re: Why is a Frame Not Showing Up When I Run This Class?

    Well, following is my code. Honestly, I think the problem is at least partially located within the main method - I am not sure I completely understanding what is happening there. I am essentially...
  11. Re: Why is a Frame Not Showing Up When I Run This Class?

    Cool! Let me soak your code in for a while Cody, thanks! I think I already see a few nuggets that might help me out as far as grasping the concepts. you have everything in the main method...hmmm.
  12. Re: Why is a Frame Not Showing Up When I Run This Class?

    Thanks Norm!

    --- Update ---

    Ugh...still not working...don't know why...probably going to take a break. Been going at this for like 5 hours - not really making progress.
  13. Re: Why is a Frame Not Showing Up When I Run This Class?

    I'll take a look. Thanks!

    --- Update ---

    Okay, I took a look at the tutorials along with my textbook, and I am still obviously missing something because I am not getting a frame displayed. I...
  14. Re: Why is a Frame Not Showing Up When I Run This Class?

    I am not sure why JFrame is not being used. This is in alignment with the example provided by my professor. What precisely do you mean when you ask how the code exits the JVM? How do you call the...
  15. Why is a Frame Not Showing Up When I Run This Class?

    I am trying to create a frame with 4 labels on it. When I run this class, it runs with no errors, but there is no frame that shows up? Any suggestions?
    :-?

    I should have a frame with 4 labels...
Results 1 to 15 of 15