- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Student
16 Posted Topics
I'm trying to create two car objects, that move across the frame, in opposite directions, at different heights so they don't collide. This type of programming is new to me, and after following the only example I'm provided with, I still can't get this to work. All the code I … | |
I need to write a program that draws the next iteration if a koch snowflake, when a button is clicked. It begins with a equilateral triangle. The program uses an ArrayList, Polygon, and GeneralPath, as I found these imports in the starter code. I think I may also be supposed … | |
I'm running Windows Vista Home Premium 32bit on my main machine. Randomly it will drop its internet connection and display that it is connected to "Network 9", and has local access only, and indeed the computer has no working internet connection. A reboot of the network adapter temporarily fixes the … | |
Re: As far as the name part goes, you could have your box constructor also take a string variable, which is the team name. Then you could use the drawText method to draw the team name, linking the coordinates to the x, y of the box. | |
Re: You use a for loop in your increment method, so it prints out both lines. Removing the for loop and using a simple println will take out the duplicated line. Just be sure to increment the day. [CODE]public void increment(int arg1, int arg2, int arg3) { int i; month = … | |
Re: There will be no code. This isn't a homework completion service. Post the code you started or ask direct questions, no one here will do the work for you, but they will help you if you ask the right questions. | |
Re: So, a superscript? [URL="http://java.sun.com/j2se/1.4.2/docs/api/java/awt/font/TextAttribute.html"]http://java.sun.com/j2se/1.4.2/docs/api/java/awt/font/TextAttribute.html[/URL] May be of use. | |
Re: What it appears you need to do is simply create one array, of type Video. Video will be a class you have to write, simple enough: Constructor with the two parameters and then return methods. Once this class and the arrays are constructed you can construct new Video objects and … | |
Re: He mentions needing to use a for loop, not recursion. At least that is how I took it. Taking user input is easily done using a Scanner. | |
Hello, I'm not sure if all of this is even completely possible, but I'm sure some of you will be able to tell me. What I want to do is set up a desktop pc running linux (Kubuntu 8.10 possibly, a buntu of some sort anyways), which will have two … | |
"Write a program to display a linked list graphically. Draw each element of the list as a box, and indicate the links with line segments. Draw an iterator as in Figure 15-3. Supply buttons to move the iterator and to add and remove elements." The elements of the node appear … | |
Write a simple graphics editor that allows users to add a mixture of shapes (ellipses, rectangles, and lines in different colors) to a panel. Supply commands to load and save the picture. Basically it wants a program with a buttons for New, Load, Save, Rectangle, Line, Ellipse, Red, Green, Blue, … | |
Is there a way that after you store something, such a Rectangle, to an object variable, say, Object x, that you can then look at object x, and determine it is indeed a rectangle, allowing you to use Graphic methods such as draw on said object? | |
Basically, I need to write a program that takes a user input for multiple text files, and then prints them out into one file. I usually try not to pose questions here back to back, but alas, I need the help this time round. What really has me baffled is … | |
The task: Write a program that asks the user for a file and counts the number of characters, words, and lines in that file. Then the program asks for the name of the next file. When the user enters a file that doesn't exists, the program prints the total count … | |
Question: Write a program that draws a clock face with a time that the user enters in two text fields (one for the hours, one for the minutes). I have Followed my example code, and come up with 3 classes. Clock, which sets the outines for drawing clock objects, ClockViewerFrame … |
The End.