I have a program to write and part of the instructions say, "The .drawImage() method has a version that does not accept the width and height of the container, thus drawing the image to size or more...
Type: Posts; User: Nate08
I have a program to write and part of the instructions say, "The .drawImage() method has a version that does not accept the width and height of the container, thus drawing the image to size or more...
To finish the program I have to draw the lines using the following rules:
-Whatever number the user entered, that’s how many horizontal and vertical lines should be in the grid.
-The lines should...
That was my problem, thank you. But now I have another question, I need to have an input trap error so that the user can only enter numbers from 10 to 40. How would I do that, would I use an "if"...
import java.awt.Color;
import javax.swing.JFrame;
import java.awt.Graphics;
import javax.swing.JOptionPane;
public class Program2 extends JFrame {
private static final int FRAME_SIZE =...
Ok, I moved the text to where I wanted it. Now where in my code do I change the numbers to move the circles because the words are overlapping the circles.
Alright, and another thing I noticed. As I'm re-positioning the words, the circles aren't moving and so some of the words are on the circle?
Alright, I kind of figured out what you meant. I changed the values of the x and y, but I still have one more problem. I need each stat on a separate line, so that its on 3 lines. I know about the \n...
No sorry, I don't understand because this is my first assignment and I don't know much about Java programming yet. But yes, I'm talking about when you call drawString() and type in the messages, I...
If you click on the image I included, it shows the words "They do not overlap" and "Circle 1's stats:" and the rest of that all at the top of the window. That's what I need. But as of right now, it...
here is the code I have so far:
import java.awt.Graphics;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import java.util.Scanner;
public class Program1 extends JFrame {
...
I have a program that I need to finish before tomorrow and here are the instructions:
To draw two circles plus a line connecting their centers and then print a few facts about the circles. The (x,...