Closed Thread
Results 1 to 4 of 4

Thread: draw troubles

  1. #1
    random guy is offline Learning Programmer
    Join Date
    Nov 2007
    Posts
    48
    Rep Power
    0

    draw troubles

    hey i am working on a simple program (student in an intorducary college course) to draw a string and ovals on a jpanal according to certain calculated positions. i have all the calculations correct i think (i started with a command line program and it was correct, now i am porting it to a gui app). the problem is that nothing gets shown on my jpanal (although the jpanal does show up itself). even the background color wont change. i am new to gui programming in general. if someone could please tell me what i need to change in order for the program to draw on my jpanal that would be great.

    (the source file i need help with is below)

    Code:
       fixed
    Last edited by random guy; 11-07-2007 at 03:37 PM.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20
    Do you need to just a JPanel?

  4. #3
    random guy is offline Learning Programmer
    Join Date
    Nov 2007
    Posts
    48
    Rep Power
    0
    i am assuming the "to" was a typo.

    if so then ya just a jpanel. it is frustrating since my teacher didnt teach us this stuff and our text book isnt helpful. we mostly focus on command line stuff and then when we get gui assignments we dont know whats going on.

  5. #4
    random guy is offline Learning Programmer
    Join Date
    Nov 2007
    Posts
    48
    Rep Power
    0
    never mind i figured it out with the help of my teacher and a fellow classmate. thanks for the time anyway.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Emulating draw your thing
    By Mozana in forum Java Help
    Replies: 23
    Last Post: 07-19-2011, 02:51 AM
  2. Trying to draw a sine wave in C
    By Yuriy M in forum C and C++
    Replies: 13
    Last Post: 04-28-2011, 05:36 PM
  3. CSS Troubles
    By Hunter100 in forum JavaScript and CSS
    Replies: 2
    Last Post: 03-18-2011, 02:09 PM
  4. How to draw graphics using JS?
    By organizedchaos in forum JavaScript and CSS
    Replies: 2
    Last Post: 06-19-2009, 02:09 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts