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...
Type: Posts; User: kbrady481
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...
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...
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...
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...
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.*;
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...
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...
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...
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...
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)...
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...
I am still very confused as well
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...
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){
yeah I can't get a bigger pic
Enter lines of text, type two returns in a row to end.
[DrJava Input Box]
[DrJava Input Box]
>
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.
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
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!'".
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...
The while loop makes the program stop scanning lines once the user has pressed enter twice (or enters a string of length zero).
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...
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.