+ Reply to Thread
Results 1 to 4 of 4

Thread: draw troubles

  1. #1
    Learning Programmer random guy is an unknown quantity at this point
    Join Date
    Nov 2007
    Posts
    48

    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 06:37 PM.

  2. #2
    Co-Administrator John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John's Avatar
    Join Date
    Jul 2006
    Age
    21
    Posts
    5,882
    Blog Entries
    25
    Do you need to just a JPanel?

  3. #3
    Learning Programmer random guy is an unknown quantity at this point
    Join Date
    Nov 2007
    Posts
    48
    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.

  4. #4
    Learning Programmer random guy is an unknown quantity at this point
    Join Date
    Nov 2007
    Posts
    48
    never mind i figured it out with the help of my teacher and a fellow classmate. thanks for the time anyway.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

     

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