Search:

Type: Posts; User: Nate08

Search: Search took 0.11 seconds.

  1. Replies
    1
    Views
    930

    Need help with my code

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

    Re: can someone tell me what's wrong with my code

    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...
  3. Replies
    7
    Views
    1,284

    Re: can someone tell me what's wrong with my code

    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"...
  4. Replies
    7
    Views
    1,284

    can someone tell me what's wrong with my code

    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 =...
  5. Re: need help finishing up this project but I don't know the code...please help

    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.
  6. Re: need help finishing up this project but I don't know the code...please help

    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?
  7. Re: need help finishing up this project but I don't know the code...please help

    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...
  8. Re: need help finishing up this project but I don't know the code...please help

    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...
  9. Re: need help finishing up this project but I don't know the code...please help

    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...
  10. need help finishing up this project but I don't know the code...please help

    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 {
    ...
  11. making a program that draws two circles and calculates the area and circumference

    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,...
Results 1 to 11 of 12