Also, switch statements are out of the question because we haven't learned them in the class yet. We are supposed to stick to what we have learned in the book.
Type: Posts; User: AlexAndAHalf
Also, switch statements are out of the question because we haven't learned them in the class yet. We are supposed to stick to what we have learned in the book.
Sorry for the excessive comments by the way, kind of part of the assignment haha
Hey everyone! I'm working on my final program for my Intro to Java class for the semester. Essentially, the program I thought of is supposed to have a JLabel at the top saying "I can tell you the...
Yeah I noticed that and changed it all up, here is the updated code that I have, still producing the same result:
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public...
Could also be a problem with how I managed my if-statements, really clueless on this one!
Okay, so I'm in an Intro to Java class, and we're currently covering applets. This assignment is giving me a hard time, it reads as follows:
"Create a JApplet that contains two parallel arrays...
@Mr.777 Sounds logical, I thought the container was automatically a part of the frame. So how to I add the container to the frame?
Sorry, my wording was unclear. You are absolutely right, the program compiled and ran just fine. With my statement about javac not working in the Command Prompt, I was implying that I wasn't using...
That removed the warning, but for some reason when I run my program, there is no visible button. I'm really not understanding why, any ideas?
Thanks so much for the help by the way.
Hey there, I'm a beginner at Java and about 3/4 of the way through my first class on it. In this assignment, I need to make a JFrame with panels, and a JButton that switches to the opposite panel...