Search:

Type: Posts; User: SOG

Page 1 of 3 1 2 3

Search: Search took 0.08 seconds.

  1. [SOLVED] Re: How do I make a picture-part interact with a user?

    I solved the problem by noting the connection between the paintComponent-method, the paint-method, and the repaint-method. My code for the house and a new class is show below. (The new class was the...
  2. [SOLVED] Re: How do I make a picture-part interact with a user?

    The class I am in is called House.java and it extends JApplet - it's meant to draw the house from my textbook. (I'm not in a school-class for this - it's done by me alone for practice.) So there are...
  3. [SOLVED] Re: How do I make a picture-part interact with a user?

    That is what I tried to do, but I think I'll need a sample of code to figure this out - getting the paintComponent-method to work with the getX- and getY-methods as you pointed out in post number-3.
  4. [SOLVED] Re: How do I make a picture-part interact with a user?

    Here is how the windows/doors are handled in the code, in fact I'll give you the whole paint-method:



    public void paint(Graphics g)
    {
    // Call the superclass...
  5. [SOLVED] Re: How do I make a picture-part interact with a user?

    Just so someone knows, I am trying to paint over the black windows to make them cyan, and paint red over the door. My assignment requires me to use code to paint or draw over the existing-parts, or...
  6. [SOLVED] How do I make a picture-part interact with a user?

    What I am trying to do is draw a house with code relative to getting it's doors and windows closed when I click on them in an applet.

    Here is the house I drew with code,

    2305

    and if you...
  7. Replies
    8
    Views
    1,313

    [SOLVED] Re: I can't seem to open an html-file

    I finally fixed the problem with the given security advice by installing the Java Runtime Environment before I applied the advice itself. So, thanks Norm. This thread is solved.
  8. Replies
    8
    Views
    1,313

    [SOLVED] Re: I can't seem to open an html-file

    I noticed something else, and it's been happening the whole time, even after I tried what you said. My browser (Internet Explorer 10) has been restricting my page from running scripts or ActiveX...
  9. Replies
    8
    Views
    1,313

    [SOLVED] Re: I can't seem to open an html-file

    I see what you mean. Now I know the only problem for me is getting the html-file to display an applet. I use this kind of html-code format for it, so tell me if it's outdated and/or flawed:


    ...
  10. Replies
    8
    Views
    1,313

    [SOLVED] Re: I can't seem to open an html-file

    I notice that I did just that, but the medium-level didn't work, and the low-one made the computer show this:

    2273

    In other words: I should just trust what's in the CD anyway, and know that...
  11. Replies
    8
    Views
    1,313

    [SOLVED] I can't seem to open an html-file

    When I try to open an html-file with an applet from my student-CD, I click on an error-message for more details to get this window for the forum to click on,

    2271

    then got this other window to...
  12. [SOLVED] Re: Something I've never seen from the compiler is what I'm trying clear up

    Thanks helloworld922. I got rid of the warning.
  13. [SOLVED] Something I've never seen from the compiler is what I'm trying clear up

    I'm getting this message from my compiler...


    Note: ShadeDesigner.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.


    ...and it seems to go away...
  14. [SOLVED] Re: My compiler says there's something wrong with 2 statements

    I noticed that my compiler said nothing was wrong with my debugged program thanks to knowing continue is a keyword. Thanks for the help.
  15. [SOLVED] My compiler says there's something wrong with 2 statements

    It so happens that my compiler is telling me there is something wrong with the 2 bottom statements of this do-while loop, just above the while-part.

    My ideas for solving this are to either...
  16. Replies
    6
    Views
    3,155

    [SOLVED] Re: A while-loop is SUPPOSED to replace a substring

    Thanks. I finally got the needed response from the computer with the equals-method's help.
  17. Replies
    6
    Views
    3,155

    [SOLVED] Re: A while-loop is SUPPOSED to replace a substring

    The problem I should've mentioned is that the current loop I have now just makes my method return the same string-statement I typed in as a user.

    For example:

    The program's output comes as a...
  18. Replies
    6
    Views
    3,155

    [SOLVED] Re: A while-loop is SUPPOSED to replace a substring

    I got past the part where there are too many elements, but I still need help finding the word-replacement substring for the program.

    Here is my current code-setup:



    // Use the...
  19. Replies
    6
    Views
    3,155

    [SOLVED] A while-loop is SUPPOSED to replace a substring

    I notice that my method doesn't work even though I tried to get it's while-loop set-up to do the following things:


    Have each token of a string get put into another one
    Replace each...
  20. [SOLVED] Re: I'm trying to get the most frequent character out of a bunch

    I got the method to show the most frequent-character now. Thanks for your help.



    Now all I would have to do is do this sort of thing on a bigger scale (with a bigger loop-setup, but...
  21. [SOLVED] Re: I'm trying to get the most frequent character out of a bunch

    The purpose of executing the program is just for home-project practice with a textbook, but I wanted to see if I could get it done this way: without the warning for the computer. So, I need help with...
  22. [SOLVED] Re: I'm trying to get the most frequent character out of a bunch

    What I was asking in the last question was if it was practical to get either me or the user to tell the computer what characters to look for beforehand, so making an array of characters to look for...
  23. [SOLVED] Re: I'm trying to get the most frequent character out of a bunch

    I realize - now - that I must have gotten ahead of myself with the logic: I thought that using a 2D-array would help to arrange the characters as if they were in rows and columns. I tried to count...
  24. [SOLVED] Re: I'm trying to get the most frequent character out of a bunch

    I went ahead and redid my code to try something out, so I might as well give it to the forum as is - it's part of what I'm doing. Instead of using Unicode numbers, I just decided to use a...
  25. [SOLVED] I'm trying to get the most frequent character out of a bunch

    My goal is to get the most frequent character referred to in the title by:


    Storing character-set in an array
    Rearranging the array - somehow - as Unicode-numbers
    Comparing the...
Results 1 to 25 of 64
Page 1 of 3 1 2 3