aspose file tools*
The moose likes Applets and the fly likes printing on an applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "printing on an applet" Watch "printing on an applet" New topic
Author

printing on an applet

Raj
Greenhorn

Joined: Apr 08, 2007
Posts: 20
we use system.out.println to print on the screen what stmt do we use if we want to print a value of an variable on an applet
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41863
    
  63
The same. Check the Java Console for System.out output of applets.


Ping & DNS - my free Android networking tools app
Raj
Greenhorn

Joined: Apr 08, 2007
Posts: 20
how do i do that
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41863
    
  63
That depends on the operating system you're using. Windows has a little Java icon in the tray which will open the Console. You can also open it from the Java Plugin control panel. On OS X, this output goes to Console.log.
Raj
Greenhorn

Joined: Apr 08, 2007
Posts: 20
well i have a database in ms access and i am storing the entries of the database in an array data now i have to print the conents of this araay on the frame of an applet. how do i do that?

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41863
    
  63
Wouldn't it make more sense to add those messages as text in a TextArea? It's much easier to accomplish, plus AWT takes care of wrapping the text, scrolling, etc.
Raj
Greenhorn

Joined: Apr 08, 2007
Posts: 20
i did make a text area but how do i pass the contents of data[] on to the text area.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41863
    
  63
By iterating through the array and calling the TextAreas appendText (or something similar) method for each item.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: printing on an applet