File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

printing on an applet

 
Raj
Greenhorn
Posts: 20
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The same. Check the Java Console for System.out output of applets.
 
Raj
Greenhorn
Posts: 20
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how do i do that
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 20
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 20
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i did make a text area but how do i pass the contents of data[] on to the text area.
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic