Ok, I'll take a look at that. Thanks!
Type: Posts; User: Ormolu611
Ok, I'll take a look at that. Thanks!
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...
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 {
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...
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...
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...
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...
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...
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...
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...
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.
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.
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...
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...
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...