I have a java applet in which I must draw graphics (such as rectangles) and also place buttons. I am able to draw the graphics, but I do not know how to place the buttons. Can anyone help?
I am using the Graphics class in the paint method to draw the rectangles. Example:
What classes/methods do I use to place buttons? And which classes to I need to import?Code:public void paint(Graphics g) { g.drawRect(30, 30, 100, 100); }
Thanks!




Reply With Quote