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.
Do you need to just a JPanel?
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.
never mind i figured it out with the help of my teacher and a fellow classmate. thanks for the time anyway.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks