Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Drawing on an applet  RSS feed

 
alan ze
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a program that draws on an applet and I'm trying to change it so that it reads input and then uses the input to draw on the applet.

How can I do that? I created another class that reads input through JOptionPane(it doesn't draw anything) but I don't know how to combine or run them both on the applet
 
Campbell Ritchie
Sheriff
Posts: 53750
127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are you drawing? Is it a shape, an image or text? I can see a couple of sections in the Java™ tutorials which might help you: 1 and 2. Look at those, and see whether they help, then come back and tell us how you are getting on.

By the way: I shall move this thread. Not sure whether it belongs better on the Applets forum or the GUI forum, but let's try GUIs first.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!