Search:

Type: Posts; User: kbrady481

Page 1 of 2 1 2

Search: Search took 0.21 seconds.

  1. Re: Java Program - Graphics - Ball Drop and Retrieve

    I have already outlined earlier in this forum what my code is supposed to do. It is supposed to display a window with three buttons, "Drop", "Retrieve", and "Quit", and a ball. My code accomplished...
  2. Re: Java Program - Graphics - Ball Drop and Retrieve

    I updated my code to this and it still isn't doing what it's supposed to :(



    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;


    public class DropPanel extends JPanel...
  3. Re: Java Program - Graphics - Ball Drop and Retrieve

    Changed some things. Now, when I run the program, the window pops up with two buttons and a green ball at the top of the screen. When I click "Drop", the ball only drops 20 pixels, but does not...
  4. Re: Java Program - Graphics - Ball Drop and Retrieve

    Omg exciting! I was running the DropPanel but was supposed to be running DropDriver. So, when I run DropDriver, A window pops up with my two buttons, and a green ball starts dropping from about the...
  5. Re: Java Program - Graphics - Ball Drop and Retrieve

    Yes there are three classes in total for this program:



    /**
    * A class that puts a graphics window on your display
    */

    import java.awt.*;
    import javax.swing.*;
  6. Re: Java Program - Graphics - Ball Drop and Retrieve

    OK thanks! I've updated my code, an attempted to add some buttons...



    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;


    public class DropPanel extends JPanel implements...
  7. Re: Java Program - Graphics - Ball Drop and Retrieve

    Well, right now my part of the program is pretty much all compilation errors. I have yet to even add the part where the ball is retrieved, nor have I added any buttons. I am mostly concerned with the...
  8. Java Program - Graphics - Ball Drop and Retrieve

    I am trying to make a display window with three buttons, "Drop", "Retrieve", and "Quit". When "Drop" is clicked, a ball must drop from the top of the screen and stop at the bottom. When "Retrieve" is...
  9. Replies
    0
    Views
    1,690

    Poker Hand Program... Is this right?

    I am wondering if my answer to this most recent assignment is correct. Just want see if anyone has any input before I submit. Any comments would be appreciated! Thanks!

    Here is the assignment:The...
  10. Replies
    4
    Views
    3,812

    Simple Array Problem

    I can't figure out the answer to this homework problem:

    Write a static method named countEmptyBowls, to be added to the Bowl class, which is passed an array of Bowl objects, and returns the (int)...
  11. Replies
    38
    Views
    3,742

    Re: Program not printing anything

    The program is due tonight. That is why we are so persistent haha.. I really am trying in this class I've been going to tutoring and office hours. I guess programming is just not my thing...
  12. Replies
    38
    Views
    3,742

    Re: Program not printing anything

    I am still very confused as well
  13. Replies
    38
    Views
    3,742

    Re: Program not printing anything

    I tried to do what you suggested without seeing your LetterProfile class, but it isn't working for me.

    --- Update ---

    I don't expect the array to be filled magically. I am just very new to...
  14. Replies
    38
    Views
    3,742

    Re: Program not printing anything

    I will post my whole code again so we're all on the same page lol



    import java.util.Scanner;

    public class LetterDriver
    {
    public static void main(String[] args){
  15. Replies
    38
    Views
    3,742

    Re: Program not printing anything

    yeah I can't get a bigger pic
  16. Replies
    38
    Views
    3,742

    Re: Program not printing anything

    1884
  17. Replies
    38
    Views
    3,742

    Re: Program not printing anything

    1883
  18. Replies
    38
    Views
    3,742

    Re: Program not printing anything

    Enter lines of text, type two returns in a row to end.
    [DrJava Input Box]
    [DrJava Input Box]
    >
  19. Replies
    38
    Views
    3,742

    Re: Program not printing anything

    Yes I'm in that class and I am not enjoying myself

    --- Update ---

    Nothing is printing for me still... idk what I'm doing wrong this is awful.
  20. Replies
    38
    Views
    3,742

    Re: Program not printing anything

    I don't know how to use the java command. Yes, that message was from my IDE.

    --- Update ---

    I don't understand what you mean in post #8
  21. Replies
    38
    Views
    3,742

    Re: Program not printing anything

    Nothing prints out. Before, it printed out an input box.

    --- Update ---

    When I type something in the interactions box, it says "Static Error: Undefined name 'Hello world!'".
  22. Replies
    38
    Views
    3,742

    Re: Program not printing anything

    am I getting closer?



    import java.util.*;

    public class LetterDriver{
    public static void main(String[] args){
    System.out.println("Enter lines of text, type two returns in a row to...
  23. Replies
    38
    Views
    3,742

    Re: Program not printing anything

    The while loop makes the program stop scanning lines once the user has pressed enter twice (or enters a string of length zero).
  24. Replies
    38
    Views
    3,742

    Re: Program not printing anything

    I deleted them because they weren't working. I don't know where or how to call these methods but this is one of the ways I tried:



    import java.util.*;

    public class LetterDriver{
    public...
  25. Replies
    38
    Views
    3,742

    Re: Program not printing anything

    Yes, that was my thread. But I tried calling the two methods in the driver and nothing I do works. I am brand new to computer programming so I'm sure I'm just doing it wrong.
Results 1 to 25 of 37
Page 1 of 2 1 2