File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes Applet will not draw correctly Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet will not draw correctly" Watch "Applet will not draw correctly" New topic
Author

Applet will not draw correctly

Kevin Anderson
Greenhorn

Joined: Jan 14, 2013
Posts: 10

Hello all,

I have the following program that, when the applet loads, all I get is a white screen with 4 textboxes. I have even tried commenting everything except for the background line out but it still wont draw the background. Could you please point me in the direction of the error?




Thank you.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39551
    
  27
Swing applets should override paintComponent, not paint http://docs.oracle.com/javase/tutorial/uiswing/painting/


Ping & DNS - updated with new look and Ping home screen widget
Kevin Anderson
Greenhorn

Joined: Jan 14, 2013
Posts: 10

Ulf Dittmer wrote:Swing applets should override paintComponent, not paint http://docs.oracle.com/javase/tutorial/uiswing/painting/


It worked. Thank you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Applet will not draw correctly
 
Similar Threads
Applet containing pie chart
I want to insert Data into the pie chart.I have put the code to gernate the Pie
applets - pie charts
Applets...pie chart from user inpiut
Create Bar Chart