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: 41106
    
  45
Swing applets should override paintComponent, not paint http://docs.oracle.com/javase/tutorial/uiswing/painting/


Ping & DNS - my free Android networking tools app
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
applets - pie charts
Create Bar Chart
Applet containing pie chart
Applets...pie chart from user inpiut
I want to insert Data into the pie chart.I have put the code to gernate the Pie