Search:

Type: Posts; User: AlexAndAHalf

Search: Search took 0.09 seconds.

  1. Replies
    4
    Views
    1,489

    Re: Need to condense if-statements

    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.
  2. Replies
    4
    Views
    1,489

    Re: Need to condense if-statements

    Sorry for the excessive comments by the way, kind of part of the assignment haha
  3. Replies
    4
    Views
    1,489

    Need to condense if-statements

    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...
  4. Replies
    4
    Views
    2,567

    Re: Basic Applet Not Functioning Correctly

    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...
  5. Replies
    4
    Views
    2,567

    Re: Basic Applet Not Functioning Correctly

    Could also be a problem with how I managed my if-statements, really clueless on this one!
  6. Replies
    4
    Views
    2,567

    Basic Applet Not Functioning Correctly

    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...
  7. Re: Need help correcting a JFrame program for class!

    @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?
  8. Re: Need help correcting a JFrame program for class!

    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...
  9. Re: Need help correcting a JFrame program for class!

    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.
  10. Need help correcting a JFrame program for class!

    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...
Results 1 to 10 of 10